require: - rubocop-rails AllCops: Exclude: - 'db/schema.rb' - 'vendor/**/*' # Cop names are not displayed in offense messages by default. Change behavior # by overriding DisplayCopNames, or by giving the -D/--display-cop-names # option. DisplayCopNames: true # Style guide URLs are not displayed in offense messages by default. Change # behavior by overriding DisplayStyleGuide, or by giving the # -S/--display-style-guide option. DisplayStyleGuide: true UseCache: true MaxFilesInCache: 5000 # Adapted from: https://github.com/simplybusiness/how-we-roll/blob/master/development/RUBYSTYLEGUIDE.markdown Rails: Enabled: true ## Rails Cops Rails/TimeZone: Enabled: true Severity: warning Rails/Date: Enabled: true Severity: warning Rails/Delegate: Enabled: false Rails/Output: Enabled: true Rails/Validation: Enabled: true Rails/FindBy: Enabled: true Rails/ActionFilter: Enabled: true Rails/ReadWriteAttribute: Enabled: true Rails/PluralizationGrammar: Enabled: true Rails/SkipsModelValidations: Enabled: true Rails/ActiveRecordCallbacksOrder: Enabled: true Rails/AfterCommitOverride: Enabled: true Rails/FindById: Enabled: true Rails/Inquiry: Enabled: false Rails/MailerName: Enabled: true Rails/MatchRoute: Enabled: true Rails/NegateInclude: Enabled: true Rails/Pluck: Enabled: false Rails/PluckInWhere: Enabled: false Rails/RenderInline: Enabled: true Rails/RenderPlainText: Enabled: true Rails/ShortI18n: Enabled: true Rails/SquishedSQLHeredocs: Enabled: true Rails/WhereExists: Enabled: false Rails/WhereNot: Enabled: false