Commit 4062218f authored by Samuel E. Giddins's avatar Samuel E. Giddins

[RuboCop] Enable Style/DoubleNegation

parent f4fb27a3
...@@ -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:
......
...@@ -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
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment