mobx.dart icon indicating copy to clipboard operation
mobx.dart copied to clipboard

Custom line-length for generated code

Open fzyzcjy opened this issue 3 years ago • 2 comments

Hi thanks for the wonderful lib! I would appreciate it if the generated .g.dart code could be 120-character in width. I can make a PR for this.

How to implement this: https://github.com/dart-lang/build/issues/3250

fzyzcjy avatar Mar 02 '22 06:03 fzyzcjy

@fzyzcjy If the analyzer is giving an issue, in the analysis_options.yaml you can include this

analyzer:
  exclude:
    - "**/*.g.dart"
    - "**/*.freezed.dart"
    - "**/*.chopper.dart"
    - "**/*.mocks.dart"

Rohithgilla12 avatar Mar 10 '22 12:03 Rohithgilla12