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
4062218f
Commit
4062218f
authored
Jan 05, 2015
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[RuboCop] Enable Style/DoubleNegation
parent
f4fb27a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
.rubocop_todo.yml
.rubocop_todo.yml
+0
-4
analyzer.rb
lib/cocoapods/installer/analyzer.rb
+1
-1
validator_spec.rb
spec/unit/validator_spec.rb
+2
-0
No files found.
.rubocop_todo.yml
View file @
4062218f
...
@@ -27,10 +27,6 @@ Metrics/PerceivedComplexity:
...
@@ -27,10 +27,6 @@ Metrics/PerceivedComplexity:
Style/CommentAnnotation
:
Style/CommentAnnotation
:
Enabled
:
false
Enabled
:
false
# Offense count: 1
Style/DoubleNegation
:
Enabled
:
false
# Offense count: 6
# Offense count: 6
# Configuration parameters: AllowedVariables.
# Configuration parameters: AllowedVariables.
Style/GlobalVars
:
Style/GlobalVars
:
...
...
lib/cocoapods/installer/analyzer.rb
View file @
4062218f
...
@@ -101,7 +101,7 @@ module Pod
...
@@ -101,7 +101,7 @@ module Pod
# change in the Podfile should be locked.
# change in the Podfile should be locked.
#
#
def
update_mode?
def
update_mode?
!!
update
update
!=
nil
end
end
# @return [Symbol] Whether and how the dependencies in the Podfile
# @return [Symbol] Whether and how the dependencies in the Podfile
...
...
spec/unit/validator_spec.rb
View file @
4062218f
...
@@ -322,7 +322,9 @@ module Pod
...
@@ -322,7 +322,9 @@ module Pod
it
'includes the use_frameworks!(false) directive'
do
it
'includes the use_frameworks!(false) directive'
do
podfile
=
@validator
.
send
(
:podfile_from_spec
,
:ios
,
'5.0'
,
false
)
podfile
=
@validator
.
send
(
:podfile_from_spec
,
:ios
,
'5.0'
,
false
)
target_definition
=
podfile
.
target_definitions
[
'Pods'
]
target_definition
=
podfile
.
target_definitions
[
'Pods'
]
# rubocop:disable Style/DoubleNegation
(
!!
target_definition
.
uses_frameworks?
).
should
==
false
(
!!
target_definition
.
uses_frameworks?
).
should
==
false
# rubocop:enable Style/DoubleNegation
end
end
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