Skip to content

Commit abcdae6

Browse files
authored
Require the latest version of pkg:lints (#1136)
Fix new lints Remove explicit lints that are added to lints v2
1 parent 49bc3ff commit abcdae6

File tree

5 files changed

+7
-12
lines changed

5 files changed

+7
-12
lines changed

analysis_options.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,4 @@ linter:
33
rules:
44
- avoid_dynamic_calls
55
- directives_ordering
6-
- prefer_equal_for_default_values
7-
- prefer_generic_function_type_aliases
8-
- slash_for_doc_comments
96
- unawaited_futures
10-
- unnecessary_const
11-
- unnecessary_new

example/format.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ void runTest(String path, int line) {
100100

101101
var input = '';
102102
while (!lines[i].startsWith('<<<')) {
103-
input += lines[i++] + '\n';
103+
input += '${lines[i++]}\n';
104104
}
105105

106106
var expectedOutput = '';
107107
while (++i < lines.length && !lines[i].startsWith('>>>')) {
108-
expectedOutput += lines[i] + '\n';
108+
expectedOutput += '${lines[i]}\n';
109109
}
110110

111111
if (line != startLine) continue;

pubspec.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ packages:
7777
name: file
7878
url: "https://pub.dartlang.org"
7979
source: hosted
80-
version: "6.1.2"
80+
version: "6.1.4"
8181
frontend_server_client:
8282
dependency: transitive
8383
description:
@@ -133,7 +133,7 @@ packages:
133133
name: lints
134134
url: "https://pub.dartlang.org"
135135
source: hosted
136-
version: "1.0.1"
136+
version: "2.0.0"
137137
logging:
138138
dependency: transitive
139139
description:

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dev_dependencies:
2121
# TODO(rnystrom): Disabled for now because node_preamble is not migrated yet
2222
# and publishing to npm hasn't been used in a while.
2323
# node_preamble: ^1.0.0
24-
lints: ^1.0.0
24+
lints: ^2.0.0
2525
test: ^1.16.8
2626
test_descriptor: ^2.0.0
2727
test_process: ^2.0.0

test/utils.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,12 @@ void _testFile(String name, String path, Iterable<StyleFix>? baseFixes) {
216216

217217
var input = '';
218218
while (!lines[i].startsWith('<<<')) {
219-
input += lines[i++] + '\n';
219+
input += '${lines[i++]}\n';
220220
}
221221

222222
var expectedOutput = '';
223223
while (++i < lines.length && !lines[i].startsWith('>>>')) {
224-
expectedOutput += lines[i] + '\n';
224+
expectedOutput += '${lines[i]}\n';
225225
}
226226

227227
// Unescape special Unicode escape markers.

0 commit comments

Comments
 (0)