Created
March 26, 2015 18:05
-
-
Save brandt/48644f452df234a5e0fe to your computer and use it in GitHub Desktop.
Limited subset of Rubocop auto-correct rules enabled
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Type 'Lint' (36): | |
# Supports --auto-correct | |
Lint/BlockAlignment: | |
Description: Align block ends correctly. | |
Enabled: false | |
# Supports --auto-correct | |
Lint/DeprecatedClassMethods: | |
Description: Check for deprecated class method calls. | |
Enabled: false | |
# Supports --auto-correct | |
Lint/RescueException: | |
Description: Avoid rescuing the Exception class. | |
Enabled: false | |
# Supports --auto-correct | |
Lint/StringConversionInInterpolation: | |
Description: Checks for Object#to_s usage in string interpolation. | |
Enabled: false | |
# Supports --auto-correct | |
Lint/UnusedBlockArgument: | |
Description: Checks for unused block arguments. | |
Enabled: false | |
# Supports --auto-correct | |
Lint/UnusedMethodArgument: | |
Description: Checks for unused method arguments. | |
Enabled: false | |
# Type 'Rails' (8): | |
# Supports --auto-correct | |
Rails/ActionFilter: | |
Description: Enforces consistent use of action filter methods. | |
Enabled: false | |
EnforcedStyle: action | |
SupportedStyles: | |
- action | |
- filter | |
Include: | |
- app/controllers/**/*.rb | |
# Supports --auto-correct | |
Rails/Delegate: | |
Description: Prefer delegate method for delegations. | |
Enabled: false | |
# Type 'Style' (136): | |
# Supports --auto-correct | |
Style/AccessModifierIndentation: | |
Description: Check indentation of private/protected visibility modifiers. | |
Enabled: false | |
EnforcedStyle: indent | |
SupportedStyles: | |
- outdent | |
- indent | |
# Supports --auto-correct | |
Style/Alias: | |
Description: Use alias_method instead of alias. | |
Enabled: false | |
# Supports --auto-correct | |
Style/AlignArray: | |
Description: Align the elements of an array literal if they span more than one line. | |
Enabled: false | |
# Supports --auto-correct | |
Style/AlignHash: | |
Description: Align the elements of a hash literal if they span more than one line. | |
Enabled: false | |
EnforcedHashRocketStyle: key | |
EnforcedColonStyle: key | |
EnforcedLastArgumentHashStyle: always_inspect | |
SupportedLastArgumentHashStyles: | |
- always_inspect | |
- always_ignore | |
- ignore_implicit | |
- ignore_explicit | |
# Supports --auto-correct | |
Style/AlignParameters: | |
Description: Align the parameters of a method call if they span more than one line. | |
Enabled: false | |
EnforcedStyle: with_first_parameter | |
SupportedStyles: | |
- with_first_parameter | |
- with_fixed_indentation | |
# Supports --auto-correct | |
Style/AndOr: | |
Description: Use &&/|| instead of and/or. | |
Enabled: false | |
EnforcedStyle: always | |
SupportedStyles: | |
- always | |
- conditionals | |
# Supports --auto-correct | |
Style/Attr: | |
Description: Checks for uses of Module#attr. | |
Enabled: false | |
# Supports --auto-correct | |
Style/BarePercentLiterals: | |
Description: Checks if usage of %() or %Q() matches configuration. | |
Enabled: false | |
EnforcedStyle: bare_percent | |
SupportedStyles: | |
- percent_q | |
- bare_percent | |
# Supports --auto-correct | |
Style/BlockComments: | |
Description: Do not use block comments. | |
Enabled: false | |
# Supports --auto-correct | |
Style/BlockEndNewline: | |
Description: Put end statement of multiline block on its own line. | |
Enabled: false | |
# Supports --auto-correct | |
Style/Blocks: | |
Description: Avoid using {...} for multi-line blocks (multiline chaining is always ugly). Prefer {...} over do...end for single-line blocks. | |
Enabled: false | |
# Supports --auto-correct | |
Style/BracesAroundHashParameters: | |
Description: Enforce braces style inside hash parameters. | |
Enabled: false | |
EnforcedStyle: no_braces | |
SupportedStyles: | |
- braces | |
- no_braces | |
# Supports --auto-correct | |
Style/CharacterLiteral: | |
Description: Checks for uses of character literals. | |
Enabled: false | |
# Supports --auto-correct | |
Style/ClassCheck: | |
Description: Enforces consistent use of `Object#is_a?` or `Object#kind_of?`. | |
Enabled: false | |
EnforcedStyle: is_a? | |
SupportedStyles: | |
- is_a? | |
- kind_of? | |
# Supports --auto-correct | |
Style/ClassMethods: | |
Description: Use self when defining module/class methods. | |
Enabled: false | |
# Supports --auto-correct | |
Style/CollectionMethods: | |
Description: Preferred collection methods. | |
Enabled: false | |
PreferredMethods: | |
collect: map | |
collect!: map! | |
inject: reduce | |
detect: find | |
find_all: select | |
# Supports --auto-correct | |
Style/ColonMethodCall: | |
Description: 'Do not use :: for method call.' | |
Enabled: false | |
# Supports --auto-correct | |
Style/CommentIndentation: | |
Description: Indentation of comments. | |
Enabled: false | |
# Supports --auto-correct | |
Style/DefWithParentheses: | |
Description: Use def with parentheses when there are arguments. | |
Enabled: false | |
# Supports --auto-correct | |
Style/DeprecatedHashMethods: | |
Description: Checks for use of deprecated Hash methods. | |
Enabled: false | |
# Supports --auto-correct | |
Style/EmptyLineBetweenDefs: | |
Description: Use empty lines between defs. | |
Enabled: false | |
AllowAdjacentOneLineDefs: false | |
# Supports --auto-correct | |
Style/EmptyLines: | |
Description: Don't use several empty lines in a row. | |
Enabled: false | |
# Supports --auto-correct | |
Style/EmptyLinesAroundAccessModifier: | |
Description: Keep blank lines around access modifiers. | |
Enabled: false | |
# Supports --auto-correct | |
Style/EmptyLinesAroundBody: | |
Description: Keeps track of empty lines around expression bodies. | |
Enabled: false | |
# Supports --auto-correct | |
Style/EmptyLiteral: | |
Description: Prefer literals to Array.new/Hash.new/String.new. | |
Enabled: false | |
# Supports --auto-correct | |
Style/HashSyntax: | |
Description: 'Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax { :a => 1, :b => 2 }.' | |
Enabled: false | |
EnforcedStyle: ruby19 | |
SupportedStyles: | |
- ruby19 | |
- hash_rockets | |
# Supports --auto-correct | |
Style/IndentArray: | |
Description: Checks the indentation of the first element in an array literal. | |
Enabled: false | |
# Supports --auto-correct | |
Style/IndentHash: | |
Description: Checks the indentation of the first key in a hash literal. | |
Enabled: false | |
EnforcedStyle: special_inside_parentheses | |
SupportedStyles: | |
- special_inside_parentheses | |
- consistent | |
# Supports --auto-correct | |
Style/IndentationConsistency: | |
Description: Keep indentation straight. | |
Enabled: false | |
# Supports --auto-correct | |
Style/IndentationWidth: | |
Description: Use 2 spaces for indentation. | |
Enabled: false | |
# Supports --auto-correct | |
Style/LambdaCall: | |
Description: Use lambda.call(...) instead of lambda.(...). | |
Enabled: false | |
EnforcedStyle: call | |
SupportedStyles: | |
- call | |
- braces | |
# Supports --auto-correct | |
Style/LeadingCommentSpace: | |
Description: Comments should start with a space. | |
Enabled: false | |
# Supports --auto-correct | |
Style/LineEndConcatenation: | |
Description: Use \ instead of + or << to concatenate two string literals at line end. | |
Enabled: false | |
# Supports --auto-correct | |
Style/MethodCallParentheses: | |
Description: Do not use parentheses for method calls with no arguments. | |
Enabled: false | |
# Supports --auto-correct | |
Style/MethodDefParentheses: | |
Description: Checks if the method definitions have or don't have parentheses. | |
Enabled: false | |
EnforcedStyle: require_parentheses | |
SupportedStyles: | |
- require_parentheses | |
- require_no_parentheses | |
# Supports --auto-correct | |
Style/MultilineBlockLayout: | |
Description: Ensures newlines after multiline block do statements. | |
Enabled: false | |
# Supports --auto-correct | |
Style/NegatedIf: | |
Description: Favor unless over if for negative conditions (or control flow or). | |
Enabled: false | |
# Supports --auto-correct | |
Style/NegatedWhile: | |
Description: Favor until over while for negative conditions. | |
Enabled: false | |
# Supports --auto-correct | |
Style/NilComparison: | |
Description: Prefer x.nil? to x == nil. | |
Enabled: false | |
# Supports --auto-correct | |
Style/NonNilCheck: | |
Description: Checks for redundant nil checks. | |
Enabled: false | |
IncludeSemanticChanges: false | |
# Supports --auto-correct | |
Style/Not: | |
Description: Use ! instead of not. | |
Enabled: false | |
# Supports --auto-correct | |
Style/NumericLiterals: | |
Description: Add underscores to large numeric literals to improve their readability. | |
Enabled: false | |
MinDigits: 5 | |
# Supports --auto-correct | |
Style/ParenthesesAroundCondition: | |
Description: Don't use parentheses around the condition of an if/unless/while. | |
Enabled: false | |
AllowSafeAssignment: true | |
# Supports --auto-correct | |
Style/PercentLiteralDelimiters: | |
Description: Use `%`-literal delimiters consistently | |
Enabled: false | |
PreferredDelimiters: | |
"%": "()" | |
"%i": "()" | |
"%q": "()" | |
"%Q": "()" | |
"%r": "{}" | |
"%s": "()" | |
"%w": "()" | |
"%W": "()" | |
"%x": "()" | |
# Supports --auto-correct | |
Style/PercentQLiterals: | |
Description: Checks if uses of %Q/%q match the configured preference. | |
Enabled: false | |
EnforcedStyle: lower_case_q | |
SupportedStyles: | |
- lower_case_q | |
- upper_case_q | |
# Supports --auto-correct | |
Style/PerlBackrefs: | |
Description: Avoid Perl-style regex back references. | |
Enabled: false | |
# Supports --auto-correct | |
Style/Proc: | |
Description: Use proc instead of Proc.new. | |
Enabled: false | |
# Supports --auto-correct | |
Style/RedundantBegin: | |
Description: Don't use begin blocks when they are not needed. | |
Enabled: false | |
# Supports --auto-correct | |
Style/RedundantReturn: | |
Description: Don't use return where it's not required. | |
Enabled: false | |
AllowMultipleReturnValues: false | |
# Supports --auto-correct | |
Style/RedundantSelf: | |
Description: Don't use self where it's not needed. | |
Enabled: false | |
# Supports --auto-correct | |
Style/Semicolon: | |
Description: Don't use semicolons to terminate expressions. | |
Enabled: false | |
AllowAsExpressionSeparator: false | |
# Supports --auto-correct | |
Style/SignalException: | |
Description: Checks for proper usage of fail and raise. | |
Enabled: false | |
EnforcedStyle: semantic | |
SupportedStyles: | |
- only_raise | |
- only_fail | |
- semantic | |
# Supports --auto-correct | |
Style/SingleLineMethods: | |
Description: Avoid single-line methods. | |
Enabled: false | |
AllowIfMethodIsEmpty: true | |
# Supports --auto-correct | |
Style/SingleSpaceBeforeFirstArg: | |
Description: Checks that exactly one space is used between a method name and the first argument for method calls without parentheses. | |
Enabled: false | |
Exclude: | |
- "**/metadata.rb" | |
# Supports --auto-correct | |
Style/SpaceAfterColon: | |
Description: Use spaces after colons. | |
Enabled: false | |
# Supports --auto-correct | |
Style/SpaceAfterComma: | |
Description: Use spaces after commas. | |
Enabled: true | |
# Supports --auto-correct | |
Style/SpaceAfterControlKeyword: | |
Description: Use spaces after if/elsif/unless/while/until/case/when. | |
Enabled: false | |
# Supports --auto-correct | |
Style/SpaceAfterMethodName: | |
Description: Never put a space between a method name and the opening parenthesis in a method definition. | |
Enabled: false | |
# Supports --auto-correct | |
Style/SpaceAfterNot: | |
Description: Tracks redundant space after the ! operator. | |
Enabled: false | |
# Supports --auto-correct | |
Style/SpaceAfterSemicolon: | |
Description: Use spaces after semicolons. | |
Enabled: false | |
# Supports --auto-correct | |
Style/SpaceAroundEqualsInParameterDefault: | |
Description: Checks that the equals signs in parameter default assignments have or don't have surrounding space depending on configuration. | |
Enabled: false | |
EnforcedStyle: space | |
SupportedStyles: | |
- space | |
- no_space | |
# Supports --auto-correct | |
Style/SpaceAroundOperators: | |
Description: Use spaces around operators. | |
Enabled: false | |
# Supports --auto-correct | |
Style/SpaceBeforeBlockBraces: | |
Description: Checks that the left block brace has or doesn't have space before it. | |
Enabled: false | |
EnforcedStyle: space | |
SupportedStyles: | |
- space | |
- no_space | |
# Supports --auto-correct | |
Style/SpaceBeforeComma: | |
Description: No spaces before commas. | |
Enabled: false | |
# Supports --auto-correct | |
Style/SpaceBeforeComment: | |
Description: Checks for missing space between code and a comment on the same line. | |
Enabled: false | |
# Supports --auto-correct | |
Style/SpaceBeforeModifierKeyword: | |
Description: Put a space before the modifier keyword. | |
Enabled: false | |
# Supports --auto-correct | |
Style/SpaceBeforeSemicolon: | |
Description: No spaces before semicolons. | |
Enabled: false | |
# Supports --auto-correct | |
Style/SpaceInsideBlockBraces: | |
Description: Checks that block braces have or do not have surrounding space. For blocks taking parameters, checks that the left brace has or does not have trailing space. | |
Enabled: false | |
EnforcedStyle: space | |
SupportedStyles: | |
- space | |
- no_space | |
EnforcedStyleForEmptyBraces: no_space | |
SpaceBeforeBlockParameters: true | |
# Supports --auto-correct | |
Style/SpaceInsideBrackets: | |
Description: No spaces after [ or before ]. | |
Enabled: true | |
# Supports --auto-correct | |
Style/SpaceInsideHashLiteralBraces: | |
Description: Use spaces inside hash literal braces - or don't. | |
Enabled: false | |
EnforcedStyle: space | |
EnforcedStyleForEmptyBraces: no_space | |
SupportedStyles: | |
- space | |
- no_space | |
# Supports --auto-correct | |
Style/SpaceInsideParens: | |
Description: No spaces after ( or before ). | |
Enabled: false | |
# Supports --auto-correct | |
Style/SpecialGlobalVars: | |
Description: Avoid Perl-style global variables. | |
Enabled: false | |
# Supports --auto-correct | |
Style/StringLiterals: | |
Description: Checks if uses of quotes match the configured preference. | |
Enabled: true | |
EnforcedStyle: single_quotes | |
SupportedStyles: | |
- single_quotes | |
- double_quotes | |
Style/Tab: | |
Description: No hard tabs. | |
Enabled: true | |
# Supports --auto-correct | |
Style/TrailingBlankLines: | |
Description: Checks trailing blank lines and final newline. | |
Enabled: true | |
EnforcedStyle: final_newline | |
SupportedStyles: | |
- final_newline | |
- final_blank_line | |
# Supports --auto-correct | |
Style/TrailingComma: | |
Description: Checks for trailing comma in parameter lists and literals. | |
Enabled: false | |
EnforcedStyleForMultiline: no_comma | |
SupportedStyles: | |
- comma | |
- no_comma | |
# Supports --auto-correct | |
Style/TrailingWhitespace: | |
Description: Avoid trailing whitespace. | |
Enabled: true | |
# Supports --auto-correct | |
Style/TrivialAccessors: | |
Description: Prefer attr_* methods to trivial readers/writers. | |
Enabled: false | |
ExactNameMatch: false | |
AllowPredicates: false | |
AllowDSLWriters: false | |
Whitelist: | |
- to_ary | |
- to_a | |
- to_c | |
- to_enum | |
- to_h | |
- to_hash | |
- to_i | |
- to_int | |
- to_io | |
- to_open | |
- to_path | |
- to_proc | |
- to_r | |
- to_regexp | |
- to_str | |
- to_s | |
- to_sym | |
# Supports --auto-correct | |
Style/UnneededCapitalW: | |
Description: Checks for %W when interpolation is not needed. | |
Enabled: false | |
# Supports --auto-correct | |
Style/UnneededPercentQ: | |
Description: Checks for %q/%Q when single quotes or double quotes would do. | |
Enabled: false | |
# Supports --auto-correct | |
Style/UnneededPercentX: | |
Description: Checks for %x when `` would do. | |
Enabled: false | |
# Supports --auto-correct | |
Style/VariableInterpolation: | |
Description: Don't interpolate global, instance and class variables directly in strings. | |
Enabled: false | |
# Supports --auto-correct | |
Style/WhenThen: | |
Description: Use when x then ... for one-line cases. | |
Enabled: false | |
# Supports --auto-correct | |
Style/WhileUntilDo: | |
Description: Checks for redundant do after while or until. | |
Enabled: false | |
# Supports --auto-correct | |
Style/WordArray: | |
Description: Use %w or %W for arrays of words. | |
Enabled: false | |
MinSize: 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment