Permalink
Commits on Sep 30, 2018
  1. [Fix #4156] Keep max for Metrics in rubocop_todo

    Ana06 authored and bbatsov committed Sep 23, 2018
    When generating the rubocop_todo.yml with the `--auto-gen-only-exclude` option,
    do not change the max for the metrics cops unless they exceed the exclude
    limit.
    
    In the previous commit, it was not changed even when exceeding the limit.
Commits on Jan 23, 2017
  1. Improve the documentation of ZeroLengthPredicate

    Ana06 authored and bbatsov committed Jan 18, 2017
    The ZeroLengthPredicate cop  not only checks for `receiver.length == 0`,
    `receiver.length > 0` and `receiver.length != 0`, but also things like
    `receiver.length < 1` and `receiver.size == 0`. Documentation updated to
    include these cases.
Commits on Nov 20, 2016
  1. Avoid that uncorrected offenses are tested wrongly

    Ana06 authored and bbatsov committed Nov 20, 2016
    Avoid that uncorrected offenses are tested as corrected offenses with
    the the corrected expression being the same as the original one for the
    TernaryParenthesis cop.
  2. Fix non-autocorrected offenses wrong tested

    Ana06 authored and bbatsov committed Nov 19, 2016
    Some cases in the ternary_parentheses_spec.rb are tested as
    autocorrected with the expression corrected being the same as the
    original one. This is actually because it is not corrected and it
    should be tested like an uncorrected case.
  3. Add more test cases for TernaryParentheses cop

    Ana06 authored and bbatsov committed Nov 19, 2016
    Add tests for the TernaryParentheses cop to cover the case that was
    failing in #3687.
    It has already been fixed but there were no tests for this case.
Commits on Nov 17, 2016
  1. [Fix #3687] TernaryParentheses claims to correct

    Ana06 authored and bbatsov committed Nov 11, 2016
    Style/TernaryParentheses cop claims to correct uncorrected offenses
    (safe assignment or unsafe autocorrection).
Commits on Oct 30, 2016
  1. Fix option name in HashSyntax's documentation (#3683)

    Ana06 authored and bbatsov committed Oct 30, 2016
    The option is called ruby19_no_mixed_keys and not ruby19_mixed_keys.