diff --git a/.rubocop.yml b/.rubocop.yml index d1caeb9..a6f4c1f 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -3,3 +3,8 @@ inherit_from: .rubocop_todo.yml AllCops: RunRailsCops: true + +# Caveat: .find_by raises exception in mongoid, unlike ActiveRecord which +# returns nil +Rails/FindBy: + Enabled: false diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 397efba..22e94e8 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2015-10-12 21:40:12 +0200 using RuboCop version 0.34.2. +# on 2015-10-12 21:40:48 +0200 using RuboCop version 0.34.2. # 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 @@ -19,7 +19,7 @@ Metrics/ClassLength: Metrics/CyclomaticComplexity: Max: 11 -# Offense count: 457 +# Offense count: 458 # Configuration parameters: AllowURI, URISchemes. Metrics/LineLength: Max: 239 @@ -33,15 +33,6 @@ Metrics/MethodLength: Metrics/PerceivedComplexity: Max: 12 -# Offense count: 4 -# Cop supports --auto-correct. -# Configuration parameters: Include. -Rails/FindBy: - Exclude: - - 'app/models/app.rb' - - 'app/models/error_report.rb' - - 'app/models/user.rb' - # Offense count: 16 # Configuration parameters: Include. Rails/Output: @@ -163,7 +154,7 @@ Style/DeprecatedHashMethods: Style/Documentation: Enabled: false -# Offense count: 7 +# Offense count: 9 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. Style/DotPosition: -- libgit2 0.21.2