cyclosproject / ng-openapi-gen

An OpenAPI 3.0 codegen for Angular
MIT License
397 stars 132 forks source link

The generators add and delete imports spaces after commit #106

Closed ViieeS closed 4 years ago

ViieeS commented 4 years ago

It's very strange behaviour, when I generate interfaces the generator adds spaces to generated services imports, than after commit it deletes it and then again and again...

image

If I perform generation multiple times without any commits, all works fine.

I thought it's somehow related to WebStorm IDE, tried to disable this but nothing changed.

image

Also I tried to completely close IDE and use command line only.

luisfpg commented 4 years ago

The generated code always have a single space before / after brackets. You probably have some other process reformatting the code. Try with some blank Angular project, generate the classes and commit to a local repository - it will always have the 1 space.