Skip to content

Ignore uri_has_not_been_generated errors. #215

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

Merged
merged 1 commit into from
Jan 10, 2018

Conversation

isoos
Copy link
Collaborator

@isoos isoos commented Jan 9, 2018

Fixes #213

@isoos
Copy link
Collaborator Author

isoos commented Jan 9, 2018

I still think that this is a bad precedent.

@@ -5,6 +5,8 @@
const String analysisOptions = '''
analyzer:
strong-mode: true
errors:
uri_has_not_been_generated: ignore
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No!

I think the idea is: if the source package has this setup – then copy it.

Just whitelist uri_has_not_been_generated for pass-through

@isoos isoos force-pushed the options_ignore branch 2 times, most recently from 3b4a668 to 927c956 Compare January 9, 2018 23:34

const _analyzerErrorKeys = const <String>['uri_has_not_been_generated'];

String customizeAnalysisOptions(String original, bool isFlutter) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: add an unit test for this – since it's more than a bit complicated

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@isoos – did you sanity check it w/ one of the samples we care about?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added tests, which caught an edge-case that was not caught with the sampling manual test.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😄

@kevmoo kevmoo merged commit b395531 into dart-lang:master Jan 10, 2018
@isoos isoos deleted the options_ignore branch January 11, 2018 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants