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,68 +0,0 @@
1
- # Contributing
2
-
3
- If you discover issues, have ideas for improvements or new features,
4
- please report them to the [issue tracker][1] of the repository or
5
- submit a pull request. Please, try to follow these guidelines when you
6
- do so.
7
-
8
- ## Issue reporting
9
-
10
- * Check that the issue has not already been reported.
11
- * Check that the issue has not already been fixed in the latest code
12
- (a.k.a. `master`).
13
- * Be clear, concise and precise in your description of the problem.
14
- * Open an issue with a descriptive title and a summary in grammatically correct,
15
- complete sentences.
16
- * Include the output of `rubocop -V`:
17
-
18
- ```
19
- $ rubocop -V
20
- 0.16.0 (using Parser 2.1.2, running on ruby 2.0.0 x86_64-darwin12.4.0)
21
- ```
22
-
23
- * Include any relevant code to the issue summary.
24
-
25
- ## Pull requests
26
-
27
- * Read [how to properly contribute to open source projects on Github][2].
28
- * Fork the project.
29
- * Use a topic/feature branch to easily amend a pull request later, if necessary.
30
- * Write [good commit messages][3].
31
- * Use the same coding conventions as the rest of the project.
32
- * Commit and push until you are happy with your contribution.
33
- * Make sure to add tests for it. This is important so I don't break it
34
- in a future version unintentionally.
35
- * Add an entry to the [Changelog](CHANGELOG.md) accordingly. See [changelog entry format](#changelog-entry-format).
36
- * Please try not to mess with the Rakefile, version, or history. If
37
- you want to have your own version, or is otherwise necessary, that
38
- is fine, but please isolate to its own commit so I can cherry-pick
39
- around it.
40
- * Make sure the test suite is passing ([including rbx and jruby][7]) and the code you wrote doesn't produce
41
- RuboCop offenses.
42
- * [Squash related commits together][5].
43
- * Open a [pull request][4] that relates to *only* one subject with a clear title
44
- and description in grammatically correct, complete sentences.
45
-
46
- ### Changelog entry format
47
-
48
- Here are a few examples:
49
-
50
- ```
51
- * [#716](https://github.com/bbatsov/rubocop/issues/716): Fixed a regression in the auto-correction logic of `MethodDefParentheses`. ([@bbatsov][])
52
- * New cop `ElseLayout` checks for odd arrangement of code in the `else` branch of a conditional expression. ([@bbatsov][])
53
- ```
54
-
55
- * Mark it up in [Markdown syntax][6].
56
- * The entry line should start with `* ` (an asterisk and a space).
57
- * If the change has a related GitHub issue (e.g. a bug fix for a reported issue), put a link to the issue as `[#123](https://github.com/bbatsov/rubocop/issues/123): `.
58
- * Describe the brief of the change. The sentence should end with a punctuation.
59
- * At the end of the entry, add an implicit link to your GitHub user page as `([@username][])`.
60
- * If this is your first contribution to RuboCop project, add a link definition for the implicit link to the bottom of the changelog as `[@username]: https://github.com/username`.
61
-
62
- [1]: https://github.com/bbatsov/rubocop/issues
63
- [2]: http://gun.io/blog/how-to-github-fork-branch-and-pull-request
64
- [3]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
65
- [4]: https://help.github.com/articles/using-pull-requests
66
- [5]: http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html
67
- [6]: http://daringfireball.net/projects/markdown/syntax
68
- [7]: http://blog.stwrt.ca/2013/09/06/installing-rubinius-with-rbenv
Binary file
@@ -1,247 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset='UTF-8' />
5
- <title>RuboCop Inspection Report</title>
6
- <%# TODO: Clean up the messy markup and style definitions. %>
7
- <style>
8
- * {
9
- -webkit-box-sizing: border-box;
10
- -moz-box-sizing: border-box;
11
- box-sizing: border-box;
12
- }
13
-
14
- body, html {
15
- font-size: 62.5%;
16
- }
17
- body {
18
- background-color: #ecedf0;
19
- font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
20
- margin: 0;
21
- }
22
- code {
23
- font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
24
- font-size: 85%;
25
- }
26
- #header {
27
- background: #f9f9f9;
28
- color: #333;
29
- border-bottom: 3px solid #ccc;
30
- height: 50px;
31
- padding: 0;
32
- }
33
- #header .logo {
34
- float: left;
35
- margin: 5px 12px 7px 20px;
36
- width: 38px;
37
- height: 38px;
38
- }
39
- #header .title {
40
- display: inline-block;
41
- float: left;
42
- height: 50px;
43
- font-size: 2.4rem;
44
- letter-spacing: normal;
45
- line-height: 50px;
46
- margin: 0;
47
- }
48
-
49
- .information, #offenses {
50
- width: 100%;
51
- padding: 20px;
52
- color: #333;
53
- }
54
- #offenses {
55
- padding: 0 20px;
56
- }
57
-
58
- .information .infobox {
59
- border-left: 3px solid;
60
- border-radius: 4px;
61
- background-color: #fff;
62
- -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
63
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
64
- padding: 15px;
65
- border-color: #0088cc;
66
- font-size: 1.4rem;
67
- }
68
- .information .infobox .info-title {
69
- font-size: 1.8rem;
70
- line-height: 2.2rem;
71
- margin: 0 0 0.5em;
72
- }
73
- .information .infobox ul {
74
- list-style: none;
75
- margin: 0;
76
- padding: 0;
77
- }
78
- .information .infobox ul li {
79
- line-height: 1.8rem
80
- }
81
-
82
- #offenses .offense-box {
83
- border-radius: 4px;
84
- margin-bottom: 20px;
85
- background-color: #fff;
86
- -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
87
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
88
- }
89
- .fixed .box-title {
90
- position: fixed;
91
- top: 0;
92
- z-index: 10;
93
- width: 100%;
94
- }
95
- .box-title-placeholder {
96
- display: none;
97
- }
98
- .fixed .box-title-placeholder {
99
- display: block;
100
- }
101
- #offenses .offense-box .box-title h3, #offenses .offense-box .box-title-placeholder h3 {
102
- color: #33353f;
103
- background-color: #f6f6f6;
104
- font-size: 2rem;
105
- line-height: 2rem;
106
- display: block;
107
- padding: 15px;
108
- border-radius: 5px;
109
- margin: 0;
110
- }
111
- #offenses .offense-box .offense-reports {
112
- padding: 0 15px;
113
- }
114
- #offenses .offense-box .offense-reports .report {
115
- border-bottom: 1px dotted #ddd;
116
- padding: 15px 0px;
117
- position: relative;
118
- font-size: 1.3rem;
119
- }
120
- #offenses .offense-box .offense-reports .report:last-child {
121
- border-bottom: none;
122
- }
123
- #offenses .offense-box .offense-reports .report pre code {
124
- display: block;
125
- background: #000;
126
- color: #fff;
127
- padding: 10px 15px;
128
- border-radius: 5px;
129
- line-height: 1.6rem;
130
- }
131
- #offenses .offense-box .offense-reports .report .location {
132
- font-weight: bold;
133
- }
134
- #offenses .offense-box .offense-reports .report .message code {
135
- padding: 0.3em;
136
- background-color: rgba(0,0,0,0.07);
137
- border-radius: 3px;
138
- }
139
- .severity {
140
- text-transform: capitalize;
141
- font-weight: bold;
142
- }
143
- .highlight {
144
- padding: 2px;
145
- border-radius: 2px;
146
- font-weight: bold;
147
- }
148
- <%- SEVERITY_COLORS.each do |severity, color| %>
149
- .severity.<%= severity %> {
150
- color: <%= color %>;
151
- }
152
- .highlight.<%= severity %> {
153
- background-color: <%= color.fade_out(0.4) %>;
154
- border: 1px solid <%= color.fade_out(0.6) %>;
155
- }
156
- <%- end %>
157
- footer {
158
- margin-bottom: 20px;
159
- margin-right: 20px;
160
- font-size: 1.3rem;
161
- color: #777;
162
- text-align: right;
163
- }
164
- </style>
165
-
166
- <script>
167
- (function() {
168
- // floating headers. requires classList support.
169
- if (!('classList' in document.createElement("_"))) return;
170
-
171
- var loaded = false,
172
- boxes,
173
- boxPositions;
174
-
175
- window.onload = function() {
176
- var scrollY = window.scrollY;
177
- boxes = document.querySelectorAll('.offense-box');
178
- boxPositions = [];
179
- for (var i = 0; i < boxes.length; i++)
180
- // need to add scrollY because the page might be somewhere other than the top when loaded.
181
- boxPositions[i] = boxes[i].getBoundingClientRect().top + scrollY;
182
- loaded = true;
183
- };
184
-
185
- window.onscroll = function() {
186
- if (!loaded) return;
187
- var i,
188
- idx,
189
- scrollY = window.scrollY;
190
- for (i = 0; i < boxPositions.length; i++) {
191
- if (scrollY <= boxPositions[i]) {
192
- idx = i;
193
- break;
194
- }
195
- }
196
- if (typeof idx == 'undefined') idx = boxes.length;
197
- if (idx > 0)
198
- boxes[idx - 1].classList.add('fixed');
199
- for (i = 0; i < boxes.length; i++) {
200
- if (i < idx) continue;
201
- boxes[i].classList.remove('fixed');
202
- }
203
- };
204
- })();
205
- </script>
206
- </head>
207
- <body>
208
- <div id="header">
209
- <img class="logo" src="data:image/png;base64,<%= base64_encoded_logo_image %>" alt="">
210
- <h1 class="title">RuboCop Inspection Report</h1>
211
- </div>
212
- <div class="information">
213
- <div class="infobox">
214
- <%= pluralize(files.count, 'file') %> inspected,
215
- <%= pluralize(summary.offense_count, 'offense', no_for_zero: true) %> detected
216
- </div>
217
- </div>
218
- <div id="offenses">
219
- <% files.each do |file| %>
220
- <% if file.offenses.any? %>
221
- <div class="offense-box">
222
- <div class="box-title-placeholder"><h3>&nbsp;</h3></div>
223
- <div class="box-title"><h3><%= relative_path(file.path) %> - <%= pluralize(file.offenses.count, 'offense') %></h3></div>
224
- <div class="offense-reports">
225
- <% file.offenses.each do |offense| %>
226
- <div class="report">
227
- <div class="meta">
228
- <span class="location">Line #<%= offense.location.line %></span> –
229
- <span class="severity <%= offense.severity %>"><%= offense.severity %>:</span>
230
- <span class="message"><%= decorated_message(offense) %></span>
231
- </div>
232
- <% unless offense.location.source_line.strip.empty? %>
233
- <pre><code><%= highlighted_source_line(offense) %></code></pre>
234
- <% end %>
235
- </div>
236
- <% end %>
237
- </div>
238
- </div>
239
- <% end %>
240
- <% end %>
241
- </div>
242
- <footer>
243
- Generated by <a href="https://github.com/bbatsov/rubocop">RuboCop</a>
244
- <span class="version"><%= RuboCop::Version::STRING %></span>
245
- </footer>
246
- </body>
247
- </html>
Binary file
Binary file
@@ -1,94 +0,0 @@
1
- This is the biggest RuboCop release we've done in a while. The highlights include
2
- about a dozen new cops, more cop configuration options, improved auto-correct and so many bugfixes.
3
-
4
- You'll might note that we changed the use of `offence` with `offense`. This was done to keep the spelling
5
- in our code consistent. Hopefully this won't cause anyone problems, but we're obliged to mention it as
6
- the `Offence` class itself got renamed.
7
-
8
- Below is the list of all the gory details. Enjoy!
9
-
10
- ## RuboCop 0.19.0
11
-
12
- ### New features
13
-
14
- * New cop `FileName` makes sure that source files have snake_case names. ([@bbatsov][])
15
- * New cop `DeprecatedClassMethods` checks for deprecated class methods. ([@bbatsov][])
16
- * New cop `StringConversionInInterpolation` checks for redundant `Object#to_s` in string interpolation. ([@bbatsov][])
17
- * New cop `LiteralInInterpolation` checks for interpolated string literals. ([@bbatsov][])
18
- * New cop `SelfAssignment` checks for places where the self-assignment shorthand should have been used. ([@bbatsov][])
19
- * New cop `DoubleNegation` checks for uses of `!!`. ([@bbatsov][])
20
- * New cop `PercentLiteralDelimiters` enforces consistent usage of `%`-literal delimiters. ([@hannestyden][])
21
- * New Rails cop `ActionFilter` enforces the use of `_filter` or `_action` action filter methods. ([@bbatsov][])
22
- * New Rails cop `ScopeArgs` makes sure you invoke the `scope` method properly. ([@bbatsov][])
23
- * Add `with_fixed_indentation` style to `AlignParameters` cop. ([@hannestyden][])
24
- * Add `IgnoreLastArgumentHash` option to `AlignHash` cop. ([@hannestyden][])
25
- * [#743](https://github.com/bbatsov/rubocop/issues/743): `SingleLineMethods` cop does auto-correction. ([@jonas054][])
26
- * [#743](https://github.com/bbatsov/rubocop/issues/743): `Semicolon` cop does auto-correction. ([@jonas054][])
27
- * [#743](https://github.com/bbatsov/rubocop/issues/743): `EmptyLineBetweenDefs` cop does auto-correction. ([@jonas054][])
28
- * [#743](https://github.com/bbatsov/rubocop/issues/743): `IndentationWidth` cop does auto-correction. ([@jonas054][])
29
- * [#743](https://github.com/bbatsov/rubocop/issues/743): `IndentationConsistency` cop does auto-correction. ([@jonas054][])
30
- * [#809](https://github.com/bbatsov/rubocop/issues/809): New formatter `fuubar` displays a progress bar and shows details of offenses as soon as they are detected. ([@yujinakayama][])
31
- * [#797](https://github.com/bbatsov/rubocop/issues/797): New cop `IndentHash` checks the indentation of the first key in multi-line hash literals. ([@jonas054][])
32
- * [#797](https://github.com/bbatsov/rubocop/issues/797): New cop `IndentArray` checks the indentation of the first element in multi-line array literals. ([@jonas054][])
33
- * [#806](https://github.com/bbatsov/rubocop/issues/806): Now excludes files in `vendor/**` by default. ([@jeremyolliver][])
34
- * [#795](https://github.com/bbatsov/rubocop/issues/795): `IfUnlessModifier` and `WhileUntilModifier` supports `MaxLineLength`, which is independent of `LineLength` parameter `Max`. ([@agrimm][])
35
- * [#868](https://github.com/bbatsov/rubocop/issues/868): New cop `ClassAndModuleChildren` checks the style of children definitions at classes and modules: nested / compact. ([@geniou][])
36
-
37
- ### Changes
38
-
39
- * [#793](https://github.com/bbatsov/rubocop/issues/793): Add printing total count when `rubocop --format offences`. ([@ma2gedev][])
40
- * Remove `Ignore` param from the Rails `Output` cop. The standard `Exclude/Include` should be used instead. ([@bbatsov][])
41
- * Renamed `FavorSprintf` to `FormatString` and made it configurable. ([@bbatsov][])
42
- * Renamed `Offence` to `Offense`. ([@bbatsov][])
43
- * Use `offense` in all messages instead of `offence`. ([@bbatsov][])
44
- * For indentation of `if`/`unless`/`while`/`until` bodies when the result is assigned to a variable, instead of supporting two styles simultaneously, `IndentationWidth` now supports one style of indentation at a time, specified by `EndAlignment`/`AlignWith`. ([@jonas054][])
45
- * Renamed `Style` param of `DotPosition` cop to `EnforcedStyle`. ([@bbatsov][])
46
- * Add `length` value to locations of offense in JSON formatter. ([@yujinakayama][])
47
- * `SpaceAroundBlockBraces` cop replaced by `SpaceBeforeBlockBraces` and `SpaceInsideBlockBraces`. ([@jonas054][])
48
- * `SpaceAroundEqualsInParameterDefault` cop is now configurable with the `EnforcedStyle` option. ([@jonas054][])
49
-
50
- ### Bugs fixed
51
-
52
- * [#790](https://github.com/bbatsov/rubocop/issues/790): Fix auto-correction interference problem between `MethodDefParentheses` and other cops. ([@jonas054][])
53
- * [#794](https://github.com/bbatsov/rubocop/issues/794): Fix handling of modifier keywords with required parentheses in `ParenthesesAroundCondition`. ([@bbatsov][])
54
- * [#804](https://github.com/bbatsov/rubocop/issues/804): Fix a false positive with operator assignments in a loop (including `begin..rescue..end` with `retry`) in `UselessAssignment`. ([@yujinakayama][])
55
- * [#815](https://github.com/bbatsov/rubocop/issues/815): Fix a false positive for heredocs with blank lines in them in `EmptyLines`. ([@bbatsov][])
56
- * Auto-correction is now more robust and less likely to die because of `RangeError` or "clobbering". ([@jonas054][])
57
- * Offenses always reported in order of position in file, also during `--auto-correct` runs. ([@jonas054][])
58
- * Fix problem with `[Corrected]` tag sometimes missing in output from `--auto-correct` runs. ([@jonas054][])
59
- * Fix message from `EndAlignment` cop when `AlignWith` is `keyword`. ([@jonas054][])
60
- * Handle `case` conditions in `LiteralInCondition`. ([@bbatsov][])
61
- * [#822](https://github.com/bbatsov/rubocop/issues/822): Fix a false positive in `DotPosition` when enforced style is set to `trailing`. ([@bbatsov][])
62
- * Handle properly dynamic strings in `LineEndConcatenation`. ([@bbatsov][])
63
- * [#832](https://github.com/bbatsov/rubocop/issues/832): Fix auto-correction interference problem between `BracesAroundHashParameters` and `SpaceInsideHashLiteralBraces`. ([@jonas054][])
64
- * Fix bug in auto-correction of alignment so that only space can be removed. ([@jonas054][])
65
- * Fix bug in `IndentationWidth` auto-correction so it doesn't correct things that `IndentationConsistency` should correct. ([@jonas054][])
66
- * [#847](https://github.com/bbatsov/rubocop/issues/847): Fix bug in `RegexpLiteral` concerning `--auto-gen-config`. ([@jonas054][])
67
- * [#848](https://github.com/bbatsov/rubocop/issues/848): Fix bug in `--show-cops` that made it print the default configuration rather than the current configuration. ([@jonas054][])
68
- * [#862](https://github.com/bbatsov/rubocop/issues/862): Fix a bug where single line `rubocop:disable` comments with indentations were treated as multiline cop disabling comments. ([@yujinakayama][])
69
- * Fix a bug where `rubocop:disable` comments with a cop name including `all` (e.g. `MethodCallParentheses`) were disabling all cops. ([@yujinakayama][])
70
- * Fix a bug where string and regexp literals including `# rubocop:disable` were confused with real comments. ([@yujinakayama][])
71
-
72
- [@bbatsov]: https://github.com/bbatsov
73
- [@jonas054]: https://github.com/jonas054
74
- [@yujinakayama]: https://github.com/yujinakayama
75
- [@dblock]: https://github.com/dblock
76
- [@nevir]: https://github.com/nevir
77
- [@daviddavis]: https://github.com/daviddavis
78
- [@sds]: https://github.com/sds
79
- [@fancyremarker]: https://github.com/fancyremarker
80
- [@sinisterchipmunk]: https://github.com/sinisterchipmunk
81
- [@vonTronje]: https://github.com/vonTronje
82
- [@agrimm]: https://github.com/agrimm
83
- [@pmenglund]: https://github.com/pmenglund
84
- [@chulkilee]: https://github.com/chulkilee
85
- [@codez]: https://github.com/codez
86
- [@emou]: https://github.com/emou
87
- [@skanev]: http://github.com/skanev
88
- [@claco]: http://github.com/claco
89
- [@rifraf]: http://github.com/rifraf
90
- [@scottmatthewman]: https://github.com/scottmatthewman
91
- [@ma2gedev]: http://github.com/ma2gedev
92
- [@jeremyolliver]: https://github.com/jeremyolliver
93
- [@hannestyden]: https://github.com/hannestyden
94
- [@geniou]: https://github.com/geniou
@@ -1,16 +0,0 @@
1
- RuboCop 0.19.1 is a bugfix-only release. Below is a list of the bugs we've fixed since 0.19.0:
2
-
3
- ### Bugs fixed
4
-
5
- * [#884](https://github.com/bbatsov/rubocop/issues/884): Fix --auto-gen-config for `NumericLiterals` so MinDigits is correct. ([@tmorris-fiksu][])
6
- * [#879](https://github.com/bbatsov/rubocop/issues/879): Fix --auto-gen-config for `RegexpLiteral` so we don't generate illegal values for `MaxSlashes`. ([@jonas054][])
7
- * Fix the name of the `Include` param in the default config of the Rails cops. ([@bbatsov][])
8
- * [#878](https://github.com/bbatsov/rubocop/pull/878): Blacklist `Rakefile`, `Gemfile` and `Capfile` by default in the `FileName` cop. ([@bbatsov][])
9
- * [#875](https://github.com/bbatsov/rubocop/issues/875): Handle `separator` style hashes in `IndentHash`. ([@jonas054][])
10
- * Fix a bug where multiple cli options that result in exit can be specified at once (e.g. `-vV`, `-v --show-cops`). ([@jkogara][])
11
- * [#889](https://github.com/bbatsov/rubocop/issues/889): Fix a false positive for `LiteralInCondition` when the condition is non-primitive array. ([@bbatsov][])
12
-
13
- [@bbatsov]: https://github.com/bbatsov
14
- [@jonas054]: https://github.com/jonas054
15
- [@jkogara]: https://github.com/jkogara
16
- [@tmorris-fiksu]: https://github.com/tmorris-fiksu
@@ -1,69 +0,0 @@
1
- There aren't many exciting new features this time around - our focus in 0.20 has been fixing most of the problems we
2
- introduced in 0.19. Apart from that we've added a few new cops and implemented auto-correct for a bunch of the existing cops.
3
- You'll also notice that the messages produced by most formatters a bit more colorful (and hopefully more readable as well).
4
-
5
- You should also note that `AllCops/Includes` and `AllCops/Excludes` have been renamed, so you'll have to update your config files
6
- accordingly.
7
-
8
- Below is the list of all the gory details. Enjoy!
9
-
10
- ### New features
11
-
12
- * New cop `GuardClause` checks for conditionals that can be replaced by guard clauses. ([@bbatsov][])
13
- * New cop `EmptyInterpolation` checks for empty interpolation in double-quoted strings. ([@bbatsov][])
14
- * [#899](https://github.com/bbatsov/rubocop/issues/899): Make `LineEndConcatenation` cop `<<` aware. ([@mockdeep][])
15
- * [#896](https://github.com/bbatsov/rubocop/issues/896): New option `--fail-level` changes minimum severity for exit with error code. ([@hiroponz][])
16
- * [#893](https://github.com/bbatsov/rubocop/issues/893): New option `--force-exclusion` forces excluding files specified in the configuration `Exclude` even if they are explicitly passed as arguments. ([@yujinakayama][])
17
- * `VariableInterpolation` cop does auto-correction. ([@bbatsov][])
18
- * `Not` cop does auto-correction. ([@bbatsov][])
19
- * `ClassMethods` cop does auto-correction. ([@bbatsov][])
20
- * `StringConversionInInterpolation` cop does auto-correction. ([@bbatsov][])
21
- * `NilComparison` cop does auto-correction. ([@bbatsov][])
22
- * `NonNilComparison` cop does auto-correction. ([@bbatsov][])
23
- * `NegatedIf` cop does auto-correction. ([@bbatsov][])
24
- * `NegatedWhile` cop does auto-correction. ([@bbatsov][])
25
- * New lint cop `SpaceBeforeFirstArg` checks for space between the method name and the first argument in method calls without parentheses. ([@jonas054][])
26
- * New style cop `SingleSpaceBeforeFirstArg` checks that no more than one space is used between the method name and the first argument in method calls without parentheses. ([@jonas054][])
27
- * New formatter `disabled_lines` displays cops and line ranges disabled by inline comments. ([@fshowalter][])
28
- * New cop `UselessAccessModifiers` checks for access modifiers that have no effect. ([@fshowalter][])
29
-
30
- ### Changes
31
-
32
- * [#913](https://github.com/bbatsov/rubocop/issues/913): `FileName` accepts multiple extensions. ([@tamird][])
33
- * `AllCops/Excludes` and `AllCops/Includes` were renamed to `AllCops/Exclude` and `AllCops/Include` for consistency with standard cop params. ([@bbatsov][])
34
- * Extract `NonNilCheck` cop from `NilComparison`. ([@bbatsov][])
35
- * Renamed `FavorJoin` to `ArrayJoin`. ([@bbatsov][])
36
- * Renamed `FavorUnlessOverNegatedIf` to `NegatedIf`. ([@bbatsov][])
37
- * Renamed `FavorUntilOverNegatedWhile`to `NegatedWhile`. ([@bbatsov][])
38
- * Renamed `HashMethods` to `DeprecatedHashMethods`. ([@bbatsov][])
39
- * Renamed `ReadAttribute` to `ReadWriteAttribute` and extended it to check for uses of `write_attribute`. ([@bbatsov][])
40
- * Add experimental support for Ruby 2.2 (development version) by falling back to Ruby 2.1 parser. ([@yujinakayama][])
41
-
42
- ### Bugs fixed
43
-
44
- * [#926](https://github.com/bbatsov/rubocop/issues/926): Fixed `BlockNesting` not auto-generating correctly. ([@tmorris-fiksu][])
45
- * [#904](https://github.com/bbatsov/rubocop/issues/904): Fixed a NPE in `LiteralInInterpolation`. ([@bbatsov][])
46
- * [#904](https://github.com/bbatsov/rubocop/issues/904): Fixed a NPE in `StringConversionInInterpolation`. ([@bbatsov][])
47
- * [#892](https://github.com/bbatsov/rubocop/issues/892): Make sure `Include` and `Exclude` paths in a `.rubocop.yml` are interpreted as relative to the directory of that file. ([@jonas054][])
48
- * [#906](https://github.com/bbatsov/rubocop/issues/906): Fixed a false positive in `LiteralInInterpolation`. ([@bbatsov][])
49
- * [#909](https://github.com/bbatsov/rubocop/issues/909): Handle properly multiple `rescue` clauses in `SignalException`. ([@bbatsov][])
50
- * [#876](https://github.com/bbatsov/rubocop/issues/876): Do a deep merge of hashes when overriding default configuration in a `.rubocop.yml` file. ([@jonas054][])
51
- * [#912](https://github.com/bbatsov/rubocop/issues/912): Fix a false positive in `LineEndConcatenation` for `%` string literals. ([@bbatsov][])
52
- * [#912](https://github.com/bbatsov/rubocop/issues/912): Handle top-level constant resolution in `DeprecatedClassMethods` (e.g. `::File.exists?`). ([@bbatsov][])
53
- * [#914](https://github.com/bbatsov/rubocop/issues/914): Fixed rdoc error during gem installation. ([@bbatsov][])
54
- * The `--only` option now enables the given cop in case it is disabled in configuration. ([@jonas054][])
55
- * Fix path resolution so that the default exclusion of `vendor` directories works. ([@jonas054][])
56
- * [#908](https://github.com/bbatsov/rubocop/issues/908): Fixed hanging while auto correct for `SpaceAfterComma` and `SpaceInsideBrackets`. ([@hiroponz][])
57
- * [#919](https://github.com/bbatsov/rubocop/issues/919): Don't avoid auto-correction in `HashSyntax` when there is missing space around operator. ([@jonas054][])
58
- * Fixed handling of floats in `NumericLiterals`. ([@bbatsov][])
59
- * [#927](https://github.com/bbatsov/rubocop/issues/927): Let `--auto-gen-config` overwrite an existing `rubocop-todo.yml` file instead of asking the user to remove it. ([@jonas054][])
60
- * [#936](https://github.com/bbatsov/rubocop/issues/936): Allow `_other` as well as `other` in `OpMethod`. ([@bbatsov][])
61
-
62
- [@bbatsov]: https://github.com/bbatsov
63
- [@jonas054]: https://github.com/jonas054
64
- [@yujinakayama]: https://github.com/yujinakayama
65
- [@tmorris-fiksu]: https://github.com/tmorris-fiksu
66
- [@mockdeep]: https://github.com/mockdeep
67
- [@hiroponz]: https://github.com/hiroponz
68
- [@tamird]: https://github.com/tamird
69
- [@fshowalter]: https://github.com/fshowalter