rubocop 0.37.0 → 0.37.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rubocop might be problematic. Click here for more details.

Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/config/default.yml +2 -3
  4. data/config/enabled.yml +2 -2
  5. data/lib/rubocop.rb +2 -1
  6. data/lib/rubocop/ast_node.rb +34 -17
  7. data/lib/rubocop/ast_node/traversal.rb +2 -1
  8. data/lib/rubocop/config.rb +1 -1
  9. data/lib/rubocop/cop/commissioner.rb +5 -5
  10. data/lib/rubocop/cop/corrector.rb +17 -3
  11. data/lib/rubocop/cop/lint/debugger.rb +2 -2
  12. data/lib/rubocop/cop/lint/nested_method_definition.rb +5 -1
  13. data/lib/rubocop/cop/lint/unneeded_disable.rb +1 -1
  14. data/lib/rubocop/cop/metrics/parameter_lists.rb +1 -1
  15. data/lib/rubocop/cop/performance/redundant_match.rb +2 -1
  16. data/lib/rubocop/cop/performance/redundant_merge.rb +1 -2
  17. data/lib/rubocop/cop/rails/find_each.rb +1 -1
  18. data/lib/rubocop/cop/style/block_end_newline.rb +1 -1
  19. data/lib/rubocop/cop/style/conditional_assignment.rb +25 -7
  20. data/lib/rubocop/cop/style/empty_line_between_defs.rb +13 -7
  21. data/lib/rubocop/cop/style/frozen_string_literal_comment.rb +1 -12
  22. data/lib/rubocop/cop/style/guard_clause.rb +3 -1
  23. data/lib/rubocop/cop/style/initial_indentation.rb +1 -1
  24. data/lib/rubocop/cop/style/line_end_concatenation.rb +1 -1
  25. data/lib/rubocop/cop/style/multiline_block_layout.rb +14 -12
  26. data/lib/rubocop/cop/style/not.rb +1 -1
  27. data/lib/rubocop/cop/style/semicolon.rb +14 -7
  28. data/lib/rubocop/cop/style/space_around_keyword.rb +13 -4
  29. data/lib/rubocop/cop/style/space_around_operators.rb +2 -2
  30. data/lib/rubocop/cop/style/trailing_underscore_variable.rb +32 -27
  31. data/lib/rubocop/cop/style/word_array.rb +1 -1
  32. data/lib/rubocop/cop/team.rb +20 -9
  33. data/lib/rubocop/cop/util.rb +4 -5
  34. data/lib/rubocop/formatter/formatter_set.rb +3 -3
  35. data/lib/rubocop/version.rb +1 -1
  36. metadata +5 -43
  37. data/.yardopts +0 -2
  38. data/CHANGELOG.md +0 -1941
  39. data/CONTRIBUTING.md +0 -68
  40. data/assets/logo.png +0 -0
  41. data/assets/output.html.erb +0 -247
  42. data/logo/rubo-logo-horizontal.png +0 -0
  43. data/logo/rubo-logo-square.png +0 -0
  44. data/logo/rubo-logo-symbol.png +0 -0
  45. data/relnotes/v0.19.0.md +0 -94
  46. data/relnotes/v0.19.1.md +0 -16
  47. data/relnotes/v0.20.0.md +0 -69
  48. data/relnotes/v0.20.1.md +0 -24
  49. data/relnotes/v0.21.0.md +0 -56
  50. data/relnotes/v0.22.0.md +0 -77
  51. data/relnotes/v0.23.0.md +0 -79
  52. data/relnotes/v0.24.0.md +0 -77
  53. data/relnotes/v0.24.1.md +0 -15
  54. data/relnotes/v0.25.0.md +0 -91
  55. data/relnotes/v0.26.0.md +0 -89
  56. data/relnotes/v0.26.1.md +0 -12
  57. data/relnotes/v0.27.0.md +0 -77
  58. data/relnotes/v0.27.1.md +0 -66
  59. data/relnotes/v0.28.0.md +0 -90
  60. data/relnotes/v0.29.0.md +0 -116
  61. data/relnotes/v0.29.1.md +0 -12
  62. data/relnotes/v0.30.0.md +0 -145
  63. data/relnotes/v0.30.1.md +0 -103
  64. data/relnotes/v0.31.0.md +0 -120
  65. data/relnotes/v0.32.0.md +0 -139
  66. data/relnotes/v0.32.1.md +0 -122
  67. data/relnotes/v0.33.0.md +0 -157
  68. data/relnotes/v0.34.0.md +0 -182
  69. data/relnotes/v0.34.1.md +0 -129
  70. data/relnotes/v0.34.2.md +0 -139
  71. data/relnotes/v0.35.0.md +0 -210
  72. data/relnotes/v0.36.0.md +0 -307
  73. data/relnotes/v0.37.0.md +0 -200
  74. data/rubocop.gemspec +0 -49
@@ -1,103 +0,0 @@
1
- Enjoy all those bug-fixes!
2
-
3
- ### Bugs fixed
4
-
5
- * [#1691](https://github.com/bbatsov/rubocop/issues/1691): For assignments with line break after `=`, use `keyword` alignment in `EndAlignment` regardless of configured style. ([@jonas054][])
6
- * [#1769](https://github.com/bbatsov/rubocop/issues/1769): Fix bug where `LiteralInInterpolation` registers an offense for interpolation of `__LINE__`. ([@rrosenblum][])
7
- * [#1773](https://github.com/bbatsov/rubocop/pull/1773): Fix typo ('strptime' -> 'strftime') in `Rails/TimeZone`. ([@palkan][])
8
- * [#1777](https://github.com/bbatsov/rubocop/pull/1777): Fix offense message from Rails/TimeZone. ([@mzp][])
9
- * [#1784](https://github.com/bbatsov/rubocop/pull/1784): Add an explicit error message when config contains an empty section. ([@bankair][])
10
- * [#1791](https://github.com/bbatsov/rubocop/pull/1791): Fix autocorrection of `PercentLiteralDelimiters` with no content. ([@cshaffer][])
11
- * Fix handling of `while` and `until` with assignment in `IndentationWidth`. ([@lumeet][])
12
- * [#1793](https://github.com/bbatsov/rubocop/pull/1793): Fix bug in `TrailingComma` that caused `,` in comment to count as a trailing comma. ([@jonas054][])
13
- * [#1765](https://github.com/bbatsov/rubocop/pull/1765): Update 1.9 hash to stop triggering when the symbol is not valid in the 1.9 hash syntax. ([@crimsonknave][])
14
- * [#1806](https://github.com/bbatsov/rubocop/issues/1806): Require a newer version of `parser` and use its corrected solution for comment association in `Style/Documentation`. ([@jonas054][])
15
- * [#1792](https://github.com/bbatsov/rubocop/issues/1792): Fix bugs in `Sample` that did not account for array selectors with a range and passing random to shuffle. ([@rrosenblum][])
16
- * [#1770](https://github.com/bbatsov/rubocop/pull/1770): Add more acceptable methods to `Rails/TimeZone` (`utc`, `localtime`, `to_i`, `iso8601` etc). ([@palkan][])
17
- * [#1767](https://github.com/bbatsov/rubocop/pull/1767): Do not register offenses on non-enumerable select/find_all by `Performance/Detect`. ([@palkan][])
18
- * [#1795](https://github.com/bbatsov/rubocop/pull/1795): Fix bug in `TrailingBlankLines` that caused a crash for files containing only newlines. ([@renuo][])
19
-
20
- [@bbatsov]: https://github.com/bbatsov
21
- [@jonas054]: https://github.com/jonas054
22
- [@yujinakayama]: https://github.com/yujinakayama
23
- [@dblock]: https://github.com/dblock
24
- [@nevir]: https://github.com/nevir
25
- [@daviddavis]: https://github.com/daviddavis
26
- [@sds]: https://github.com/sds
27
- [@fancyremarker]: https://github.com/fancyremarker
28
- [@sinisterchipmunk]: https://github.com/sinisterchipmunk
29
- [@vonTronje]: https://github.com/vonTronje
30
- [@agrimm]: https://github.com/agrimm
31
- [@pmenglund]: https://github.com/pmenglund
32
- [@chulkilee]: https://github.com/chulkilee
33
- [@codez]: https://github.com/codez
34
- [@emou]: https://github.com/emou
35
- [@skanev]: http://github.com/skanev
36
- [@claco]: http://github.com/claco
37
- [@rifraf]: http://github.com/rifraf
38
- [@scottmatthewman]: https://github.com/scottmatthewman
39
- [@ma2gedev]: http://github.com/ma2gedev
40
- [@jeremyolliver]: https://github.com/jeremyolliver
41
- [@hannestyden]: https://github.com/hannestyden
42
- [@geniou]: https://github.com/geniou
43
- [@jkogara]: https://github.com/jkogara
44
- [@tmorris-fiksu]: https://github.com/tmorris-fiksu
45
- [@mockdeep]: https://github.com/mockdeep
46
- [@hiroponz]: https://github.com/hiroponz
47
- [@tamird]: https://github.com/tamird
48
- [@fshowalter]: https://github.com/fshowalter
49
- [@cschramm]: https://github.com/cschramm
50
- [@bquorning]: https://github.com/bquorning
51
- [@bcobb]: https://github.com/bcobb
52
- [@irrationalfab]: https://github.com/irrationalfab
53
- [@tommeier]: https://github.com/tommeier
54
- [@sfeldon]: https://github.com/sfeldon
55
- [@biinari]: https://github.com/biinari
56
- [@barunio]: https://github.com/barunio
57
- [@molawson]: https://github.com/molawson
58
- [@wndhydrnt]: https://github.com/wndhydrnt
59
- [@ggilder]: https://github.com/ggilder
60
- [@salbertson]: https://github.com/salbertson
61
- [@camilleldn]: https://github.com/camilleldn
62
- [@mcls]: https://github.com/mcls
63
- [@yous]: https://github.com/yous
64
- [@vrthra]: https://github.com/vrthra
65
- [@SkuliOskarsson]: https://github.com/SkuliOskarsson
66
- [@jspanjers]: https://github.com/jspanjers
67
- [@sch1zo]: https://github.com/sch1zo
68
- [@smangelsdorf]: https://github.com/smangelsdorf
69
- [@mvz]: https://github.com/mvz
70
- [@jfelchner]: https://github.com/jfelchner
71
- [@janraasch]: https://github.com/janraasch
72
- [@jcarbo]: https://github.com/jcarbo
73
- [@oneamtu]: https://github.com/oneamtu
74
- [@toy]: https://github.com/toy
75
- [@Koronen]: https://github.com/Koronen
76
- [@blainesch]: https://github.com/blainesch
77
- [@marxarelli]: https://github.com/marxarelli
78
- [@katieschilling]: https://github.com/katieschilling
79
- [@kakutani]: https://github.com/kakutani
80
- [@rrosenblum]: https://github.com/rrosenblum
81
- [@mattjmcnaughton]: https://github.com/mattjmcnaughton
82
- [@huerlisi]: https://github.com/huerlisi
83
- [@volkert]: https://github.com/volkert
84
- [@lumeet]: https://github.com/lumeet
85
- [@mmozuras]: https://github.com/mmozuras
86
- [@d4rk5eed]: https://github.com/d4rk5eed
87
- [@cshaffer]: https://github.com/cshaffer
88
- [@eitoball]: https://github.com/eitoball
89
- [@iainbeeston]: https://github.com/iainbeeston
90
- [@pimterry]: https://github.com/pimterry
91
- [@palkan]: https://github.com/palkan
92
- [@jdoconnor]: https://github.com/jdoconnor
93
- [@meganemura]: https://github.com/meganemura
94
- [@zvkemp]: https://github.com/zvkemp
95
- [@vassilevsky]: https://github.com/vassilevsky
96
- [@gerry3]: https://github.com/gerry3
97
- [@ypresto]: https://github.com/ypresto
98
- [@clowder]: https://github.com/clowder
99
- [@mudge]: https://github.com/mudge
100
- [@mzp]: https://github.com/mzp
101
- [@bankair]: https://github.com/bankair
102
- [@crimsonknave]: https://github.com/crimsonknave
103
- [@renuo]: https://github.com/renuo
@@ -1,120 +0,0 @@
1
- ### New features
2
-
3
- * `Rails/TimeZone` emits acceptable methods on a violation when `EnforcedStyle` is `:acceptable`. ([@l8nite][])
4
- * Recognize rackup file (config.ru) out of the box. ([@carhartl][])
5
- * [#1788](https://github.com/bbatsov/rubocop/pull/1788): New cop `ModuleLength` checks for overly long module definitions. ([@sdeframond][])
6
- * New cop `Performance/Count` to convert `Enumerable#select...size`, `Enumerable#reject...size`, `Enumerable#select...count`, `Enumerable#reject...count` `Enumerable#select...length`, and `Enumerable#reject...length` to `Enumerable#count`. ([@rrosenblum][])
7
- * `CommentAnnotation` cop does auto-correction. ([@dylandavidson][])
8
- * New cop `Style/TrailingUnderscoreVariable` to remove trailing underscore variables from mass assignment. ([@rrosenblum][])
9
- * [#1136](https://github.com/bbatsov/rubocop/issues/1136): New cop `Performance/ParallelAssignment` to avoid usages of unnessary parallel assignment. ([@rrosenblum][])
10
- * [#1278](https://github.com/bbatsov/rubocop/issues/1278): `DefEndAlignment` and `EndAlignment` cops do auto-correction. ([@lumeet][])
11
- * `IndentationWidth` cop follows the `AlignWith` option of the `DefEndAlignment` cop. ([@lumeet][])
12
- * [#1837](https://github.com/bbatsov/rubocop/issues/1837): New cop `EachWithObjectArgument` checks that `each_with_object` isn't called with an immutable object as argument. ([@jonas054][])
13
- * `ArrayJoin` cop does auto-correction. ([@tmr08c][])
14
-
15
- ### Bugs fixed
16
-
17
- * [#1816](https://github.com/bbatsov/rubocop/issues/1816): Fix bug in `Sample` when calling `#shuffle` with something other than an element selector. ([@rrosenblum][])
18
- * [#1768](https://github.com/bbatsov/rubocop/pull/1768): `DefEndAlignment` recognizes preceding `private_class_method` or `public_class_method` before `def`. ([@til][])
19
- * [#1820](https://github.com/bbatsov/rubocop/issues/1820): Correct the logic in `AlignHash` for when to ignore a key because it's not on its own line. ([@jonas054][])
20
- * [#1829](https://github.com/bbatsov/rubocop/pull/1829): Fix bug in `Sample` and `FlatMap` that would cause them to report having been auto-corrected when they were not. ([@rrosenblum][])
21
- * [#1832](https://github.com/bbatsov/rubocop/pull/1832): Fix bug in `UnusedMethodArgument` that would cause them to report having been auto-corrected when they were not. ([@jonas054][])
22
- * [#1834](https://github.com/bbatsov/rubocop/issues/1834): Support only boolean values for `AutoCorrect` configuration parameter, and remove warning for unknown parameter. ([@jonas054][])
23
- * [#1843](https://github.com/bbatsov/rubocop/issues/1843): Fix crash in `TrailingBlankLines` when a file ends with a block comment without final newline. ([@jonas054][])
24
- * [#1849](https://github.com/bbatsov/rubocop/issues/1849): Fix bug where you can not have nested arrays in the Rake task configuration. ([@rrosenblum][])
25
- * Fix bug in `MultilineTernaryOperator` where it will not register an offense when only the false branch is on a separate line. ([@rrosenblum][])
26
- * Fix crash in `MultilineBlockLayout` when using new lambda literal syntax without parentheses. ([@hbd225][])
27
- * [#1859](https://github.com/bbatsov/rubocop/pull/1859): Fix bugs in `IfUnlessModifier` concerning comments and empty lines. ([@jonas054][])
28
- * Fix handling of trailing comma in `SpaceAroundBlockParameters` and `SpaceAfterComma`. ([@lumeet][])
29
-
30
- [@bbatsov]: https://github.com/bbatsov
31
- [@jonas054]: https://github.com/jonas054
32
- [@yujinakayama]: https://github.com/yujinakayama
33
- [@dblock]: https://github.com/dblock
34
- [@nevir]: https://github.com/nevir
35
- [@daviddavis]: https://github.com/daviddavis
36
- [@sds]: https://github.com/sds
37
- [@fancyremarker]: https://github.com/fancyremarker
38
- [@sinisterchipmunk]: https://github.com/sinisterchipmunk
39
- [@vonTronje]: https://github.com/vonTronje
40
- [@agrimm]: https://github.com/agrimm
41
- [@pmenglund]: https://github.com/pmenglund
42
- [@chulkilee]: https://github.com/chulkilee
43
- [@codez]: https://github.com/codez
44
- [@emou]: https://github.com/emou
45
- [@skanev]: http://github.com/skanev
46
- [@claco]: http://github.com/claco
47
- [@rifraf]: http://github.com/rifraf
48
- [@scottmatthewman]: https://github.com/scottmatthewman
49
- [@ma2gedev]: http://github.com/ma2gedev
50
- [@jeremyolliver]: https://github.com/jeremyolliver
51
- [@hannestyden]: https://github.com/hannestyden
52
- [@geniou]: https://github.com/geniou
53
- [@jkogara]: https://github.com/jkogara
54
- [@tmorris-fiksu]: https://github.com/tmorris-fiksu
55
- [@mockdeep]: https://github.com/mockdeep
56
- [@hiroponz]: https://github.com/hiroponz
57
- [@tamird]: https://github.com/tamird
58
- [@fshowalter]: https://github.com/fshowalter
59
- [@cschramm]: https://github.com/cschramm
60
- [@bquorning]: https://github.com/bquorning
61
- [@bcobb]: https://github.com/bcobb
62
- [@irrationalfab]: https://github.com/irrationalfab
63
- [@tommeier]: https://github.com/tommeier
64
- [@sfeldon]: https://github.com/sfeldon
65
- [@biinari]: https://github.com/biinari
66
- [@barunio]: https://github.com/barunio
67
- [@molawson]: https://github.com/molawson
68
- [@wndhydrnt]: https://github.com/wndhydrnt
69
- [@ggilder]: https://github.com/ggilder
70
- [@salbertson]: https://github.com/salbertson
71
- [@camilleldn]: https://github.com/camilleldn
72
- [@mcls]: https://github.com/mcls
73
- [@yous]: https://github.com/yous
74
- [@vrthra]: https://github.com/vrthra
75
- [@SkuliOskarsson]: https://github.com/SkuliOskarsson
76
- [@jspanjers]: https://github.com/jspanjers
77
- [@sch1zo]: https://github.com/sch1zo
78
- [@smangelsdorf]: https://github.com/smangelsdorf
79
- [@mvz]: https://github.com/mvz
80
- [@jfelchner]: https://github.com/jfelchner
81
- [@janraasch]: https://github.com/janraasch
82
- [@jcarbo]: https://github.com/jcarbo
83
- [@oneamtu]: https://github.com/oneamtu
84
- [@toy]: https://github.com/toy
85
- [@Koronen]: https://github.com/Koronen
86
- [@blainesch]: https://github.com/blainesch
87
- [@marxarelli]: https://github.com/marxarelli
88
- [@katieschilling]: https://github.com/katieschilling
89
- [@kakutani]: https://github.com/kakutani
90
- [@rrosenblum]: https://github.com/rrosenblum
91
- [@mattjmcnaughton]: https://github.com/mattjmcnaughton
92
- [@huerlisi]: https://github.com/huerlisi
93
- [@volkert]: https://github.com/volkert
94
- [@lumeet]: https://github.com/lumeet
95
- [@mmozuras]: https://github.com/mmozuras
96
- [@d4rk5eed]: https://github.com/d4rk5eed
97
- [@cshaffer]: https://github.com/cshaffer
98
- [@eitoball]: https://github.com/eitoball
99
- [@iainbeeston]: https://github.com/iainbeeston
100
- [@pimterry]: https://github.com/pimterry
101
- [@palkan]: https://github.com/palkan
102
- [@jdoconnor]: https://github.com/jdoconnor
103
- [@meganemura]: https://github.com/meganemura
104
- [@zvkemp]: https://github.com/zvkemp
105
- [@vassilevsky]: https://github.com/vassilevsky
106
- [@gerry3]: https://github.com/gerry3
107
- [@ypresto]: https://github.com/ypresto
108
- [@clowder]: https://github.com/clowder
109
- [@mudge]: https://github.com/mudge
110
- [@mzp]: https://github.com/mzp
111
- [@bankair]: https://github.com/bankair
112
- [@crimsonknave]: https://github.com/crimsonknave
113
- [@renuo]: https://github.com/renuo
114
- [@sdeframond]: https://github.com/sdeframond
115
- [@til]: https://github.com/til
116
- [@carhartl]: https://github.com/carhartl
117
- [@dylandavidson]: https://github.com/dylandavidson
118
- [@tmr08c]: https://github.com/tmr08c
119
- [@hbd225]: https://github.com/hbd225
120
- [@l8nite]: https://github.com/l8nite
@@ -1,139 +0,0 @@
1
- ### New features
2
-
3
- * Adjust behavior of `TrailingComma` cop to account for multi-line hashes nested within method calls. ([@panthomakos][])
4
- * [#1719](https://github.com/bbatsov/rubocop/pull/1719): Display an error and abort the program if input file can't be found. ([@matugm][])
5
- * New cop `SpaceInsideStringInterpolation` checks for spaces within string interpolations. ([@glasnt][])
6
- * New cop `NestedMethodDefinition` checks for method definitions inside other methods. ([@ojab][])
7
- * `LiteralInInterpolation` cop does auto-correction. ([@tmr08c][])
8
- * [#1865](https://github.com/bbatsov/rubocop/issues/1865): New cop `Lint/UnneededDisable` checks for `rubocop:disable` comments that can be removed. ([@jonas054][])
9
- * `EmptyElse` cop does auto-correction. ([@lumeet][])
10
- * Show reference links when displaying style guide links. ([@rrosenblum][])
11
- * `Debugger` cop now checks for the Capybara debug method `save_screenshot`. ([@crazydog115][])
12
- * [#1282](https://github.com/bbatsov/rubocop/issues/1282): `CaseIndentation` cop does auto-correction. ([@lumeet][])
13
- * [#1928](https://github.com/bbatsov/rubocop/issues/1928): Do auto-correction one offense at a time (rather than one cop at a time) if there are tabs in the code. ([@jonas054][])
14
-
15
- ### Changes
16
-
17
- * Prefer `SpaceInsideBlockBraces` to `SpaceBeforeSemicolon` and `SpaceAfterSemicolon` to avoid an infinite loop when auto-correcting. ([@lumeet][])
18
- * [#1873](https://github.com/bbatsov/rubocop/issues/1873): Move `ParallelAssignment` cop from Performance to Style. ([@rrosenblum][])
19
- * Add `getlocal` to acceptable methods of `Rails/TimeZone`. ([@ojab][])
20
- * [#1851](https://github.com/bbatsov/rubocop/issues/1851), [#1948](https://github.com/bbatsov/rubocop/issues/1948): Change offense message for `ClassLength` and `ModuleLength` to match that of `MethodLength`. ([@bquorning][])
21
-
22
- ### Bugs fixed
23
-
24
- * Don't count required keyword args when specifying `CountKeywordArgs: false` for `ParameterLists`. ([@sumeet][])
25
- * [#1879](https://github.com/bbatsov/rubocop/issues/1879): Avoid auto-correcting hash with trailing comma into invalid code in `BracesAroundHashParameters`. ([@jonas054][])
26
- * [#1868](https://github.com/bbatsov/rubocop/issues/1868): Do not register an offense in `Performance/Count` when `select` is called with symbols or strings as the parameters. ([@rrosenblum][])
27
- * `Sample` rewritten to properly handle shuffle randomness source, first/last params and non-literal ranges. ([@chastell][])
28
- * [#1873](https://github.com/bbatsov/rubocop/issues/1873): Modify `ParallelAssignment` to properly autocorrect when the assignment is protected by a modifier statement. ([@rrosenblum][])
29
- * Configure `ParallelAssignment` to work with non-standard `IndentationWidths`. ([@rrosenblum][])
30
- * [#1899](https://github.com/bbatsov/rubocop/issues/1899): Be careful about comments when auto-correcting in `BracesAroundHashParameters`. ([@jonas054][])
31
- * [#1897](https://github.com/bbatsov/rubocop/issues/1897): Don't report that semicolon separated statements can be converted to modifier form in `IfUnlessModifier` (and don't auto-correct them). ([@jonas054][])
32
- * [#1644](https://github.com/bbatsov/rubocop/issues/1644): Don't search the entire file system when a folder is named `,` (fix for jruby and rbx). ([@rrosenblum][])
33
- * [#1803](https://github.com/bbatsov/rubocop/issues/1803): Don't warn for `return` from `lambda` block in `NonLocalExitFromIterator`. ([@ypresto][])
34
- * [#1905](https://github.com/bbatsov/rubocop/issues/1905): Ignore sparse and trailing comments in `Style/Documentation`. ([@RGBD][])
35
- * [#1923](https://github.com/bbatsov/rubocop/issues/1923): Handle properly `for` without body in `Style/Next`. ([@bbatsov][])
36
- * [#1901](https://github.com/bbatsov/rubocop/issues/1901): Do not auto correct comments that are missing a note. ([@rrosenblum][])
37
- * [#1926](https://github.com/bbatsov/rubocop/issues/1926): Fix crash in `Style/AlignHash` when correcting a hash with a splat in it. ([@rrosenblum][])
38
- * [#1935](https://github.com/bbatsov/rubocop/issues/1935): Allow `Symbol#to_proc` blocks in Performance/Size. ([@m1foley][])
39
-
40
- [@bbatsov]: https://github.com/bbatsov
41
- [@jonas054]: https://github.com/jonas054
42
- [@yujinakayama]: https://github.com/yujinakayama
43
- [@dblock]: https://github.com/dblock
44
- [@nevir]: https://github.com/nevir
45
- [@daviddavis]: https://github.com/daviddavis
46
- [@sds]: https://github.com/sds
47
- [@fancyremarker]: https://github.com/fancyremarker
48
- [@sinisterchipmunk]: https://github.com/sinisterchipmunk
49
- [@vonTronje]: https://github.com/vonTronje
50
- [@agrimm]: https://github.com/agrimm
51
- [@pmenglund]: https://github.com/pmenglund
52
- [@chulkilee]: https://github.com/chulkilee
53
- [@codez]: https://github.com/codez
54
- [@emou]: https://github.com/emou
55
- [@skanev]: http://github.com/skanev
56
- [@claco]: http://github.com/claco
57
- [@rifraf]: http://github.com/rifraf
58
- [@scottmatthewman]: https://github.com/scottmatthewman
59
- [@ma2gedev]: http://github.com/ma2gedev
60
- [@jeremyolliver]: https://github.com/jeremyolliver
61
- [@hannestyden]: https://github.com/hannestyden
62
- [@geniou]: https://github.com/geniou
63
- [@jkogara]: https://github.com/jkogara
64
- [@tmorris-fiksu]: https://github.com/tmorris-fiksu
65
- [@mockdeep]: https://github.com/mockdeep
66
- [@hiroponz]: https://github.com/hiroponz
67
- [@tamird]: https://github.com/tamird
68
- [@fshowalter]: https://github.com/fshowalter
69
- [@cschramm]: https://github.com/cschramm
70
- [@bquorning]: https://github.com/bquorning
71
- [@bcobb]: https://github.com/bcobb
72
- [@irrationalfab]: https://github.com/irrationalfab
73
- [@tommeier]: https://github.com/tommeier
74
- [@sfeldon]: https://github.com/sfeldon
75
- [@biinari]: https://github.com/biinari
76
- [@barunio]: https://github.com/barunio
77
- [@molawson]: https://github.com/molawson
78
- [@wndhydrnt]: https://github.com/wndhydrnt
79
- [@ggilder]: https://github.com/ggilder
80
- [@salbertson]: https://github.com/salbertson
81
- [@camilleldn]: https://github.com/camilleldn
82
- [@mcls]: https://github.com/mcls
83
- [@yous]: https://github.com/yous
84
- [@vrthra]: https://github.com/vrthra
85
- [@SkuliOskarsson]: https://github.com/SkuliOskarsson
86
- [@jspanjers]: https://github.com/jspanjers
87
- [@sch1zo]: https://github.com/sch1zo
88
- [@smangelsdorf]: https://github.com/smangelsdorf
89
- [@mvz]: https://github.com/mvz
90
- [@jfelchner]: https://github.com/jfelchner
91
- [@janraasch]: https://github.com/janraasch
92
- [@jcarbo]: https://github.com/jcarbo
93
- [@oneamtu]: https://github.com/oneamtu
94
- [@toy]: https://github.com/toy
95
- [@Koronen]: https://github.com/Koronen
96
- [@blainesch]: https://github.com/blainesch
97
- [@marxarelli]: https://github.com/marxarelli
98
- [@katieschilling]: https://github.com/katieschilling
99
- [@kakutani]: https://github.com/kakutani
100
- [@rrosenblum]: https://github.com/rrosenblum
101
- [@mattjmcnaughton]: https://github.com/mattjmcnaughton
102
- [@huerlisi]: https://github.com/huerlisi
103
- [@volkert]: https://github.com/volkert
104
- [@lumeet]: https://github.com/lumeet
105
- [@mmozuras]: https://github.com/mmozuras
106
- [@d4rk5eed]: https://github.com/d4rk5eed
107
- [@cshaffer]: https://github.com/cshaffer
108
- [@eitoball]: https://github.com/eitoball
109
- [@iainbeeston]: https://github.com/iainbeeston
110
- [@pimterry]: https://github.com/pimterry
111
- [@palkan]: https://github.com/palkan
112
- [@jdoconnor]: https://github.com/jdoconnor
113
- [@meganemura]: https://github.com/meganemura
114
- [@zvkemp]: https://github.com/zvkemp
115
- [@vassilevsky]: https://github.com/vassilevsky
116
- [@gerry3]: https://github.com/gerry3
117
- [@ypresto]: https://github.com/ypresto
118
- [@clowder]: https://github.com/clowder
119
- [@mudge]: https://github.com/mudge
120
- [@mzp]: https://github.com/mzp
121
- [@bankair]: https://github.com/bankair
122
- [@crimsonknave]: https://github.com/crimsonknave
123
- [@renuo]: https://github.com/renuo
124
- [@sdeframond]: https://github.com/sdeframond
125
- [@til]: https://github.com/til
126
- [@carhartl]: https://github.com/carhartl
127
- [@dylandavidson]: https://github.com/dylandavidson
128
- [@tmr08c]: https://github.com/tmr08c
129
- [@hbd225]: https://github.com/hbd225
130
- [@l8nite]: https://github.com/l8nite
131
- [@sumeet]: https://github.com/sumeet
132
- [@ojab]: https://github.com/ojab
133
- [@chastell]: https://github.com/chastell
134
- [@glasnt]: https://github.com/glasnt
135
- [@crazydog115]: https://github.com/crazydog115
136
- [@RGBD]: https://github.com/RGBD
137
- [@panthomakos]: https://github.com/panthomakos
138
- [@matugm]: https://github.com/matugm
139
- [@m1foley]: https://github.com/m1foley
@@ -1,122 +0,0 @@
1
- ### New features
2
-
3
- * `Debugger` cop now checks catches methods called with arguments. ([@crazydog115][])
4
-
5
- ### Bugs fixed
6
-
7
- * Make it possible to disable `Lint/UnneededDisable`. ([@jonas054][])
8
- * [#1958](https://github.com/bbatsov/rubocop/issues/1958): Show name of `Lint/UnneededDisable` when `-D/--display-cop-names` is given. ([@jonas054][])
9
- * Do not show `Style/NonNilCheck` offenses as corrected when the source code is not modified. ([@rrosenblum][])
10
- * Fix auto-correct in `Style/RedundantReturn` when `return` has no arguments. ([@lumeet][])
11
- * [#1955](https://github.com/bbatsov/rubocop/issues/1955): Fix false positive for `Style/TrailingComma` cop. ([@mattjmcnaughton][])
12
- * [#1928](https://github.com/bbatsov/rubocop/issues/1928): Avoid auto-correcting two alignment offenses in the same area at the same time. ([@jonas054][])
13
- * [#1964](https://github.com/bbatsov/rubocop/issues/1964): Fix `RedundantBegin` auto-correct issue with comments by doing a smaller correction. ([@jonas054][])
14
- * [#1978](https://github.com/bbatsov/rubocop/pull/1978): Don't count disabled offences if fail-level is autocorrect. ([@sch1zo][])
15
- * [#1986](https://github.com/bbatsov/rubocop/pull/1986): Fix Date false positives on variables. ([@palkan][])
16
-
17
- ### Changes
18
-
19
- * [#1708](https://github.com/bbatsov/rubocop/issues/1708): Improve message for `FirstParameterIndentation`. ([@tejasbubane][])
20
- * [#1959](https://github.com/bbatsov/rubocop/issues/1959): Allow `Lint/UnneededDisable` to be inline disabled. ([@rrosenblum][])
21
-
22
- [@bbatsov]: https://github.com/bbatsov
23
- [@jonas054]: https://github.com/jonas054
24
- [@yujinakayama]: https://github.com/yujinakayama
25
- [@dblock]: https://github.com/dblock
26
- [@nevir]: https://github.com/nevir
27
- [@daviddavis]: https://github.com/daviddavis
28
- [@sds]: https://github.com/sds
29
- [@fancyremarker]: https://github.com/fancyremarker
30
- [@sinisterchipmunk]: https://github.com/sinisterchipmunk
31
- [@vonTronje]: https://github.com/vonTronje
32
- [@agrimm]: https://github.com/agrimm
33
- [@pmenglund]: https://github.com/pmenglund
34
- [@chulkilee]: https://github.com/chulkilee
35
- [@codez]: https://github.com/codez
36
- [@emou]: https://github.com/emou
37
- [@skanev]: http://github.com/skanev
38
- [@claco]: http://github.com/claco
39
- [@rifraf]: http://github.com/rifraf
40
- [@scottmatthewman]: https://github.com/scottmatthewman
41
- [@ma2gedev]: http://github.com/ma2gedev
42
- [@jeremyolliver]: https://github.com/jeremyolliver
43
- [@hannestyden]: https://github.com/hannestyden
44
- [@geniou]: https://github.com/geniou
45
- [@jkogara]: https://github.com/jkogara
46
- [@tmorris-fiksu]: https://github.com/tmorris-fiksu
47
- [@mockdeep]: https://github.com/mockdeep
48
- [@hiroponz]: https://github.com/hiroponz
49
- [@tamird]: https://github.com/tamird
50
- [@fshowalter]: https://github.com/fshowalter
51
- [@cschramm]: https://github.com/cschramm
52
- [@bquorning]: https://github.com/bquorning
53
- [@bcobb]: https://github.com/bcobb
54
- [@irrationalfab]: https://github.com/irrationalfab
55
- [@tommeier]: https://github.com/tommeier
56
- [@sfeldon]: https://github.com/sfeldon
57
- [@biinari]: https://github.com/biinari
58
- [@barunio]: https://github.com/barunio
59
- [@molawson]: https://github.com/molawson
60
- [@wndhydrnt]: https://github.com/wndhydrnt
61
- [@ggilder]: https://github.com/ggilder
62
- [@salbertson]: https://github.com/salbertson
63
- [@camilleldn]: https://github.com/camilleldn
64
- [@mcls]: https://github.com/mcls
65
- [@yous]: https://github.com/yous
66
- [@vrthra]: https://github.com/vrthra
67
- [@SkuliOskarsson]: https://github.com/SkuliOskarsson
68
- [@jspanjers]: https://github.com/jspanjers
69
- [@sch1zo]: https://github.com/sch1zo
70
- [@smangelsdorf]: https://github.com/smangelsdorf
71
- [@mvz]: https://github.com/mvz
72
- [@jfelchner]: https://github.com/jfelchner
73
- [@janraasch]: https://github.com/janraasch
74
- [@jcarbo]: https://github.com/jcarbo
75
- [@oneamtu]: https://github.com/oneamtu
76
- [@toy]: https://github.com/toy
77
- [@Koronen]: https://github.com/Koronen
78
- [@blainesch]: https://github.com/blainesch
79
- [@marxarelli]: https://github.com/marxarelli
80
- [@katieschilling]: https://github.com/katieschilling
81
- [@kakutani]: https://github.com/kakutani
82
- [@rrosenblum]: https://github.com/rrosenblum
83
- [@mattjmcnaughton]: https://github.com/mattjmcnaughton
84
- [@huerlisi]: https://github.com/huerlisi
85
- [@volkert]: https://github.com/volkert
86
- [@lumeet]: https://github.com/lumeet
87
- [@mmozuras]: https://github.com/mmozuras
88
- [@d4rk5eed]: https://github.com/d4rk5eed
89
- [@cshaffer]: https://github.com/cshaffer
90
- [@eitoball]: https://github.com/eitoball
91
- [@iainbeeston]: https://github.com/iainbeeston
92
- [@pimterry]: https://github.com/pimterry
93
- [@palkan]: https://github.com/palkan
94
- [@jdoconnor]: https://github.com/jdoconnor
95
- [@meganemura]: https://github.com/meganemura
96
- [@zvkemp]: https://github.com/zvkemp
97
- [@vassilevsky]: https://github.com/vassilevsky
98
- [@gerry3]: https://github.com/gerry3
99
- [@ypresto]: https://github.com/ypresto
100
- [@clowder]: https://github.com/clowder
101
- [@mudge]: https://github.com/mudge
102
- [@mzp]: https://github.com/mzp
103
- [@bankair]: https://github.com/bankair
104
- [@crimsonknave]: https://github.com/crimsonknave
105
- [@renuo]: https://github.com/renuo
106
- [@sdeframond]: https://github.com/sdeframond
107
- [@til]: https://github.com/til
108
- [@carhartl]: https://github.com/carhartl
109
- [@dylandavidson]: https://github.com/dylandavidson
110
- [@tmr08c]: https://github.com/tmr08c
111
- [@hbd225]: https://github.com/hbd225
112
- [@l8nite]: https://github.com/l8nite
113
- [@sumeet]: https://github.com/sumeet
114
- [@ojab]: https://github.com/ojab
115
- [@chastell]: https://github.com/chastell
116
- [@glasnt]: https://github.com/glasnt
117
- [@crazydog115]: https://github.com/crazydog115
118
- [@RGBD]: https://github.com/RGBD
119
- [@panthomakos]: https://github.com/panthomakos
120
- [@matugm]: https://github.com/matugm
121
- [@m1foley]: https://github.com/m1foley
122
- [@tejasbubane]: https://github.com/tejasbubane