Stacked-Org / stacked

A Flutter application architecture created from real world scenarios
MIT License
935 stars 256 forks source link

[feature]: stacked-cli option to disable 80 character line limit format #1072

Closed jakusb closed 6 months ago

jakusb commented 6 months ago

Is your feature request related to a problem? Please describe.

stacked generate (and create ..) call "dart format . -l 80" This does not seem to be prevented. How can I disable this feature? Our developers work on high resolution screens and 80 characters limit being enforced is really enjoying ;)

Describe the solution you would like

Option to disable either formatting totally or at least remove the "-l 80" option. Ideally it should use whatever rules are configured in the analysis_options.yaml file.

Mine has these rules, which cleary are being ignored (at least the lines_longer_than_80_chars rule) : linter: rules: prefer_single_quotes: true # Uncomment to enable the prefer_single_quotes rule lines_longer_than_80_chars : true always_declare_return_types: true

Additional Context

No response

jakusb commented 6 months ago

To answer my now question: Simply adjust the value of line_length in stacked.json