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
582c6b17
Commit
582c6b17
authored
Jun 21, 2018
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unify flay.rake and gettext.rake from EE
parent
40a66cb5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/tasks/flay.rake
lib/tasks/flay.rake
+1
-1
lib/tasks/gettext.rake
lib/tasks/gettext.rake
+1
-1
No files found.
lib/tasks/flay.rake
View file @
582c6b17
desc
'Code duplication analyze via flay'
desc
'Code duplication analyze via flay'
task
:flay
do
task
:flay
do
output
=
`bundle exec flay --mass 35 app/ lib/gitlab/ 2>
#{
File
::
NULL
}
`
output
=
`bundle exec flay --mass 35 app/ lib/gitlab/
ee/
2>
#{
File
::
NULL
}
`
if
output
.
include?
(
"Similar code found"
)
||
output
.
include?
(
"IDENTICAL code found"
)
if
output
.
include?
(
"Similar code found"
)
||
output
.
include?
(
"IDENTICAL code found"
)
puts
output
puts
output
...
...
lib/tasks/gettext.rake
View file @
582c6b17
...
@@ -4,7 +4,7 @@ namespace :gettext do
...
@@ -4,7 +4,7 @@ namespace :gettext do
# Customize list of translatable files
# Customize list of translatable files
# See: https://github.com/grosser/gettext_i18n_rails#customizing-list-of-translatable-files
# See: https://github.com/grosser/gettext_i18n_rails#customizing-list-of-translatable-files
def
files_to_translate
def
files_to_translate
folders
=
%W(app lib config
#{
locale_path
}
)
.
join
(
','
)
folders
=
%W(
ee
app lib config
#{
locale_path
}
)
.
join
(
','
)
exts
=
%w(rb erb haml slim rhtml js jsx vue handlebars hbs mustache)
.
join
(
','
)
exts
=
%w(rb erb haml slim rhtml js jsx vue handlebars hbs mustache)
.
join
(
','
)
Dir
.
glob
(
Dir
.
glob
(
...
...
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