Skip to content

Commit ffb044e

Browse files
nshahancommit-bot@chromium.org
authored andcommitted
[dartdevc] Apply all lints from pkg:pedantic
Ignore slash_for_doc_comments in lib/src/js_ast to avoid additional diffs when potentially un-forking in the future. Fixes: #37218 Change-Id: If5c5bacf2d77fbae432217ba6031a6a8fa5dfcd8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/106580 Commit-Queue: Nate Bosch <nbosch@google.com> Reviewed-by: Nate Bosch <nbosch@google.com>
1 parent 9b5718c commit ffb044e

File tree

6 files changed

+11
-24
lines changed

6 files changed

+11
-24
lines changed
Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
include: package:pedantic/analysis_options.1.7.0.yaml
2+
13
analyzer:
24
strong-mode:
35
implicit-casts: false
@@ -14,27 +16,3 @@ analyzer:
1416
linter:
1517
rules:
1618
- annotate_overrides
17-
- avoid_empty_else
18-
- avoid_init_to_null
19-
- avoid_relative_lib_imports
20-
- avoid_return_types_on_setters
21-
- avoid_shadowing_type_parameters
22-
- avoid_types_as_parameter_names
23-
- curly_braces_in_flow_control_structures
24-
- empty_catches
25-
- empty_constructor_bodies
26-
- library_names
27-
- library_prefixes
28-
- no_duplicate_case_values
29-
- null_closures
30-
- prefer_contains
31-
- prefer_equal_for_default_values
32-
- prefer_is_empty
33-
- prefer_is_not_empty
34-
- recursive_getters
35-
- type_init_formals
36-
- unawaited_futures
37-
- unnecessary_null_in_if_null_operators
38-
- unrelated_type_equality_checks
39-
- use_rethrow_when_possible
40-
- valid_regexps

pkg/dev_compiler/lib/src/js_ast/builder.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// ignore_for_file: slash_for_doc_comments
6+
57
// Utilities for building JS ASTs at runtime. Contains a builder class
68
// and a parser that parses part of the language.
79

pkg/dev_compiler/lib/src/js_ast/nodes.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// ignore_for_file: slash_for_doc_comments
6+
57
part of js_ast;
68

79
abstract class NodeVisitor<T> {

pkg/dev_compiler/lib/src/js_ast/printer.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// ignore_for_file: slash_for_doc_comments
6+
57
part of js_ast;
68

79
class JavaScriptPrintingOptions {

pkg/dev_compiler/lib/src/js_ast/template.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// ignore_for_file: slash_for_doc_comments
6+
57
part of js_ast;
68

79
class TemplateManager {

pkg/dev_compiler/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies:
1515
dev_dependencies:
1616
sourcemap_testing:
1717
path: ../sourcemap_testing
18+
pedantic: ^1.7.0
1819
test: any
1920
testing:
2021
path: ../testing

0 commit comments

Comments
 (0)