require: ezcater_rubocop AllCops: DisplayCopNames: true Layout/FirstHashElementIndentation: EnforcedStyle: consistent Layout/FirstArrayElementIndentation: EnforcedStyle: consistent Layout/MultilineMethodCallIndentation: EnforcedStyle: indented Layout/DotPosition: EnforcedStyle: trailing Metrics/AbcSize: Enabled: false Metrics/BlockLength: Exclude: - "*.gemspec" - "spec/**/*.rb" Metrics/CyclomaticComplexity: Enabled: false Layout/LineLength: Max: 120 Exclude: - "Gemfile" Metrics/MethodLength: Enabled: true CountComments: false Max: 25 Metrics/PerceivedComplexity: Enabled: false Naming/MemoizedInstanceVariableName: EnforcedStyleForLeadingUnderscores: required Naming/MethodParameterName: AllowedNames: - e - ex - id Rails: Enabled: false RSpec/ContextWording: Enabled: false RSpec/DescribeClass: Exclude: - "spec/requests/**/*.rb" - "spec/features/**/*.rb" - "spec/routing/**/*.rb" - "spec/views/**/*.rb" - "spec/system/**/*.rb" - "spec/integrations/**/*.rb" RSpec/ExampleLength: Max: 25 RSpec/LetSetup: Enabled: false RSpec/MessageExpectation: Enabled: true EnforcedStyle: allow RSpec/MultipleExpectations: Max: 5 RSpec/NestedGroups: Max: 5 # From rubocop-rspec Rails/HttpStatus: Enabled: true EnforcedStyle: symbolic Style/EmptyLiteral: Enabled: false Style/FrozenStringLiteralComment: Enabled: true EnforcedStyle: always Style/GuardClause: Enabled: false Style/Documentation: Enabled: false Style/IfUnlessModifier: Enabled: false Style/NegatedIf: Enabled: false # This cop does not yet support a style to prevent underscores Style/NumericLiterals: Enabled: false Style/PercentLiteralDelimiters: PreferredDelimiters: default: '()' '%i': '()' '%I': '()' '%r': '{}' '%w': '()' '%W': '()' Style/RaiseArgs: EnforcedStyle: compact Style/RegexpLiteral: Enabled: true EnforcedStyle: slashes AllowInnerSlashes: true Style/SingleLineBlockParams: Enabled: false Style/StderrPuts: Exclude: - "bin/yarn" Style/StringLiterals: EnforcedStyle: double_quotes Style/TrailingCommaInArrayLiteral: EnforcedStyleForMultiline: consistent_comma Style/TrailingCommaInHashLiteral: EnforcedStyleForMultiline: consistent_comma ### New Cops # Cops are now introduced in a "pending" state and must be explicitly # enabled or disabled. New cops are not enabled by default until the # next major release. #### New cops in v0.81 Lint/RaiseException: Enabled: true Lint/StructNewOverride: Enabled: true #### New cops in v0.80 Style/HashEachMethods: Enabled: true Style/HashTransformKeys: Enabled: true Style/HashTransformValues: Enabled: true