diff --git a/.rubocop.yml b/.rubocop.yml new file mode 100644 index 0000000..b26fce6 --- /dev/null +++ b/.rubocop.yml @@ -0,0 +1,55 @@ +AllCops: + NewCops: enable + +Layout/FirstArrayElementIndentation: + Enabled: false + +Layout/LineLength: + Max: 82 + +Layout/SpaceInsideHashLiteralBraces: + EnforcedStyle: no_space + +Metrics/AbcSize: + Max: 35 + +Metrics/BlockLength: + CountComments: true + Max: 25 + IgnoredMethods: [] + Exclude: + - "spec/**/*" + +Metrics/ClassLength: + Max: 1500 + +Metrics/CyclomaticComplexity: + Max: 10 + +Metrics/MethodLength: + Max: 20 + +Metrics/PerceivedComplexity: + Max: 10 + +Naming/FileName: + Exclude: + - "lib/tty-which.rb" + +Style/AsciiComments: + Enabled: false + +Style/BlockDelimiters: + Enabled: false + +Style/CommentedKeyword: + Enabled: false + +Style/LambdaCall: + EnforcedStyle: braces + +Style/StringLiterals: + EnforcedStyle: double_quotes + +Style/StringLiteralsInInterpolation: + EnforcedStyle: double_quotes