-
Notifications
You must be signed in to change notification settings - Fork 46
Mark generated code as ignored by linter #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
So in the dart2 dev branch you can set this by setting the header option in your build.yaml targets:
$default:
builders:
built_value_generator|built_value:
enabled: false
builders:
built_redux|built_redux:
options:
header: // ignore_for_file: linter_rule However, that will only work with dart 2. If there are any specific lints you are having issues with post them here and I can just add them to all generated files for stable line. |
From https://github.com/Workiva/text_doc_client/pull/2242:
|
will add tonight |
@patkujawa-wf isn't |
Not everyone is on Dart 2 yet ;) |
Sorry was busy last night, i shouldn't be making promises :) Will try add this weekend. |
No rush, but thanks Dave! |
I have tried setting the header option in the build.yaml but getting an exception from the parser.
|
@kostaa Have you tried wrapping the string with quotes?
|
Thanks using quotes helps but you also have to drop the second
|
Unless we can get all the generated code to abide by all the rules.
See dart-lang/sdk#57261 for some options. Perhaps just
// ignore_for_file: linter_rule
in each generated file?The text was updated successfully, but these errors were encountered: