Sha256: 10524eb27c1f3166e498c97e35af52e0a6afadc535e0903588936fb490419906

Contents?: true

Size: 1.36 KB

Versions: 13

Compression:

Stored size: 1.36 KB

Contents

# Most of those cops are documented here:
# https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style
#
AllCops:
  NewCops: disable

require:
  - standard # https://github.com/standardrb/standard

inherit_gem:
  standard: config/base.yml

# String literals should never be mutable.
Style/FrozenStringLiteralComment:
  Enabled: true

# Constants should never be mutable.
Style/MutableConstant:
  Enabled: true
  EnforcedStyle: strict

# Pass &:method_name as an argument to index_by instead of a block.
Style/SymbolProc:
  Enabled: true

# Prefer `[:foo, :bar]` to `%i[foo bar]`.
Style/SymbolArray:
  Enabled: true
  EnforcedStyle: brackets

# Prefer `["foo", "bar"]` to `%w[foo bar]`.
Style/WordArray:
  Enabled: true
  EnforcedStyle: brackets

# <% if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.1") %>
Style/HashSyntax:
  Enabled: true
  EnforcedShorthandSyntax: always
# <% end %>

# Keep at the end of the file (after the individual cops configuration),
# otherwise, those cops are not configured properly.
inherit_from:
# <% Dir["#{File.expand_path(__dir__)}/rubocop_extensions/*.yml"].each do |filename| %>
#   <% gem_name = filename.delete_suffix(".yml").delete_prefix("#{File.expand_path(__dir__)}/rubocop_extensions/") %>
#   <% if Gem.loaded_specs.key?(gem_name) %>
  - rubocop_extensions/<%= gem_name %>.yml
#   <% end # if Gem.loaded_specs.key? %>
# <% end # Dir.foreach %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
shimmer-0.0.41 config/rubocop_base.yml
shimmer-0.0.40 config/rubocop_base.yml
shimmer-0.0.39 config/rubocop_base.yml
shimmer-0.0.38 config/rubocop_base.yml
shimmer-0.0.37 config/rubocop_base.yml
shimmer-0.0.36 config/rubocop_base.yml
shimmer-0.0.35 config/rubocop_base.yml
shimmer-0.0.34 config/rubocop_base.yml
shimmer-0.0.33 config/rubocop_base.yml
shimmer-0.0.32 config/rubocop_base.yml
shimmer-0.0.31 config/rubocop_base.yml
shimmer-0.0.30 config/rubocop_base.yml
shimmer-0.0.29 config/rubocop_base.yml