Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
b9f28e6f
Commit
b9f28e6f
authored
Mar 11, 2016
by
Phil Quitslund
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2615 from pq/analyze_cleanup
Analyze command cleanup.
parents
a4453231
a2dac85f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
analyze.dart
packages/flutter_tools/lib/src/commands/analyze.dart
+0
-10
No files found.
packages/flutter_tools/lib/src/commands/analyze.dart
View file @
b9f28e6f
...
...
@@ -289,7 +289,6 @@ class AnalyzeCommand extends FlutterCommand {
'--strong'
,
'--package-warnings'
,
'--fatal-warnings'
,
'--strong-hints'
,
'--fatal-hints'
,
// defines lints
'--options'
,
optionsFile
.
path
,
...
...
@@ -340,7 +339,6 @@ class AnalyzeCommand extends FlutterCommand {
RegExp
generalPattern
=
new
RegExp
(
r'^\[(error|warning|hint|lint)\] (.+) \(([^(),]+), line ([0-9]+), col ([0-9]+)\)$'
);
RegExp
allowedIdentifiersPattern
=
new
RegExp
(
r'_?([A-Z]|_+)\b'
);
RegExp
constructorTearOffsPattern
=
new
RegExp
(
'.+#.+// analyzer doesn
\'
t like constructor tear-offs'
);
RegExp
ignorePattern
=
new
RegExp
(
r'// analyzer says "([^"]+)"'
);
RegExp
conflictingNamesPattern
=
new
RegExp
(
'^The imported libraries
\'
([^
\'
]+)
\'
and
\'
([^
\'
]+)
\'
cannot have the same name
\'
([^
\'
]+)
\'
\$
'
);
RegExp
missingFilePattern
=
new
RegExp
(
'^Target of URI does not exist:
\'
([^
\'
)]+)
\'
\$
'
);
...
...
@@ -394,14 +392,6 @@ class AnalyzeCommand extends FlutterCommand {
shouldIgnore
=
true
;
}
else
if
(
constructorTearOffsPattern
.
allMatches
(
sourceLine
).
isNotEmpty
)
{
shouldIgnore
=
true
;
}
else
{
Iterable
<
Match
>
ignoreGroups
=
ignorePattern
.
allMatches
(
sourceLine
);
for
(
Match
ignoreGroup
in
ignoreGroups
)
{
if
(
errorMessage
.
contains
(
ignoreGroup
[
1
]))
{
shouldIgnore
=
true
;
break
;
}
}
}
if
(
shouldIgnore
)
continue
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment