Skip to content

Add option for consistently sorting generated output#102

Open
marshall007 wants to merge 1 commit intoSweetIQ:masterfrom
marshall007:sorted-output
Open

Add option for consistently sorting generated output#102
marshall007 wants to merge 1 commit intoSweetIQ:masterfrom
marshall007:sorted-output

Conversation

@marshall007
Copy link
Copy Markdown

@marshall007 marshall007 commented Jan 25, 2019

This PR includes three major changes:

  1. custom types (including enums) are now exported under the customTypes namespace, which avoids circular references in cases where a column name matches the enum name
  2. adds a --order CLI option which, when enabled, sorts all exports and enum values to ensure more consistent output between runs (easier diffs)
  3. adds assertEqualCode test utility method to ignore whitespace when comparing code snippets and refactors tests accordingly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant