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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
e4990b66
Commit
e4990b66
authored
Jan 26, 2018
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Combine all rake tasks in the static-analysis job
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
7294bc80
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
6 deletions
+29
-6
lib/tasks/lint.rake
lib/tasks/lint.rake
+28
-0
scripts/static-analysis
scripts/static-analysis
+1
-6
No files found.
lib/tasks/lint.rake
View file @
e4990b66
...
...
@@ -16,5 +16,33 @@ unless Rails.env.production?
task
:javascript
do
Rake
::
Task
[
'eslint'
].
invoke
end
desc
"GitLab | lint | Run several lint checks"
task
:all
do
status
=
0
original_stdout
=
$stdout
%w[
config_lint
haml_lint
scss_lint
flay
gettext:lint
lint:static_verification
]
.
each
do
|
task
|
begin
$stdout
=
StringIO
.
new
Rake
::
Task
[
task
].
invoke
rescue
RuntimeError
,
SystemExit
=>
ex
raise
ex
if
ex
.
is_a?
(
RuntimeError
)
&&
task
!=
'haml_lint'
original_stdout
<<
$stdout
.
string
status
=
1
ensure
$stdout
=
original_stdout
end
end
exit
status
end
end
end
scripts/static-analysis
View file @
e4990b66
...
...
@@ -26,15 +26,10 @@ def emit_errors(static_analysis)
end
tasks
=
[
%w[bundle exec rake config_lint]
,
%w[bundle exec rake flay]
,
%w[bundle exec rake haml_lint]
,
%w[bundle exec rake scss_lint]
,
%w[bin/rake lint:all]
,
%w[bundle exec license_finder]
,
%w[yarn run eslint]
,
%w[bundle exec rubocop --parallel]
,
%w[bundle exec rake gettext:lint]
,
%w[bundle exec rake lint:static_verification]
,
%w[scripts/lint-conflicts.sh]
,
%w[scripts/lint-rugged]
]
...
...
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