File tree Expand file tree Collapse file tree 2 files changed +16
-13
lines changed Expand file tree Collapse file tree 2 files changed +16
-13
lines changed Original file line number Diff line number Diff line change 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.
1
+ # default set of lint rules enforced for projects at Google
2
+ # https://github.com/dart-lang/pedantic#enabled-lints
4
3
include : package:pedantic/analysis_options.yaml
5
4
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
5
+ # http://dart-lang.github.io/linter/lints
6
+ linter :
7
+ rules :
8
+ omit_local_variable_types : false
9
+ await_only_futures : true
11
10
12
11
analyzer :
13
12
# exclude:
14
13
# - path/to/excluded/files/**
14
+
Original file line number Diff line number Diff line change @@ -34,10 +34,11 @@ extension BitInt on int {
34
34
// uint64 will shift all 64 of its bits,
35
35
// but int64 will shift lower 63 and preserve the highest bit
36
36
37
- if (this >= 0 )
37
+ if (this >= 0 ) {
38
38
return this >> shift;
39
+ }
39
40
else {
40
- int x = this ;
41
+ var x = this ;
41
42
// setting highest bit to zero
42
43
x & = INT64_MAX_POSITIVE ;
43
44
assert (x >= 0 );
@@ -59,10 +60,11 @@ extension BitInt on int {
59
60
// uint64 will shift all 64 of its bits,
60
61
// but int64 will shift lower 63 and preserve the highest bit
61
62
62
- if (this >= 0 )
63
+ if (this >= 0 ) {
63
64
return this >> shift;
65
+ }
64
66
else {
65
- int x = this ;
67
+ var x = this ;
66
68
// setting highest bit to zero
67
69
x & = INT64_MAX_POSITIVE ;
68
70
assert (x >= 0 );
@@ -93,8 +95,9 @@ extension BitInt on int {
93
95
94
96
String toHexUint64 () {
95
97
96
- if (this >= 0 )
98
+ if (this >= 0 ) {
97
99
return this .toRadixString (16 ).toUpperCase ().padLeft (16 , '0' );
100
+ }
98
101
99
102
int lower7bytes = this & INT64_LOWER_7_BYTES ;
100
103
String strLow = lower7bytes.toRadixString (16 ).toUpperCase ().padLeft (14 , '0' );
You can’t perform that action at this time.
0 commit comments