Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Issue 1411053003: Error code validation for error filters. (Closed)

Created:
5 years, 1 month ago by pquitslund
Modified:
5 years, 1 month ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Error code validation for error filters. Screenshots and background can be found on the tracking bug: https://github.com/dart-lang/sdk/issues/24618 R=brianwilkerson@google.com, scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/5accd7a72edd917c2e697e0e3b3f237d96794ade

Patch Set 1 #

Total comments: 7

Patch Set 2 : Name tweaks. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+514 lines, -26 lines) Patch
M pkg/analysis_server/lib/src/context_manager.dart View 2 chunks +4 lines, -4 lines 0 comments Download
M pkg/analysis_server/lib/src/services/linter/linter.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer/lib/src/generated/error.dart View 1 2 chunks +396 lines, -4 lines 0 comments Download
M pkg/analyzer/lib/src/task/options.dart View 5 chunks +77 lines, -6 lines 0 comments Download
M pkg/analyzer/test/generated/all_the_rest_test.dart View 1 chunk +3 lines, -1 line 0 comments Download
M pkg/analyzer/test/src/task/options_test.dart View 4 chunks +33 lines, -10 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
pquitslund
5 years, 1 month ago (2015-10-28 22:31:41 UTC) #2
pquitslund
5 years, 1 month ago (2015-10-28 22:40:53 UTC) #5
Brian Wilkerson
LGTM https://codereview.chromium.org/1411053003/diff/1/pkg/analyzer/lib/src/generated/error.dart File pkg/analyzer/lib/src/generated/error.dart (right): https://codereview.chromium.org/1411053003/diff/1/pkg/analyzer/lib/src/generated/error.dart#newcode387 pkg/analyzer/lib/src/generated/error.dart:387: const AnalysisOptionsWarningCode('UNSUPPORTED_VALUE_ERROR', Remove "_ERROR" or add it to ...
5 years, 1 month ago (2015-10-28 23:31:06 UTC) #6
scheglov
LGTM
5 years, 1 month ago (2015-10-28 23:32:22 UTC) #7
pquitslund
Thanks! Brian: let me know if you think we should add Scanner and Parser error ...
5 years, 1 month ago (2015-10-28 23:36:11 UTC) #8
pquitslund
Committed patchset #2 (id:20001) manually as 5accd7a72edd917c2e697e0e3b3f237d96794ade (presubmit successful).
5 years, 1 month ago (2015-10-28 23:37:38 UTC) #9
Brian Wilkerson
5 years, 1 month ago (2015-10-28 23:45:18 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/1411053003/diff/1/pkg/analyzer/lib/src/genera...
File pkg/analyzer/lib/src/generated/error.dart (right):

https://codereview.chromium.org/1411053003/diff/1/pkg/analyzer/lib/src/genera...
pkg/analyzer/lib/src/generated/error.dart:2552: // > grep 'static const .*Code'
error.dart | awk '{print $3"."$4","}'
> That said, would anyone ever be crazy enough to want to do that?!?! :)

Well, I have to wonder about the reasonableness of disabling (or even
down-grading) compile time errors. You're code won't execute if it has a compile
time error (assuming it get's compiled, which is a little loosely defined).

Out of curiosity, I just ran the following code on the VM:

void main() {
  print('works');
}

foo() {
  this aint valid Dart;
}

and it printed "works" and terminated normally. So I don't know what to say.
Personally I'd be tempted to omit the scanner and parser errors from this list,
but then I'd omit the compile time error codes too.

But if we intentionally don't include everything then the comment should make
explicit the fact that this is not, and is not intended to be, a complete list
(and the criteria used to decide what to include).

Powered by Google App Engine
This is Rietveld 408576698