Skip to content

Imports in generated code should follow conventions#398

Merged
williammartin merged 1 commit into
onsi:masterfrom
martinxsliu:generated-import-ordering
Dec 6, 2017
Merged

Imports in generated code should follow conventions#398
williammartin merged 1 commit into
onsi:masterfrom
martinxsliu:generated-import-ordering

Conversation

@martinxsliu

Copy link
Copy Markdown
Contributor

For #396

This PR changes the ordering of the imports in the code generated by ginkgo bootstrap and ginkgo generate to follow Go conventions of grouping by standard library imports, then 3rd party imports, then by local imports.

This PR also removes a superfluous _test from the package name generated by ginkgo generate -agouti.

@martinxsliu martinxsliu force-pushed the generated-import-ordering branch 2 times, most recently from b43eb6a to 3317374 Compare December 6, 2017 01:09
@martinxsliu martinxsliu force-pushed the generated-import-ordering branch from 3317374 to 0bec0b0 Compare December 6, 2017 01:10
@williammartin

Copy link
Copy Markdown
Collaborator

LGTM thanks.

@williammartin williammartin merged commit e8536d8 into onsi:master Dec 6, 2017
@martinxsliu martinxsliu deleted the generated-import-ordering branch December 6, 2017 21:10
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.

2 participants