Sha256: ab2019a7d1143d2d2dfe8a1eaf6232cb0b04ec17c00cb1e35f7698e27c688434

Contents?: true

Size: 1.85 KB

Versions: 6

Compression:

Stored size: 1.85 KB

Contents

# I like trailing commas in hashes.  They let me insert new elements and
# see them as one line in a diff, not two.
Style/TrailingCommaInHashLiteral:
  EnforcedStyleForMultiline: comma

Style/TrailingCommaInArrayLiteral:
  EnforcedStyleForMultiline: comma

# I use keyword arguments for a poor man's dependency injection to cut
# down on the magic in my tests.
Metrics/ParameterLists:
  CountKeywordArgs: false

# If I'm using one function name and returning the contents of an
# attribute, that's OK.  The alternative would be this, which I find
# confusing and often not really what I mean:
#
# attr_reader :something_else
# alias_method :something, :something_else
Style/TrivialAccessors:
   ExactNameMatch: true

#
# Add 'XX X' to the standard list
#
Style/CommentAnnotation:
   Keywords:
    - "TOD\
       O"
    - "FIXM\
       E"
    - "OPTIMIZ\
       E"
    - "HAC\
       K"
    - "REVIE\
       W"
    - "XX\
       X"

# https://stackoverflow.com/questions/40934345/rubocop-25-line-block-size-and-rspec-tests
Metrics/BlockLength:
  # Exclude DSLs
  Exclude:
    - 'Rakefile'
    - '*.gemspec'
    - '**/*.rake'
    - 'spec/**/*.rb'
    - 'feature/**/*.rb'

# http://www.betterspecs.org/#single
#
# > in tests that are not isolated (e.g. ones that integrate with a
# > DB, an external webservice, or end-to-end-tests), you take a
# > massive performance hit to do the same setup over and over again,
# > just to set a different expectation in each test. In these sorts
# > of slower tests, I think it's fine to specify more than one
# > isolated behavior.
RSpec/MultipleExpectations:
  Exclude:
    - 'feature/**/*.rb'

Style/StringLiterals:
    EnforcedStyle: single_quotes
    SupportedStyles:
      - single_quotes
      - double_quotes
    ConsistentQuotesInMultiline: true

AllCops:
  TargetRubyVersion: 2.4


require:
  - rubocop-rspec
  - rubocop-minitest
  - rubocop-rake

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
checkoff-0.5.2 .rubocop.yml
checkoff-0.5.1 .rubocop.yml
checkoff-0.5.0 .rubocop.yml
checkoff-0.4.0 .rubocop.yml
checkoff-0.3.2 .rubocop.yml
high_water_mark-0.1.0 .rubocop.yml