BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
.rubocop.yml
.rubocop.yml
+1
-2
client.rb
lib/gitlab/bitbucket_import/client.rb
+1
-1
No files found.
.rubocop.yml
View file @
51c167ee
...
...
@@ -957,10 +957,9 @@ Performance/EndWith:
Performance/LstripRstrip
:
Enabled
:
true
# TODO: Enable RangeInclude Cop.
# Use `Range#cover?` instead of `Range#include?`.
Performance/RangeInclude
:
Enabled
:
fals
e
Enabled
:
tru
e
# TODO: Enable RedundantBlockCall Cop.
# Use `yield` instead of `block.call`.
...
...
lib/gitlab/bitbucket_import/client.rb
View file @
51c167ee
...
...
@@ -121,7 +121,7 @@ module Gitlab
def
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
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