From: Tom Hughes Date: Wed, 25 Feb 2015 00:32:12 +0000 (+0000) Subject: Add rails cops to rubocop todo X-Git-Tag: live~4181 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/750484d1b5adb4ab9913b181d2f26b4a5a8476d0?ds=sidebyside Add rails cops to rubocop todo --- diff --git a/.rubocop.yml b/.rubocop.yml index dce00b925..19403fed5 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,8 @@ inherit_from: .rubocop_todo.yml +AllCops: + RunRailsCops: true + Style/BracesAroundHashParameters: EnforcedStyle: context_dependent diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index a83e74d27..c4eb88ac4 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,5 +1,5 @@ # This configuration was generated by `rubocop --auto-gen-config` -# on 2015-02-16 19:20:52 +0000 using RuboCop version 0.29.1. +# on 2015-02-25 00:27:05 +0000 using RuboCop version 0.29.1. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new @@ -9,7 +9,7 @@ Lint/AmbiguousOperator: Enabled: false -# Offense count: 110 +# Offense count: 107 Lint/AmbiguousRegexpLiteral: Enabled: false @@ -26,7 +26,7 @@ Lint/HandleExceptions: Lint/ParenthesesAsGroupedExpression: Enabled: false -# Offense count: 546 +# Offense count: 542 Metrics/AbcSize: Max: 194 @@ -43,7 +43,7 @@ Metrics/ClassLength: Metrics/CyclomaticComplexity: Max: 21 -# Offense count: 2112 +# Offense count: 2092 # Configuration parameters: AllowURI, URISchemes. Metrics/LineLength: Max: 520 @@ -62,6 +62,28 @@ Metrics/ParameterLists: Metrics/PerceivedComplexity: Max: 24 +# Offense count: 164 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, SupportedStyles, Include. +Rails/ActionFilter: + Enabled: false + +# Offense count: 2 +# Configuration parameters: Include. +Rails/HasAndBelongsToMany: + Enabled: false + +# Offense count: 17 +# Cop supports --auto-correct. +# Configuration parameters: Include. +Rails/ReadWriteAttribute: + Enabled: false + +# Offense count: 123 +# Configuration parameters: Include. +Rails/Validation: + Enabled: false + # Offense count: 5 Style/AccessorMethodName: Enabled: false @@ -70,11 +92,11 @@ Style/AccessorMethodName: Style/AsciiComments: Enabled: false -# Offense count: 306 +# Offense count: 305 Style/Documentation: Enabled: false -# Offense count: 41 +# Offense count: 39 # Configuration parameters: MinBodyLength. Style/GuardClause: Enabled: false @@ -114,7 +136,8 @@ Style/RescueModifier: Style/StringLiteralsInInterpolation: Enabled: false -# Offense count: 3 +# Offense count: 4 +# Cop supports --auto-correct. # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, Whitelist. Style/TrivialAccessors: Enabled: false