.rubocop.yml
require: - rubocop-factory_bot - rubocop-rails - rubocop-rspec - rubocop-rspec_rails AllCops: TargetRubyVersion: 3.3 DisplayCopNames: true Exclude: - 'db/migrate/**' - 'db/schema.rb' - 'node_modules/**/*' - 'tmp/**/*' - 'vendor/**/*' NewCops: enable ################################## Layout #################################Layout/LineLength: Max: 120 ################################## Metrics ################################Metrics/AbcSize: # Assignment Branch condition size Max: 30Metrics/BlockNesting: # Configuration parameters: CountBlocks. Max: 4Metrics/BlockLength: # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. Exclude: - 'config/**/*' - 'spec/**/*' Max: 120Metrics/ClassLength: Max: 200Metrics/CyclomaticComplexity: Max: 15Metrics/MethodLength: # Configuration parameters: CountComments. Max: 15Metrics/PerceivedComplexity: Max: 15 ################################## Rails ##################################Rails: Enabled: true ################################## RSpec ##################################RSpec/DescribeClass: Enabled: falseRSpec/ExampleLength: Enabled: falseRSpec/MessageSpies: Enabled: falseRSpec/MultipleMemoizedHelpers: # new in 1.43 Max: 6RSpec/NestedGroups: Enabled: falseRSpec/NoExpectationExample: # NOTE: disabled due to shoulda-matchers usage Enabled: false ################################## Style ##################################Style/ClassAndModuleChildren: # Disable checking compact/nesting class/modules style Enabled: falseStyle/Documentation: # Disable documentations, leave it on the programmer’s conscience Enabled: falseStyle/MixinUsage: Exclude: - 'bin/*'Style/StderrPuts: Exclude: - 'bin/*'