Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
578eb92c
Commit
578eb92c
authored
Nov 14, 2014
by
Olivier Halligon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shush rubocop
parent
f1f43240
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
.rubocop_todo.yml
.rubocop_todo.yml
+1
-1
spec.rb
lib/cocoapods/command/spec.rb
+3
-5
No files found.
.rubocop_todo.yml
View file @
578eb92c
...
@@ -44,7 +44,7 @@ Metrics/LineLength:
...
@@ -44,7 +44,7 @@ Metrics/LineLength:
# Offense count: 106
# Offense count: 106
# Configuration parameters: CountComments.
# Configuration parameters: CountComments.
Metrics/MethodLength
:
Metrics/MethodLength
:
Max
:
39
Max
:
40
# Offense count: 12
# Offense count: 12
Metrics/PerceivedComplexity
:
Metrics/PerceivedComplexity
:
...
...
lib/cocoapods/command/spec.rb
View file @
578eb92c
...
@@ -330,11 +330,9 @@ module Pod
...
@@ -330,11 +330,9 @@ module Pod
# @raise if the query is not a valid regular expression
# @raise if the query is not a valid regular expression
#
#
def
validate_regex!
(
query
)
def
validate_regex!
(
query
)
begin
/
#{
query
}
/
/
#{
query
}
/
rescue
RegexpError
rescue
RegexpError
help!
'A valid regular expression is required.'
help!
'A valid regular expression is required.'
end
end
end
# @return [Fixnum] the index of the chosen array item
# @return [Fixnum] the index of the chosen array item
...
...
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