.rubocop_cocoapods.yml in postit-0.1.1 vs .rubocop_cocoapods.yml in postit-0.1.2
- old
+ new
@@ -3,10 +3,11 @@
- ./Rakefile
- ./Gemfile
- ./*.gemspec
Exclude:
- ./spec/fixtures/**/*
+ - ./vendor/bundle/**/*
# At the moment not ready to be used
# https://github.com/bbatsov/rubocop/issues/947
Documentation:
Enabled: false
@@ -37,13 +38,16 @@
Encoding:
Enabled: false
# Having these make it easier to *not* forget to add one when adding a new
# value and you can simply copy the previous line.
-TrailingComma:
+Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
+Style/TrailingCommaInLiteral:
+ EnforcedStyleForMultiline: comma
+
Style/MultilineOperationIndentation:
EnforcedStyle: indented
# Clashes with CLAide Command#validate!
GuardClause:
@@ -51,15 +55,25 @@
# Not always desirable: lib/claide/command/plugins_helper.rb:12:15
Next:
Enabled: false
+# Autocorrect makes this cop much more useful, taking away needless guessing
+Lint/EndAlignment:
+ AutoCorrect: true
+
+
# Arbitrary max lengths for classes simply do not work and enabling this will
# lead to a never ending stream of annoyance and changes.
Metrics/ClassLength:
Enabled: false
+# Arbitrary max lengths for modules simply do not work and enabling this will
+# lead to a never ending stream of annoyance and changes.
+Metrics/ModuleLength:
+ Enabled: false
+
# Arbitrary max lengths for methods simply do not work and enabling this will
# lead to a never ending stream of annoyance and changes.
Metrics/MethodLength:
Enabled: false
@@ -75,10 +89,15 @@
# It will be obvious which code is complex, Rubocop should only lint simple
# rules for us.
Metrics/CyclomaticComplexity:
Enabled: false
+# It will be obvious which code is complex, Rubocop should only lint simple
+# rules for us.
+Metrics/PerceivedComplexity:
+ Enabled: false
+
#- CocoaPods support for Ruby 1.8.7 ------------------------------------------#
HashSyntax:
EnforcedStyle: hash_rockets
@@ -99,10 +118,14 @@
# Allow for `should.match /regexp/`.
AmbiguousRegexpLiteral:
Exclude:
- spec/**/*
+Performance/RedundantMatch:
+ Exclude:
+ - spec/**/*
+
# Allow `object.should == object` syntax.
Void:
Exclude:
- spec/**/*
@@ -111,6 +134,5 @@
- spec/**/*
UselessComparison:
Exclude:
- spec/**/*
-