Skip to content

Commit 7e673c4

Browse files
Merge 757c517 into master
2 parents 28344d6 + 757c517 commit 7e673c4

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

analysis_options.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
# default set of lint rules enforced for projects at Google
22
# https://github.com/dart-lang/pedantic#enabled-lints
3-
include: package:pedantic/analysis_options.yaml
3+
include: package:lints/recommended.yaml
44

55
# http://dart-lang.github.io/linter/lints
66
linter:
77
rules:
88
omit_local_variable_types: false
99
unnecessary_this: false
1010
await_only_futures: true
11+
file_names: false
12+
constant_identifier_names: false
13+
non_constant_identifier_names: false
1114

1215
analyzer:
1316
# exclude:

pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ dependencies:
1111
meta: ^1.3.0
1212

1313
dev_dependencies:
14+
lints: ^1.0.1
1415
quiver: ^3.0.0
1516
test: ^1.5.1

test/helper.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ void testCommonRandom(RandomBase32 Function() createRandom,
204204
} else {
205205
throw AssertionError();
206206
}
207-
;
208207
}
209208

210209
expect(countZeroes, greaterThan(N * 0.3));

test/int_test.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ void main() {
7474
];
7575

7676
for (final pair in data) {
77-
expect(pair[0].toUint32(), pair[1], reason: '${pair[0].toRadixString(16)}');
78-
expect(pair[0].toUint32().toUint32(), pair[1], reason: '${pair[0].toRadixString(16)}');
77+
expect(pair[0].toUint32(), pair[1], reason: pair[0].toRadixString(16));
78+
expect(pair[0].toUint32().toUint32(), pair[1], reason: pair[0].toRadixString(16));
7979
}
8080
});
8181

@@ -107,7 +107,7 @@ void main() {
107107
];
108108

109109
for (final pair in data) {
110-
expect(pair[0].toInt32(), pair[1], reason: '${pair[0].toRadixString(16)}');
110+
expect(pair[0].toInt32(), pair[1], reason: pair[0].toRadixString(16));
111111
}
112112
});
113113

@@ -132,8 +132,8 @@ void main() {
132132
[0x80000001, -2147483647],
133133
[0x80000002, -2147483646],
134134
]) {
135-
expect(pair[0].uint32_to_int32(), pair[1], reason: '${pair[0].toRadixString(16)}');
136-
expect(pair[1].int32_as_uint32(), pair[0], reason: '${pair[0].toRadixString(16)}');
135+
expect(pair[0].uint32_to_int32(), pair[1], reason: pair[0].toRadixString(16));
136+
expect(pair[1].int32_as_uint32(), pair[0], reason: pair[0].toRadixString(16));
137137
}
138138
});
139139
}

0 commit comments

Comments
 (0)