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

Side by Side Diff: test/rules/public_member_api_docs.dart

Issue 1781793002: Skip overriding members in API doc checks. (Closed) Base URL: https://github.com/dart-lang/linter.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/src/rules/public_member_api_docs.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // test w/ `dart test/util/solo_test.dart public_member_api_docs` 5 // test w/ `dart test/util/solo_test.dart public_member_api_docs`
6 6
7 abstract class A //LINT 7 abstract class A //LINT
8 { 8 {
9 static const Z = 1; //LINT 9 static const Z = 1; //LINT
10 static int _Z = 13; //OK 10 static int _Z = 13; //OK
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 F //OK 43 F //OK
44 } 44 }
45 45
46 /// A D. 46 /// A D.
47 abstract class D extends A { 47 abstract class D extends A {
48 /// Make a D. 48 /// Make a D.
49 D(); 49 D();
50 50
51 @override 51 @override
52 a() => null; //OK 52 a() => null; //OK
53
54 c() => null; // Un-annotated override -- OK!
53 } 55 }
54 56
55 foo() => null; //LINT 57 foo() => null; //LINT
56 58
57 /// Bar. 59 /// Bar.
58 bar() => null; //OK 60 bar() => null; //OK
59 61
60 int g; //LINT 62 int g; //LINT
61 63
62 int _h; //OK 64 int _h; //OK
63 65
64 int gg, //LINT 66 int gg, //LINT
65 _gg; //OK 67 _gg; //OK
OLDNEW
« no previous file with comments | « lib/src/rules/public_member_api_docs.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698