2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa - 'test/**/*'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa - 'spec/**/*'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa - 'features/**/*'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa - 'script/**/*'
5a603707070360a93947a6a0743a104c048dfe8cEugen Kuksa TargetRubyVersion: 2.1
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa# These are all the cops that are enabled in the default configuration.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: Check indentation of private/protected visibility modifiers.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: Check the naming of accessor methods for get_/set_.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use alias_method instead of alias.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Align the elements of an array literal if they span more than
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Align the elements of a hash literal if they span more than
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Align the parameters of a method call if they span more
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa than one line.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: false
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use &&/|| instead of and/or.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use Array#join instead of Array#*.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use only ascii symbols in comments.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use only ascii symbols in identifiers.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks for uses of Module#attr.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Avoid the use of BEGIN blocks.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks if usage of %() or %Q() matches configuration.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Do not use block comments.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Put end statement of multiline block on its own line.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Avoid using {...} for multi-line blocks (multiline chaining is
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa always ugly).
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Prefer {...} over do...end for single-line blocks.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Enforce braces style inside hash parameters.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Avoid explicit use of the case equality operator(===).'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Indentation of when in a case/when/[else/]end.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks for uses of character literals.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use CamelCase for classes and modules.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks style of children classes and modules.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: false
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use self when defining module/class methods.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Avoid the use of class variables.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Preferred collection methods.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa PreferredMethods:
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa collect: 'map'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa collect!: 'map!'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa inject: 'reduce'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa detect: 'find'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa find_all: 'select'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Do not use :: for method call.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Checks formatting of special comments
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa (TODO, FIXME, OPTIMIZE, HACK, REVIEW).
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Indentation of comments.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Constants should use SCREAMING_SNAKE_CASE.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use def with parentheses when there are arguments.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks for use of deprecated Hash methods.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Document classes and non-namespace modules.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: false
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks the position of the dot in multi-line method calls.'
df58acd0ffc385926fd5ee9f1774a0fc08744b5eEugen Kuksa EnforcedStyle: trailing
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks for uses of double negation (!!).'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: false
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: false
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use empty lines between defs.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: "Don't use several empty lines in a row."
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: "Keep blank lines around access modifiers."
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: false
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: "Keeps track of empty lines around block bodies."
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: "Keeps track of empty lines around class bodies."
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: "Keeps track of empty lines around module bodies."
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: "Keeps track of empty lines around method bodies."
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Prefer literals to Array.new/Hash.new/String.new.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use UTF-8 as the source file encoding.'
5a603707070360a93947a6a0743a104c048dfe8cEugen Kuksa EnforcedStyle: when_needed
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Avoid the use of END blocks.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use Unix-style line endings.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use snake_case for source file names.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: false
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks for flip flops'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks use of for or each in multiline loops.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Do not introduce global variables.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Check for conditionals that can be replaced with guard clauses'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: false
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa { :a => 1, :b => 2 }.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Favor modifier if/unless usage when you have a
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa single-line body.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Never use if x; .... Use the ternary operator instead.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Keep indentation straight.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use 2 spaces for indentation.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Checks the indentation of the first element in an array
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks the indentation of the first key in a hash literal.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: false
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use the new lambda literal syntax for single-line blocks.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: false
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use lambda.call(...) instead of lambda.(...).'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Comments should start with a space.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Use \ instead of + or << to concatenate two string literals at
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Do not use parentheses for method calls with no arguments.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Checks if the method definitions have or don't have
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa parentheses.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use the configured style when naming methods.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks for usage of `extend self` in modules.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Avoid multi-line chains of blocks.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Ensures newlines after multiline block do statements.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Never use then for multi-line if/unless.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Avoid multi-line ?: (the ternary operator);
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
6b66fb2ad38fa389c4941a7dd2d3f0e6475b8f01Eugen Kuksa EnforcedStyle: indented
6b66fb2ad38fa389c4941a7dd2d3f0e6475b8f01Eugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Favor unless over if for negative conditions
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa (or control flow or).
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Favor until over while for negative conditions.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use one expression per branch in a ternary operator.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use `next` to skip iteration instead of a condition at the end.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Prefer x.nil? to x == nil.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks for redundant nil checks.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use ! instead of not.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Add underscores to large numeric literals to improve their
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa readability.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Favor the ternary operator(?:) over
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'When defining binary operators, name the argument other.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Don't use parentheses around the condition of an
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use `%`-literal delimiters consistently'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks if uses of %Q/%q match the configured preference.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Avoid Perl-style regex back references.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Check the names of predicate methods.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use proc instead of Proc.new.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks the arguments passed to raise/fail.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: false
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: "Don't use begin blocks when they are not needed."
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: "Checks for an obsolete RuntimeException argument in raise/fail."
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: "Don't use return where it's not required."
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: "Don't use self where it's not needed."
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Use %r for regular expressions matching more than
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa `MaxSlashes` '/' characters.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Use %r only for regular expressions matching more than
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa `MaxSlashes` '/' character.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: false
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Avoid using rescue in its modifier form.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Checks for places where self-assignment shorthand should have
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: "Don't use semicolons to terminate expressions."
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks for proper usage of fail and raise.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: false
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Enforces the names of some block params.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Avoid single-line methods.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Checks that exactly one space is used between a method name
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa and the first argument for method calls without parentheses.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use spaces after colons.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use spaces after commas.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use spaces after if/elsif/unless/while/until/case/when.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Never put a space between a method name and the opening
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa parenthesis in a method definition.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: Tracks redundant space after the ! operator.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use spaces after semicolons.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Checks that the left block brace has or doesn't have space
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'No spaces before commas.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Checks for missing space between code and a comment on the
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'No spaces before semicolons.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Checks that block braces have or don't have surrounding space.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa For blocks taking parameters, checks that the left brace has
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa or doesn't have trailing space.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Checks that the equals signs in parameter default assignments
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa have or don't have surrounding space depending on
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa configuration.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use spaces around operators.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Put a space before the modifier keyword.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'No spaces after [ or before ].'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: "Use spaces inside hash literal braces - or don't."
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa EnforcedStyle: no_space
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'No spaces after ( or before ).'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Avoid Perl-style global variables.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks if uses of quotes match the configured preference.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa EnforcedStyle: single_quotes
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'No hard tabs.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks trailing blank lines and final newline.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa EnforcedStyleForMultiline: comma
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks for trailing comma in argument lists.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa EnforcedStyleForMultiline: comma
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks for trailing comma in array and hash literals.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Avoid trailing whitespace.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Prefer attr_* methods to trivial readers/writers.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Never use unless with else. Rewrite these with the positive
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks for %W when interpolation is not needed.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks for %q/%Q when single quotes or double quotes would do.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Don't interpolate global, instance and class variables
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa directly in strings.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use the configured style when naming variables.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use when x then ... for one-line cases.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks for redundant do after while or until.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Favor modifier while/until usage when you have a
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa single-line body.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use %w or %W for arrays of words.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa#################### Metrics ################################
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Avoid excessive block nesting'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Avoid classes longer than 100 lines of code.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa A complexity metric that is strongy correlated to the number
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa of test cases needed to validate a method.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Limit lines to 80 characters.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Avoid methods longer than 10 lines of code.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Avoid parameter lists longer than three or four parameters.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa A complexity metric geared towards measuring complexity for a
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa human reader.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa#################### Lint ################################
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Checks for ambiguous operators in the first argument of a
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa method invocation without parentheses.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Checks for ambiguous regexp literals in the first argument of
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa a method invocation without parenthesis.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: "Don't use assignment in conditions."
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: false
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Align block ends correctly.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Checks for condition placed in a confusing position relative to
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa the keyword.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Check for debugger calls.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Align ends corresponding to defs correctly.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Check for deprecated class method calls.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Check for odd code arrangement in an else block.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks for empty ensure block.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks for empty string interpolation.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Align ends correctly.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'END blocks should not be placed inside method definitions.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Never use return in an ensure block.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'The use of eval represents a serious security risk.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: "Don't suppress exception."
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Checks for invalid character literals with a non-escaped
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa whitespace character.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks of literals used in conditions.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks for literals used in interpolation.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Use Kernel#loop with break rather than begin/end/until or
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa begin/end/while for post-loop tests.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Checks for method calls with a space before the opening
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa parenthesis.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Use parentheses in the method call to avoid confusion
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa about precedence.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Avoid rescuing the Exception class.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Do not use the same name as outer local variable
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa for block arguments or block local variables.
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks for Object#to_s usage in string interpolation.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Do not use prefix `_` for a variable that is used.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks for unused block arguments.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks for unused method arguments.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Unreachable code.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks for useless access modifiers.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks for useless assignment to a local variable.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks for comparison of something with itself.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks for useless `else` in `begin..end` without `rescue`.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks for useless setter call to a local variable.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Possible use of operator/literal/variable in void context.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa##################### Rails ##################################
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Enforces consistent use of action filter methods.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: false
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Prefer delegate method for delegations.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Prefer has_many :through to has_and_belongs_to_many.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: false
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks for calls to puts, print, etc.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: >-
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Checks for read_attribute(:attr) and
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa write_attribute(:attr, val).
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Checks the arguments of ActiveRecord scopes.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Description: 'Use sexy validations.'
2a18c4c4599ac56a28a7e38bb286b5db8b05b68cEugen Kuksa Enabled: true