Sha256: fa251eff85f94bf12ea618166cca9026edb702a49261c15b5cec7bfda271f3c4
Contents?: true
Size: 1.91 KB
Versions: 1
Compression:
Stored size: 1.91 KB
Contents
# This file contains NDR's agreed deviations from the standard Ruby # Style Guide, the configuration for which can be found here: # https://github.com/bbatsov/rubocop/blob/master/config/default.yml # # See the README for instructions on using in a project. AllCops: # All cops should ignore files in the following locations: Exclude: - 'bin/*' - 'db/**/*' - 'lib/generators/**/templates/*' - 'vendor/**/*' # Run the Rails cops by default (-R/--rails not required): Rails: Enabled: true ##################### Style ################################## # We make use of block comments, e.g. for validation documentation. Style/BlockComments: Enabled: false Style/DotPosition: # Multi-line method chaining should be done with trailing dots. EnforcedStyle: trailing Style/IfUnlessModifier: MaxLineLength: 100 Style/ModuleFunction: # `extend self` has fewer side effects than `module_function`. EnforcedStyle: extend_self Style/NumericLiterals: Exclude: - 'test/**/*.rb' Style/SingleLineBlockParams: # Prefer readability of contextually-named variables. Enabled: false Style/WhileUntilModifier: MaxLineLength: 100 ##################### Metrics ################################## # NOTE: we bump some metrics by 50%, in recognition of Rubocop's # desire to split that which we would consider atomic. Metrics/ClassLength: Max: 150 Exclude: - test/**/*.rb Metrics/ModuleLength: Max: 150 Exclude: - test/**/*.rb Metrics/CyclomaticComplexity: Max: 9 Metrics/LineLength: Max: 100 Exclude: - test/**/*.rb Metrics/MethodLength: Max: 15 Exclude: - test/**/*.rb Metrics/PerceivedComplexity: Max: 12 ##################### Rails ################################## Rails/ActionFilter: # 'action' is the default already; we explicitly list here as Rails 3.x # projects will want to override this configuration to use 'filter' instead. EnforcedStyle: action
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ndr_dev_support-1.3.0 | .rubocop.yml |