Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
08a7d480b53b
Commit
59d0263b
authored
Oct 03, 2015
by
Guilherme Garnier
Browse files
Fix rubocop warnings in lib
parent
b138940cc89b
Changes
6
Hide whitespace changes
Inline
Side-by-side
lib/api/helpers.rb
View file @
08a7d480
...
...
@@ -63,11 +63,11 @@ def project_service
user_project
.
build_missing_services
service_method
=
"
#{
underscored_service
}
_service"
send_service
(
service_method
)
end
end
@project_service
||
not_found!
(
"Service"
)
end
...
...
@@ -149,7 +149,6 @@ def required_attributes!(keys)
end
def
attributes_for_keys
(
keys
,
custom_params
=
nil
)
params_hash
=
custom_params
||
params
attrs
=
{}
keys
.
each
do
|
key
|
if
params
[
key
].
present?
or
(
params
.
has_key?
(
key
)
and
params
[
key
]
==
false
)
...
...
lib/event_filter.rb
View file @
08a7d480
...
...
@@ -47,7 +47,7 @@ def apply_filter(events)
actions
<<
Event
::
COMMENTED
if
filter
.
include?
'comments'
events
=
events
.
where
(
action:
actions
)
events
.
where
(
action:
actions
)
end
def
options
(
key
)
...
...
lib/gitlab/contributions_calendar.rb
View file @
08a7d480
...
...
@@ -12,7 +12,6 @@ def timestamps
@timestamps
=
{}
date_from
=
1
.
year
.
ago
date_to
=
Date
.
today
events
=
Event
.
reorder
(
nil
).
contributions
.
where
(
author_id:
user
.
id
).
where
(
"created_at > ?"
,
date_from
).
where
(
project_id:
projects
).
...
...
lib/gitlab/diff/parser.rb
View file @
08a7d480
...
...
@@ -14,8 +14,6 @@ def parse(lines)
lines_arr
=
::
Gitlab
::
InlineDiff
.
processing
lines
lines_arr
.
each
do
|
line
|
raw_line
=
line
.
dup
next
if
filename?
(
line
)
full_line
=
html_escape
(
line
.
gsub
(
/\n/
,
''
))
...
...
lib/gitlab/fogbugz_import/project_creator.rb
View file @
08a7d480
...
...
@@ -23,7 +23,7 @@ def execute
import_url:
Project
::
UNKNOWN_IMPORT_URL
).
execute
import_data
=
project
.
create_import_data
(
project
.
create_import_data
(
data:
{
'repo'
=>
repo
.
raw_data
,
'user_map'
=>
user_map
,
...
...
lib/gitlab/google_code_import/project_creator.rb
View file @
08a7d480
...
...
@@ -23,7 +23,7 @@ def execute
import_url:
repo
.
import_url
).
execute
import_data
=
project
.
create_import_data
(
project
.
create_import_data
(
data:
{
"repo"
=>
repo
.
raw_data
,
"user_map"
=>
user_map
...
...
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