|
| 1 | +### New features |
| 2 | + |
| 3 | +* [#1430](https://github.com/bbatsov/rubocop/issues/1430): Add `--except` option for disabling cops on the command line. ([@jonas054][]) |
| 4 | +* [#1506](https://github.com/bbatsov/rubocop/pull/1506): Add auto-correct from `EvenOdd` cop. ([@blainesch][]) |
| 5 | +* [#1507](https://github.com/bbatsov/rubocop/issues/1507): `Debugger` cop now checks for the Capybara debug methods `save_and_open_page` and `save_and_open_screenshot`. ([@rrosenblum][]) |
| 6 | +* [#1539](https://github.com/bbatsov/rubocop/pull/1539): Implement autocorrection for Rails/ReadWriteAttribute cop. ([@huerlisi][]) |
| 7 | +* [#1324](https://github.com/bbatsov/rubocop/issues/1324): Add `AllCops/DisplayCopNames` configuration option for showing cop names in reports, like `--display-cop-names`. ([@jonas054][]) |
| 8 | +* [#1271](https://github.com/bbatsov/rubocop/issues/1271): `Lambda` cop does auto-correction. ([@lumeet][]) |
| 9 | +* [#1284](https://github.com/bbatsov/rubocop/issues/1284): Support namespaces, e.g. `Lint`, in the arguments to `--only` and `--except`. ([@jonas054][]) |
| 10 | +* [#1276](https://github.com/bbatsov/rubocop/issues/1276): `SelfAssignment` cop does auto-correction. ([@lumeet][]) |
| 11 | +* Add autocorrect to `RedundantException`. ([@mattjmcnaughton][]) |
| 12 | +* [#1571](https://github.com/bbatsov/rubocop/pull/1571): New cop `StructInheritance` checks for inheritance from Struct.new. ([@mmozuras][]) |
| 13 | +* [#1575](https://github.com/bbatsov/rubocop/issues/1575): New cop `DuplicateMethods` points out duplicate method name in class and module. ([@d4rk5eed][]) |
| 14 | +* [#1144](https://github.com/bbatsov/rubocop/issues/1144): New cop `FirstParameterIndentation` checks the indentation of the first parameter in a method call. ([@jonas054][]) |
| 15 | +* [#1627](https://github.com/bbatsov/rubocop/issues/1627): New cop `SpaceAroundBlockParameters` checks the spacing inside and after block parameters pipes. ([@jonas054][]) |
| 16 | + |
| 17 | +### Changes |
| 18 | + |
| 19 | +* [#1492](https://github.com/bbatsov/rubocop/pull/1492): Abort when auto-correct causes an infinite loop. ([@dblock][]) |
| 20 | +* Options `-e`/`--emacs` and `-s`/`--silent` are no longer recognized. Using them will now raise an error. ([@bquorning][]) |
| 21 | +* [#1565](https://github.com/bbatsov/rubocop/issues/1565): Let `--fail-level A` cause exit with error if all offenses are auto-corrected. ([@jonas054][]) |
| 22 | +* [#1309](https://github.com/bbatsov/rubocop/issues/1309): Add argument handling to `MultilineBlockLayout`. ([@lumeet][]) |
| 23 | + |
| 24 | +### Bugs fixed |
| 25 | + |
| 26 | +* [#1634](https://github.com/bbatsov/rubocop/pull/1634): Fix `PerlBackrefs` Cop Autocorrections to Not Raise. ([@cshaffer][]) |
| 27 | +* [#1553](https://github.com/bbatsov/rubocop/pull/1553): Fix bug where `Style/EmptyLinesAroundAccessModifier` interfered with `Style/EmptyLinesAroundBlockBody` when there is and access modifier at the beginning of a block. ([@volkert][]) |
| 28 | +* Handle element assignment in `Lint/AssignmentInCondition`. ([@jonas054][]) |
| 29 | +* [#1484](https://github.com/bbatsov/rubocop/issues/1484): Fix `EmptyLinesAroundAccessModifier` incorrectly finding a violation inside method calls with names identical to an access modifier. ([@dblock][]) |
| 30 | +* Fix bug concerning `Exclude` properties inherited from a higher directory level. ([@jonas054][]) |
| 31 | +* [#1500](https://github.com/bbatsov/rubocop/issues/1500): Fix crashing `--auto-correct --only IndentationWidth`. ([@jonas054][]) |
| 32 | +* [#1512](https://github.com/bbatsov/rubocop/issues/1512): Fix false negative for typical string formatting examples. ([@kakutani][], [@jonas054][]) |
| 33 | +* [#1504](https://github.com/bbatsov/rubocop/issues/1504): Fail with a meaningful error if the configuration file is malformed. ([@bquorning][]) |
| 34 | +* Fix bug where `auto_correct` Rake tasks does not take in the options specified in its parent task. ([@rrosenblum][]) |
| 35 | +* [#1054](https://github.com/bbatsov/rubocop/issues/1054): Handle comments within concatenated strings in `LineEndConcatenation`. ([@yujinakayama][], [@jonas054][]) |
| 36 | +* [#1527](https://github.com/bbatsov/rubocop/issues/1527): Make autocorrect `BracesAroundHashParameter` leave the correct number of spaces. ([@mattjmcnaughton][]) |
| 37 | +* [#1547](https://github.com/bbatsov/rubocop/issues/1547): Don't print `[Corrected]` when auto-correction was avoided in `Style/Semicolon`. ([@jonas054][]) |
| 38 | +* [#1573](https://github.com/bbatsov/rubocop/issues/1573): Fix assignment-related auto-correction for `BlockAlignment`. ([@lumeet][]) |
| 39 | +* [#1587](https://github.com/bbatsov/rubocop/pull/1587): Exit with exit code 1 if there were errors ("crashing" cops). ([@jonas054][]) |
| 40 | +* [#1574](https://github.com/bbatsov/rubocop/issues/1574): Avoid auto-correcting `Hash.new` to `{}` when braces would be interpreted as a block. ([@jonas054][]) |
| 41 | +* [#1591](https://github.com/bbatsov/rubocop/issues/1591): Don't check parameters inside `[]` in `MultilineOperationIndentation`. ([@jonas054][]) |
| 42 | +* [#1509](https://github.com/bbatsov/rubocop/issues/1509): Ignore class methods in `Rails/Delegate`. ([@bbatsov][]) |
| 43 | +* [#1594](https://github.com/bbatsov/rubocop/issues/1594): Fix `@example` warnings in Yard Doc documentation generation. ([@mattjmcnaughton][]) |
| 44 | +* [#1598](https://github.com/bbatsov/rubocop/issues/1598): Fix bug in file inclusion when running from another directory. ([@jonas054][]) |
| 45 | +* [#1580](https://github.com/bbatsov/rubocop/issues/1580): Don't print `[Corrected]` when auto-correction was avoided in `TrivialAccessors`. ([@lumeet][]) |
| 46 | +* [#1612](https://github.com/bbatsov/rubocop/issues/1612): Allow `expand_path` on `inherit_from` in `.rubocop.yml`. ([@mattjmcnaughton][]) |
| 47 | +* [#1610](https://github.com/bbatsov/rubocop/issues/1610): Check that class method names actually match the name of the containing class/module in `Style/ClassMethods`. ([@bbatsov][]) |
| 48 | + |
| 49 | +[@bbatsov]: https://github.com/bbatsov |
| 50 | +[@jonas054]: https://github.com/jonas054 |
| 51 | +[@yujinakayama]: https://github.com/yujinakayama |
| 52 | +[@dblock]: https://github.com/dblock |
| 53 | +[@nevir]: https://github.com/nevir |
| 54 | +[@daviddavis]: https://github.com/daviddavis |
| 55 | +[@sds]: https://github.com/sds |
| 56 | +[@fancyremarker]: https://github.com/fancyremarker |
| 57 | +[@sinisterchipmunk]: https://github.com/sinisterchipmunk |
| 58 | +[@vonTronje]: https://github.com/vonTronje |
| 59 | +[@agrimm]: https://github.com/agrimm |
| 60 | +[@pmenglund]: https://github.com/pmenglund |
| 61 | +[@chulkilee]: https://github.com/chulkilee |
| 62 | +[@codez]: https://github.com/codez |
| 63 | +[@emou]: https://github.com/emou |
| 64 | +[@skanev]: http://github.com/skanev |
| 65 | +[@claco]: http://github.com/claco |
| 66 | +[@rifraf]: http://github.com/rifraf |
| 67 | +[@scottmatthewman]: https://github.com/scottmatthewman |
| 68 | +[@ma2gedev]: http://github.com/ma2gedev |
| 69 | +[@jeremyolliver]: https://github.com/jeremyolliver |
| 70 | +[@hannestyden]: https://github.com/hannestyden |
| 71 | +[@geniou]: https://github.com/geniou |
| 72 | +[@jkogara]: https://github.com/jkogara |
| 73 | +[@tmorris-fiksu]: https://github.com/tmorris-fiksu |
| 74 | +[@mockdeep]: https://github.com/mockdeep |
| 75 | +[@hiroponz]: https://github.com/hiroponz |
| 76 | +[@tamird]: https://github.com/tamird |
| 77 | +[@fshowalter]: https://github.com/fshowalter |
| 78 | +[@cschramm]: https://github.com/cschramm |
| 79 | +[@bquorning]: https://github.com/bquorning |
| 80 | +[@bcobb]: https://github.com/bcobb |
| 81 | +[@irrationalfab]: https://github.com/irrationalfab |
| 82 | +[@tommeier]: https://github.com/tommeier |
| 83 | +[@sfeldon]: https://github.com/sfeldon |
| 84 | +[@biinari]: https://github.com/biinari |
| 85 | +[@barunio]: https://github.com/barunio |
| 86 | +[@molawson]: https://github.com/molawson |
| 87 | +[@wndhydrnt]: https://github.com/wndhydrnt |
| 88 | +[@ggilder]: https://github.com/ggilder |
| 89 | +[@salbertson]: https://github.com/salbertson |
| 90 | +[@camilleldn]: https://github.com/camilleldn |
| 91 | +[@mcls]: https://github.com/mcls |
| 92 | +[@yous]: https://github.com/yous |
| 93 | +[@vrthra]: https://github.com/vrthra |
| 94 | +[@SkuliOskarsson]: https://github.com/SkuliOskarsson |
| 95 | +[@jspanjers]: https://github.com/jspanjers |
| 96 | +[@sch1zo]: https://github.com/sch1zo |
| 97 | +[@smangelsdorf]: https://github.com/smangelsdorf |
| 98 | +[@mvz]: https://github.com/mvz |
| 99 | +[@jfelchner]: https://github.com/jfelchner |
| 100 | +[@janraasch]: https://github.com/janraasch |
| 101 | +[@jcarbo]: https://github.com/jcarbo |
| 102 | +[@oneamtu]: https://github.com/oneamtu |
| 103 | +[@toy]: https://github.com/toy |
| 104 | +[@Koronen]: https://github.com/Koronen |
| 105 | +[@blainesch]: https://github.com/blainesch |
| 106 | +[@marxarelli]: https://github.com/marxarelli |
| 107 | +[@katieschilling]: https://github.com/katieschilling |
| 108 | +[@kakutani]: https://github.com/kakutani |
| 109 | +[@rrosenblum]: https://github.com/rrosenblum |
| 110 | +[@mattjmcnaughton]: https://github.com/mattjmcnaughton |
| 111 | +[@huerlisi]: https://github.com/huerlisi |
| 112 | +[@volkert]: https://github.com/volkert |
| 113 | +[@lumeet]: https://github.com/lumeet |
| 114 | +[@mmozuras]: https://github.com/mmozuras |
| 115 | +[@d4rk5eed]: https://github.com/d4rk5eed |
| 116 | +[@cshaffer]: https://github.com/cshaffer |
0 commit comments