danger-dart-linter 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4ac964df5d101496b56c5a065d2f1b3569f1902e118b5b4e6b2df357d2afaf62
|
|
4
|
+
data.tar.gz: 116784256582ada70df868b5fa846d55e3a183620c2fb953b3ac5c60894f8767
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b9a75d3f4206ea32ba0f88619c7e52ca8bdf8926b77c7cd9f338f88796421392697023c838feaebc7cb0bdf59de533f76ae61a322e48750c863a7d652139a1dd
|
|
7
|
+
data.tar.gz: 434f5821e85f10ccbd17f0491e88854bc5d8d66ab7d933d1351021558904dbc18fbdb66e10461c9e9b08762bc9727e196883a142a2f87f0d999b5f2e8ec74da8
|
|
@@ -9,7 +9,7 @@ class DartAnalyzeParser
|
|
|
9
9
|
|
|
10
10
|
# Check if the line starts with error, warning or info
|
|
11
11
|
level_pattern = /^(?:error|warning|info)/
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
filtered_input
|
|
14
14
|
.select { |line| line.match?(level_pattern) }
|
|
15
15
|
.map(&method(:parse_line))
|
|
@@ -24,7 +24,8 @@ class DartAnalyzeParser
|
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
def parse_line(line)
|
|
27
|
-
|
|
27
|
+
separator = line.include?(" • ") ? " • " : " - "
|
|
28
|
+
level, file_with_line_number, description, rule = line.split(separator)
|
|
28
29
|
file, line = file_with_line_number.split(":")
|
|
29
30
|
|
|
30
31
|
DartViolation.new(level, rule, description, file, line.to_i)
|
|
@@ -3,7 +3,7 @@ Analyzing my_flutter_project...
|
|
|
3
3
|
|
|
4
4
|
error • lib/main.dart:2:6 • Missing concrete implementation of Xpto • non_abstract_class_inherits_abstract_member
|
|
5
5
|
warning • lib/main.dart:3:4 • The method doesn't override an inherited method • override_on_non_overriding_member
|
|
6
|
-
info
|
|
6
|
+
info - lib/main.dart:5:7 - Name types using UpperCamelCase - camel_case_types
|
|
7
7
|
info • lib/home/home_page.dart:13:13 • Prefer const with constant constructors • prefer_const_constructors
|
|
8
8
|
info • lib/profile/user/phone_widget.dart:19:7 • AVOID catches without on clauses • avoid_catches_without_on_clauses
|
|
9
9
|
|