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
iv
gitlab-ce
Commits
51c167ee
Commit
51c167ee
authored
May 23, 2016
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable Performance/RangeInclude cop and fix single offense
parent
bc806831
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
.rubocop.yml
.rubocop.yml
+1
-2
lib/gitlab/bitbucket_import/client.rb
lib/gitlab/bitbucket_import/client.rb
+1
-1
No files found.
.rubocop.yml
View file @
51c167ee
...
@@ -957,10 +957,9 @@ Performance/EndWith:
...
@@ -957,10 +957,9 @@ Performance/EndWith:
Performance/LstripRstrip
:
Performance/LstripRstrip
:
Enabled
:
true
Enabled
:
true
# TODO: Enable RangeInclude Cop.
# Use `Range#cover?` instead of `Range#include?`.
# Use `Range#cover?` instead of `Range#include?`.
Performance/RangeInclude
:
Performance/RangeInclude
:
Enabled
:
fals
e
Enabled
:
tru
e
# TODO: Enable RedundantBlockCall Cop.
# TODO: Enable RedundantBlockCall Cop.
# Use `yield` instead of `block.call`.
# Use `yield` instead of `block.call`.
...
...
lib/gitlab/bitbucket_import/client.rb
View file @
51c167ee
...
@@ -121,7 +121,7 @@ module Gitlab
...
@@ -121,7 +121,7 @@ module Gitlab
def
get
(
url
)
def
get
(
url
)
response
=
api
.
get
(
url
)
response
=
api
.
get
(
url
)
raise
Unauthorized
if
(
400
..
499
).
include
?
(
response
.
code
.
to_i
)
raise
Unauthorized
if
(
400
..
499
).
cover
?
(
response
.
code
.
to_i
)
response
response
end
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