.rubocop.yml in webhook_system-2.4.0 vs .rubocop.yml in webhook_system-2.4.1
- old
+ new
@@ -1,15 +1,33 @@
+require:
+ - rubocop-rails
+ - rubocop-rspec
+ - rubocop-performance
+
inherit_from:
- .rubocop_todo.yml
- - .rubocop.hound.yml
+Rails:
+ Enabled: true
+
AllCops:
NewCops: enable
Exclude:
- '*.gemspec'
- 'Gemfile'
+ - vendor/bundle/ruby/**/*
+RSpec/NotToNot:
+ SupportedStyles: to_not
+ # disable because an error is being raised
+ Enabled: false
+
+Style/TrailingCommaInArrayLiteral:
+ EnforcedStyleForMultiline: consistent_comma
+Style/TrailingCommaInHashLiteral:
+ EnforcedStyleForMultiline: consistent_comma
+
Style/Lambda:
Enabled: false
Layout/EmptyLinesAroundClassBody:
Enabled: false
@@ -53,5 +71,26 @@
Metrics/AbcSize:
Description: A calculated magnitude based on number of assignments, branches, and
conditions.
Enabled: true
Max: 30
+
+Metrics/BlockLength:
+ Max: 25
+ AllowedMethods:
+ - context
+ - describe
+ - define
+
+Rails/RakeEnvironment:
+ Exclude:
+ - 'Rakefile'
+
+Rails/ApplicationJob:
+ Exclude:
+ - 'lib/webhook_system/job.rb'
+
+Rails/ApplicationRecord:
+ Exclude:
+ - 'lib/webhook_system/event_log.rb'
+ - 'lib/webhook_system/subscription.rb'
+ - 'lib/webhook_system/subscription_topic.rb'