Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bozhidar Batsov
committed
Aug 15, 2014
1 parent
a723830
commit f307c73
Showing
3 changed files
with
94 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
This release comes with lots of bug fixes and several new cops (that will likely need bugfixes in the next release :-)). | ||
|
||
The most notable change in 0.25 is the addition of the `Metrics` namespace. Several `Style` cops have been moved there | ||
(e.g. `ClassLength`, `MethodLength`, etc). | ||
|
||
This release also marks the end of us supporting Ruby 1.9.2 - now Ruby 1.9.3+ is required. | ||
|
||
Below is the list of all the gory details. Enjoy! | ||
|
||
### New features | ||
|
||
* [#1259](https://github.com/bbatsov/rubocop/issues/1259): Allow AndOr cop to autocorrect by adding method call parenthesis. ([@vrthra][]) | ||
* [#1232](https://github.com/bbatsov/rubocop/issues/1232): Add EnforcedStyle option to cop `AndOr` to restrict it to conditionals. ([@vrthra][]) | ||
* [#835](https://github.com/bbatsov/rubocop/issues/835): New cop `PercentQLiterals` checks if use of `%Q` and `%q` matches configuration. ([@jonas054][]) | ||
* [#835](https://github.com/bbatsov/rubocop/issues/835): New cop `BarePercentLiterals` checks if usage of `%()` or `%Q()` matches configuration. ([@jonas054][]) | ||
* [#1079](https://github.com/bbatsov/rubocop/pull/1079): New cop `MultilineBlockLayout` checks if a multiline block has an extpression on the same line as the start of the block. ([@barunio][]) | ||
* [#1217](https://github.com/bbatsov/rubocop/pull/1217): `Style::EmptyLinesAroundAccessModifier` cop does auto-correction. ([@tamird][]) | ||
* [#1220](https://github.com/bbatsov/rubocop/issues/1220): New cop `PerceivedComplexity` is similar to `CyclomaticComplexity`, but reports when methods have a high complexity for a human reader. ([@jonas054][]) | ||
* `Debugger` cop now checks for `binding.pry_remote`. ([@yous][]) | ||
* [#1238](https://github.com/bbatsov/rubocop/issues/1238): Add `MinBodyLength` option to `Next` cop. ([@bbatsov][]) | ||
* [#1241](https://github.com/bbatsov/rubocop/issues/1241): `TrailingComma` cop does auto-correction. ([@yous][]) | ||
* [#1078](https://github.com/bbatsov/rubocop/pull/1078): New cop `BlockEndNewline` checks if the end statement of a multiline block is on its own line. ([@barunio][]) | ||
* [#1078](https://github.com/bbatsov/rubocop/pull/1078): `BlockAlignment` cop does auto-correction. ([@barunio][]) | ||
|
||
### Changes | ||
|
||
* [#1220](https://github.com/bbatsov/rubocop/issues/1220): New namespace `Metrics` created and some `Style` cops moved there. ([@jonas054][]) | ||
* Drop support for Ruby 1.9.2 in accordance with [the end of the security maintenance extension](https://www.ruby-lang.org/en/news/2014/07/01/eol-for-1-8-7-and-1-9-2/). ([@yujinakayama][]) | ||
|
||
### Bugs fixed | ||
|
||
* [#1251](https://github.com/bbatsov/rubocop/issues/1251): Fix `PercentLiteralDelimiters` auto-correct indentation error. ([@hannestyden][]) | ||
* [#1197](https://github.com/bbatsov/rubocop/issues/1197): Fix false positive for new lambda syntax in `SpaceInsideBlockBraces`. ([@jonas054][]) | ||
* [#1201](https://github.com/bbatsov/rubocop/issues/1201): Fix error at anonymous keyword splat arguments in some variable cops. ([@yujinakayama][]) | ||
* Fix false positive in `UnneededPercentQ` for `/%Q(something)/`. ([@jonas054][]) | ||
* Fix `SpacesInsideBrackets` for `Hash#[]` calls with spaces after left bracket. ([@mcls][]) | ||
* [#1210](https://github.com/bbatsov/rubocop/issues/1210): Fix false positive in `UnneededPercentQ` for `%Q(\t")`. ([@jonas054][]) | ||
* Fix false positive in `UnneededPercentQ` for heredoc strings with `%q`/`%Q`. ([@jonas054][]) | ||
* [#1214](https://github.com/bbatsov/rubocop/issues/1214): Don't destroy code in `AlignHash` autocorrect. ([@jonas054][]) | ||
* [#1219](https://github.com/bbatsov/rubocop/issues/1219): Don't report bad alignment for `end` or `}` in `BlockAlignment` if it doesn't begin its line. ([@jonas054][]) | ||
* [#1227](https://github.com/bbatsov/rubocop/issues/1227): Don't permanently change yamler as it can affect other apps. ([@jonas054][]) | ||
* [#1184](https://github.com/bbatsov/rubocop/issues/1184): Fix a false positive in `Output` cop. ([@bbatsov][]) | ||
* [#1256](https://github.com/bbatsov/rubocop/issues/1256): Ignore block-pass in `TrailingComma`. ([@tamird][]) | ||
* [#1255](https://github.com/bbatsov/rubocop/issues/1255): Compare without context in `AutocorrectUnlessChangingAST`. ([@jonas054][]) | ||
* [#1262](https://github.com/bbatsov/rubocop/issues/1262): Handle regexp and backtick literals in `VariableInterpolation`. ([@bbatsov][]) | ||
|
||
[@bbatsov]: https://github.com/bbatsov | ||
[@jonas054]: https://github.com/jonas054 | ||
[@yujinakayama]: https://github.com/yujinakayama | ||
[@dblock]: https://github.com/dblock | ||
[@nevir]: https://github.com/nevir | ||
[@daviddavis]: https://github.com/daviddavis | ||
[@sds]: https://github.com/sds | ||
[@fancyremarker]: https://github.com/fancyremarker | ||
[@sinisterchipmunk]: https://github.com/sinisterchipmunk | ||
[@vonTronje]: https://github.com/vonTronje | ||
[@agrimm]: https://github.com/agrimm | ||
[@pmenglund]: https://github.com/pmenglund | ||
[@chulkilee]: https://github.com/chulkilee | ||
[@codez]: https://github.com/codez | ||
[@emou]: https://github.com/emou | ||
[@skanev]: http://github.com/skanev | ||
[@claco]: http://github.com/claco | ||
[@rifraf]: http://github.com/rifraf | ||
[@scottmatthewman]: https://github.com/scottmatthewman | ||
[@ma2gedev]: http://github.com/ma2gedev | ||
[@jeremyolliver]: https://github.com/jeremyolliver | ||
[@hannestyden]: https://github.com/hannestyden | ||
[@geniou]: https://github.com/geniou | ||
[@jkogara]: https://github.com/jkogara | ||
[@tmorris-fiksu]: https://github.com/tmorris-fiksu | ||
[@mockdeep]: https://github.com/mockdeep | ||
[@hiroponz]: https://github.com/hiroponz | ||
[@tamird]: https://github.com/tamird | ||
[@fshowalter]: https://github.com/fshowalter | ||
[@cschramm]: https://github.com/cschramm | ||
[@bquorning]: https://github.com/bquorning | ||
[@bcobb]: https://github.com/bcobb | ||
[@irrationalfab]: https://github.com/irrationalfab | ||
[@tommeier]: https://github.com/tommeier | ||
[@sfeldon]: https://github.com/sfeldon | ||
[@biinari]: https://github.com/biinari | ||
[@barunio]: https://github.com/barunio | ||
[@molawson]: https://github.com/molawson | ||
[@wndhydrnt]: https://github.com/wndhydrnt | ||
[@ggilder]: https://github.com/ggilder | ||
[@salbertson]: https://github.com/salbertson | ||
[@camilleldn]: https://github.com/camilleldn | ||
[@mcls]: https://github.com/mcls | ||
[@yous]: https://github.com/yous | ||
[@vrthra]: https://github.com/vrthra |