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
Jérome Perrin
gitlab-ce
Commits
6748dd2f
Commit
6748dd2f
authored
Nov 11, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow flog failure for now
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
58429d9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
.gitlab-ci.yml
.gitlab-ci.yml
+1
-0
lib/tasks/flog.rake
lib/tasks/flog.rake
+2
-1
No files found.
.gitlab-ci.yml
View file @
6748dd2f
...
...
@@ -80,3 +80,4 @@ flog:
tags
:
-
ruby
-
mysql
allow_failure
:
true
lib/tasks/flog.rake
View file @
6748dd2f
...
...
@@ -2,6 +2,7 @@ desc 'Code complexity analyze via flog'
task
:flog
do
output
=
%x(bundle exec flog -m app/ lib/gitlab)
exit_code
=
0
minimum_score
=
70
output
=
output
.
lines
# Skip total complexity score
...
...
@@ -14,7 +15,7 @@ task :flog do
score
,
method
=
line
.
split
(
" "
)
score
=
score
.
to_i
if
score
>
40
if
score
>
minimum_score
exit_code
=
1
puts
"High complexity in
#{
method
}
. Score:
#{
score
}
"
end
...
...
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