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

Issue 1767843002: Lint for `@mustCallSuper` (#194). (Closed)

Created:
4 years, 9 months ago by pquitslund
Modified:
4 years, 9 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/linter.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Lint for `@mustCallSuper` (#194). See: https://github.com/dart-lang/linter/issues/194. WIP but ready for early feedback. Notably there's no flow analysis so we don't check for a return before the call (for example). Should we? Moved to SDK: https://codereview.chromium.org/1773803002/. BUG=

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -34 lines) Patch
M lib/src/rules.dart View 2 chunks +2 lines, -0 lines 0 comments Download
A + lib/src/rules/must_call_super.dart View 2 chunks +47 lines, -34 lines 0 comments Download
M pubspec.yaml View 1 chunk +1 line, -0 lines 0 comments Download
A test/rules/must_call_super.dart View 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
pquitslund
Another work in progress. Early reactions welcome!
4 years, 9 months ago (2016-03-04 22:27:41 UTC) #2
Brian Wilkerson
I'm not sure why this is a lint rather than a hint, but it LGTM ...
4 years, 9 months ago (2016-03-04 22:46:28 UTC) #3
pquitslund
On 2016/03/04 22:46:28, Brian Wilkerson wrote: > I'm not sure why this is a lint ...
4 years, 9 months ago (2016-03-06 22:05:25 UTC) #4
Brian Wilkerson
4 years, 9 months ago (2016-03-07 15:44:01 UTC) #5
> What do you think about flow analysis?  IOW: what if the call to super is
> unreachable?  I'm guessing that's OK as a refinement?

Absolutely. I think it would be fantastic for analyzer to be able to do flow
analysis, and then to integrate that into lints like this, but I think it's more
important to get the 80% case covered quickly. As you said, we can always refine
it later.

Powered by Google App Engine
This is Rietveld 408576698