Skip to content

Instantly share code, notes, and snippets.

@kapoorlakshya
Created April 11, 2019 05:56
Show Gist options
  • Save kapoorlakshya/a7939f551cb935db6987d2e8f82b9c94 to your computer and use it in GitHub Desktop.
Save kapoorlakshya/a7939f551cb935db6987d2e8f82b9c94 to your computer and use it in GitHub Desktop.
rubocop.yml
# Please keep AllCops, Bundler, Layout, Style, Metrics groups and then order cops
# alphabetically
#
# References:
# * https://github.com/bbatsov/ruby-style-guide
# * https://rubocop.readthedocs.io/
AllCops:
DisplayCopNames: true
DisplayStyleGuide: true
ExtraDetails: false
TargetRubyVersion: 2.5
Metrics/LineLength:
Max: 120
Metrics/MethodLength:
Max: 18
Metrics/PerceivedComplexity:
Max: 10
Metrics/CyclomaticComplexity:
Max: 8
Metrics/AbcSize:
Max: 20
Layout/MultilineMethodCallIndentation:
Enabled: false
EnforcedStyle: indented_relative_to_receiver
Layout/EndOfLine:
EnforcedStyle: crlf
Layout/AlignArray:
Enabled: true
Layout/AlignHash:
Enabled: true
EnforcedHashRocketStyle: key
EnforcedColonStyle: table
Layout/AlignParameters:
Enabled: true
EnforcedStyle: with_first_parameter
Layout/IndentHash:
Enabled: true
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
# SupportedStyles: line_count_based, semantic, braces_for_chaining
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
# FunctionalMethods: let, let!, subject, watch
# IgnoredMethods: lambda, proc, it
Style/BlockDelimiters:
EnforcedStyle: braces_for_chaining
Style/CommentedKeyword:
Enabled: false
Style/DoubleNegation:
Enabled: false
Style/MethodCallWithoutArgsParentheses:
Enabled: false
Style/Documentation:
Enabled: false
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: when_needed, always, never
Style/FrozenStringLiteralComment:
Enabled: false
TrailingBlankLines:
Enabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment