Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
190ca052
Commit
190ca052
authored
Jan 05, 2020
by
GitLab Bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add latest changes from gitlab-org/gitlab@master
parent
d513f3fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
scripts/static-analysis
scripts/static-analysis
+14
-1
No files found.
scripts/static-analysis
View file @
190ca052
...
...
@@ -26,6 +26,19 @@ def emit_errors(static_analysis)
end
end
ALLOWED_WARNINGS
=
[
# https://github.com/browserslist/browserslist/blob/d0ec62eb48c41c218478cd3ac28684df051cc865/node.js#L329
# warns if caniuse-lite package is older than 6 months. Ignore this
# warning message so that GitLab backports don't fail.
"Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade`"
].
freeze
def
warning_count
(
static_analysis
)
static_analysis
.
warned_results
.
reject
{
|
result
|
ALLOWED_WARNINGS
.
include?
(
result
.
stderr
.
strip
)
}
.
count
end
def
jobs_to_run
(
node_index
,
node_total
)
all_tasks
=
[
%w[bin/rake lint:all]
,
...
...
@@ -81,7 +94,7 @@ elsif static_analysis.all_success?
emit_warnings
(
static_analysis
)
exit
2
exit
2
if
warning_count
(
static_analysis
).
nonzero?
else
puts
'Some static analyses failed:'
...
...
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