Skip to content
This repository was archived by the owner on May 31, 2021. It is now read-only.

Commit dad2cde

Browse files
pqkwalrath
authored andcommitted
migrate template defaults to use package:pedantic for lints (#594)
Closes #593.
1 parent 96dc51e commit dad2cde

20 files changed

+148
-136
lines changed

lib/src/generators/console_full.g.dart

Lines changed: 10 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/generators/package_simple.g.dart

Lines changed: 10 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/generators/server_shelf.g.dart

Lines changed: 10 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/generators/web_angular.g.dart

Lines changed: 14 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/generators/web_simple.g.dart

Lines changed: 9 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/generators/web_stagexl.g.dart

Lines changed: 9 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/analysis_options.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1+
# Defines a default set of lint rules enforced for
2+
# projects at Google. For details and rationale,
3+
# see https://github.com/dart-lang/pedantic#enabled-lints.
4+
include: package:pedantic/analysis_options.yaml
5+
6+
# For lint rules and documentation, see http://dart-lang.github.io/linter/lints.
7+
# Uncomment to specify additional rules.
8+
# linter:
9+
# rules:
10+
# - camel_case_types
11+
112
analyzer:
213
# exclude:
314
# - path/to/excluded/files/**
4-
5-
# Lint rules and documentation, see http://dart-lang.github.io/linter/lints
6-
linter:
7-
rules:
8-
- cancel_subscriptions
9-
- hash_and_equals
10-
- iterable_contains_unrelated_type
11-
- list_remove_unrelated_type
12-
- test_types_in_equals
13-
- unrelated_type_equality_checks
14-
- valid_regexps
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1+
# Defines a default set of lint rules enforced for
2+
# projects at Google. For details and rationale,
3+
# see https://github.com/dart-lang/pedantic#enabled-lints.
4+
include: package:pedantic/analysis_options.yaml
5+
6+
# For lint rules and documentation, see http://dart-lang.github.io/linter/lints.
7+
# Uncomment to specify additional rules.
8+
# linter:
9+
# rules:
10+
# - camel_case_types
11+
112
analyzer:
213
# exclude:
314
# - path/to/excluded/files/**
4-
5-
# Lint rules and documentation, see http://dart-lang.github.io/linter/lints
6-
linter:
7-
rules:
8-
- cancel_subscriptions
9-
- hash_and_equals
10-
- iterable_contains_unrelated_type
11-
- list_remove_unrelated_type
12-
- test_types_in_equals
13-
- unrelated_type_equality_checks
14-
- valid_regexps

templates/console-full/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ environment:
1111
# path: ^1.4.1
1212

1313
dev_dependencies:
14+
pedantic: ^1.0.0
1415
test: ^1.0.0
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1+
# Defines a default set of lint rules enforced for
2+
# projects at Google. For details and rationale,
3+
# see https://github.com/dart-lang/pedantic#enabled-lints.
4+
include: package:pedantic/analysis_options.yaml
5+
6+
# For lint rules and documentation, see http://dart-lang.github.io/linter/lints.
7+
# Uncomment to specify additional rules.
8+
# linter:
9+
# rules:
10+
# - camel_case_types
11+
112
analyzer:
213
# exclude:
314
# - path/to/excluded/files/**
4-
5-
# Lint rules and documentation, see http://dart-lang.github.io/linter/lints
6-
linter:
7-
rules:
8-
- cancel_subscriptions
9-
- hash_and_equals
10-
- iterable_contains_unrelated_type
11-
- list_remove_unrelated_type
12-
- test_types_in_equals
13-
- unrelated_type_equality_checks
14-
- valid_regexps

templates/package-simple/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ environment:
1111
# path: ^1.4.1
1212

1313
dev_dependencies:
14+
pedantic: ^1.0.0
1415
test: ^1.0.0
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1+
# Defines a default set of lint rules enforced for
2+
# projects at Google. For details and rationale,
3+
# see https://github.com/dart-lang/pedantic#enabled-lints.
4+
include: package:pedantic/analysis_options.yaml
5+
6+
# For lint rules and documentation, see http://dart-lang.github.io/linter/lints.
7+
# Uncomment to specify additional rules.
8+
# linter:
9+
# rules:
10+
# - camel_case_types
11+
112
analyzer:
213
# exclude:
314
# - path/to/excluded/files/**
4-
5-
# Lint rules and documentation, see http://dart-lang.github.io/linter/lints
6-
linter:
7-
rules:
8-
- cancel_subscriptions
9-
- hash_and_equals
10-
- iterable_contains_unrelated_type
11-
- list_remove_unrelated_type
12-
- test_types_in_equals
13-
- unrelated_type_equality_checks
14-
- valid_regexps

templates/server-shelf/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ dependencies:
1111
args: ^1.4.2
1212
shelf: ^0.7.2
1313

14-
#dev_dependencies:
15-
# test: ^1.0.0
14+
dev_dependencies:
15+
pedantic: ^1.0.0
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# Defines a default set of lint rules enforced for
2+
# projects at Google. For details and rationale,
3+
# see https://github.com/dart-lang/pedantic#enabled-lints.
4+
include: package:pedantic/analysis_options.yaml
5+
6+
# For lint rules and documentation, see http://dart-lang.github.io/linter/lints.
7+
# Uncomment to specify additional rules.
8+
# linter:
9+
# rules:
10+
# - camel_case_types
11+
112
analyzer:
213
exclude: [build/**]
314
errors:
@@ -6,14 +17,3 @@ analyzer:
617
# issues: https://github.com/dart-lang/angular_analyzer_plugin/issues
718
# plugins:
819
# - angular
9-
10-
# Lint rules and documentation, see http://dart-lang.github.io/linter/lints
11-
linter:
12-
rules:
13-
- cancel_subscriptions
14-
- hash_and_equals
15-
- iterable_contains_unrelated_type
16-
- list_remove_unrelated_type
17-
- test_types_in_equals
18-
- unrelated_type_equality_checks
19-
- valid_regexps

templates/web-angular/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ dev_dependencies:
1616
build_runner: ^1.1.2
1717
build_test: ^0.10.3
1818
build_web_compilers: ^1.0.0
19+
pedantic: ^1.0.0
1920
test: ^1.5.1
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1+
# Defines a default set of lint rules enforced for
2+
# projects at Google. For details and rationale,
3+
# see https://github.com/dart-lang/pedantic#enabled-lints.
4+
include: package:pedantic/analysis_options.yaml
5+
6+
# For lint rules and documentation, see http://dart-lang.github.io/linter/lints.
7+
# Uncomment to specify additional rules.
8+
# linter:
9+
# rules:
10+
# - camel_case_types
11+
112
analyzer:
213
# exclude:
314
# - path/to/excluded/files/**
4-
5-
# Lint rules and documentation, see http://dart-lang.github.io/linter/lints
6-
linter:
7-
rules:
8-
- cancel_subscriptions
9-
- hash_and_equals
10-
- iterable_contains_unrelated_type
11-
- list_remove_unrelated_type
12-
- test_types_in_equals
13-
- unrelated_type_equality_checks
14-
- valid_regexps

templates/web-simple/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ environment:
1313
dev_dependencies:
1414
build_runner: ^1.1.2
1515
build_web_compilers: ^1.0.0
16+
pedantic: ^1.0.0

0 commit comments

Comments
 (0)