MohamedBeydoun / atlas

An express-typescript code generator
Apache License 2.0
6 stars 0 forks source link

Enforcing Style #18

Closed AsFal closed 4 years ago

AsFal commented 4 years ago

Enforcing style

Example case

The output of the following command can be used as reference for this section's comments.

atlas generate model --help

The following message should not appear in the output.

Note: Model name should be singular and lowercase.

It should be Atlas' responsibility to ensure that the generated model names are always lowercase (given that this is a style constraint that can be checked with your linter). The comment clutters the terminal view.

Desired feature

You should not be suggesting style, you should be enforcing it. Your cli should only be able to generate properly linted code (right now it allows rule breaks).

MohamedBeydoun commented 4 years ago

f15a26fc0c09b9dc8c8039f141461bd9ad567f53