.rubocop.yml
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2016-02-11 17:16:01 +0000 using RuboCop version 0.37.2.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
# URISchemes: http, https
Metrics/LineLength:
Max: 80
Exclude:
- 'spec/**/*'
- 'test/**/*'
- 'statistical.gemspec'
- 'bin/distribution'
# 10 lines won't be enough for math oriented code
# 25 decided upon arbitrarily
Metrics/MethodLength:
Max: 25
Style/Documentation:
Exclude:
- 'spec/**/*'
- 'test/**/*'
- 'bin/**/*'
# Indentation width must be 2 spaces
Style/IndentationWidth:
Enabled: true
Exclude:
- 'spec/**/*'
- 'test/**/*'
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues.
# SupportedStyles: ruby19, ruby19_no_mixed_keys, hash_rockets
Style/HashSyntax:
Enabled: true
UseHashRocketsWithSymbolValues: true
Exclude:
- 'statistical.gemspec'
- 'spec/**/*'
- 'test/**/*'
# Cop supports --auto-correct.
Style/MutableConstant:
Enabled: true
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
Exclude:
- 'statistical.gemspec'
Exclude:
- 'statistical.gemspec'
- 'spec/**/*'
- 'test/**/*'
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
# SupportedStyles: space, no_space
Style/SpaceInsideBlockBraces:
Enabled: true
EnforcedStyle: no_space
Exclude:
- 'statistical.gemspec'
- 'spec/**/*'
- 'test/**/*'
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
Enabled: true
Exclude:
- 'statistical.gemspec'
- 'bin/*'
- 'spec/**/*'
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: final_newline, final_blank_line
Style/TrailingBlankLines:
Enabled: true
EnforcedStyle: final_newline
# Cop supports --auto-correct.
Style/TrailingWhitespace:
Enabled: true
# Cop supports --auto-correct.
Style/UnneededPercentQ:
Exclude:
- 'spec/**/*'
- 'test/**/*'
- 'statistical.gemspec'
# I'm fine with either
Style/RedundantReturn:
Enabled: false
# Allow non-ascii characters in comments
Style/AsciiComments:
Enabled: false
Style/Alias:
Enabled: false