Sha256: 81eb1ee76219e87bafba656719352f6d9f8c4a7c15d84bcf222ede94b6da0e63

Contents?: true

Size: 1.89 KB

Versions: 3

Compression:

Stored size: 1.89 KB

Contents

# Default style guide 'https://github.com/bbatsov/ruby-style-guide'.

AllCops:
  Exclude:
  - 'bin/**/*'
  - 'config/**/*'
  - 'db/**/*'
  - 'tmp/**/*'
  - 'spec/dummy/**/*'
  - 'vendor/**/*'

Rails:
  Enabled: true

# Allow if (foo = get_foo) style
Lint/AssignmentInCondition:
  AllowSafeAssignment: true

# Documenting all classes is not common in Rails projects.
Style/Documentation:
  Enabled: false

# Provides more information, while still being displayable in modern wide-screen.
# TODO: Re-enable once linelength has been fixed everywhere.
# Metrics/LineLength:
#   Max: 120

# Allow the use of 'and' 'or' in control structures.
Style/AndOr:
  EnforcedStyle: conditionals

# Allow multiple Hash parameters to look similar
Style/BracesAroundHashParameters:
  EnforcedStyle: context_dependent

Style/ClassAndModuleChildren:
  Enabled: false

Style/CollectionMethods:
  Enabled: true

# Place . on the previous line
Style/DotPosition:
  EnforcedStyle: trailing

# This cop doesn't detect use of break yet
Style/EachWithObject:
  Enabled: false

# Do not use unnecessary spacing.
Style/ExtraSpacing:
  Enabled: true

# Allows format strings with: format, sprintf or percent.
Style/FormatString:
  Enabled: false

# TODO: Re-enable and fix offenses
Style/GuardClause:
  Enabled: false

# Multi-line operations should be simply indented. Aligning them makes it even
# harder to keep a sane line length.
Style/MultilineMethodCallIndentation:
  EnforcedStyle: indented

# Multi-line operations should be simply indented. Aligning them makes it even
# harder to keep a sane line length.
Style/MultilineOperationIndentation:
  EnforcedStyle: indented

# TODO: Re-enable?
Style/NumericPredicate:
  Enabled: false

# Always use raise to raise exceptions
Style/SignalException:
  EnforcedStyle: only_raise

# Allow meaningful names for single-line reduce etc.
Style/SingleLineBlockParams:
  Enabled: false

inherit_from: .rubocop_todo.yml

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
publify_core-9.0.0.pre6 .rubocop.yml
publify_core-9.0.0.pre5 .rubocop.yml
publify_core-9.0.0.pre4 .rubocop.yml