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,24 +0,0 @@
1
- RuboCop 0.20.1 is a bugfix-only release. Below is a list of the bugs we've fixed since 0.20.0:
2
-
3
- ## 0.20.1 (05/04/2014)
4
-
5
- ### Bugs fixed
6
-
7
- * [#940](https://github.com/bbatsov/rubocop/issues/940): Fixed `UselessAccessModifier` not handling `attr_*` correctly. ([@fshowalter][])
8
- * `NegatedIf` properly handles negated `unless` condition. ([@bbatsov][])
9
- * `NegatedWhile` properly handles negated `until` condition. ([@bbatsov][])
10
- * [#925](https://github.com/bbatsov/rubocop/issues/925): Do not disable the `Syntax` cop in output from `--auto-gen-config`. ([@jonas054][])
11
- * [#943](https://github.com/bbatsov/rubocop/issues/943): Fix auto-correction interference problem between `SpaceAfterComma` and other cops. ([@jonas054][])
12
- * [#954](https://github.com/bbatsov/rubocop/pull/954): Fix auto-correction bug in `NilComparison`. ([@bbatsov][])
13
- * [#953](https://github.com/bbatsov/rubocop/pull/953): Fix auto-correction bug in `NonNilCheck`. ([@bbatsov][])
14
- * [#952](https://github.com/bbatsov/rubocop/pull/952): Handle implicit receiver in `StringConversionInInterpolation`. ([@bbatsov][])
15
- * [#956](https://github.com/bbatsov/rubocop/pull/956): Apply `ClassMethods` check only on `class`/`module` bodies. ([@bbatsov][])
16
- * [#945](https://github.com/bbatsov/rubocop/issues/945): Fix SpaceBeforeFirstArg cop for multiline argument and exclude assignments. ([@cschramm][])
17
- * [#948](https://github.com/bbatsov/rubocop/issues/948): `Blocks` cop avoids auto-correction if it would introduce a semantic change. ([@jonas054][])
18
- * [#946](https://github.com/bbatsov/rubocop/issues/946): Allow non-nil checks that are the final expressions of predicate method definitions in `NonNilCheck`. ([@bbatsov][])
19
- * [#957](https://github.com/bbatsov/rubocop/issues/957): Allow space + comment inside parentheses, braces, and square brackets. ([@jonas054][])
20
-
21
- [@bbatsov]: https://github.com/bbatsov
22
- [@jonas054]: https://github.com/jonas054
23
- [@fshowalter]: https://github.com/fshowalter
24
- [@cschramm]: https://github.com/cschramm
@@ -1,56 +0,0 @@
1
- This release brings a few new cops and extended auto-correction support. The most significant
2
- change is that we've changed the syntax for excluding/including to be closer to that of shell globbing.
3
-
4
- Below is the list of all the gory details. Enjoy!
5
-
6
-
7
- ### New features
8
-
9
- * [#835](https://github.com/bbatsov/rubocop/issues/835): New cop `UnneededCapitalW` checks for `%W` when interpolation not necessary and `%w` would do. ([@sfeldon][])
10
- * [#934](https://github.com/bbatsov/rubocop/issues/934): New cop `UnderscorePrefixedVariableName` checks for `_`-prefixed variables that are actually used. ([@yujinakayama][])
11
- * [#934](https://github.com/bbatsov/rubocop/issues/934): New cop `UnusedMethodArgument` checks for unused method arguments. ([@yujinakayama][])
12
- * [#934](https://github.com/bbatsov/rubocop/issues/934): New cop `UnusedBlockArgument` checks for unused block arguments. ([@yujinakayama][])
13
- * [#964](https://github.com/bbatsov/rubocop/issues/964): `RedundantBegin` cop does auto-correction. ([@tamird][])
14
- * [#966](https://github.com/bbatsov/rubocop/issues/966): `RescueException` cop does auto-correction. ([@tamird][])
15
- * [#967](https://github.com/bbatsov/rubocop/issues/967): `TrivialAccessors` cop does auto-correction. ([@tamird][])
16
- * [#963](https://github.com/bbatsov/rubocop/issues/963): Add `AllowDSLWriters` options to `TrivialAccessors`. ([@tamird][])
17
- * [#969](https://github.com/bbatsov/rubocop/issues/969): Let the `Debugger` cop check for forgotten calls to byebug. ([@bquorning][])
18
- * [#971](https://github.com/bbatsov/rubocop/issues/971): Configuration format deprecation warnings include the path to the problematic config file. ([@bcobb][])
19
- * [#490](https://github.com/bbatsov/rubocop/issues/490): Add EnforcedStyle config option to TrailingBlankLines. ([@jonas054][])
20
- * Add `auto_correct` task to Rake integration. ([@irrationalfab][])
21
- * [#986](https://github.com/bbatsov/rubocop/issues/986): The `--only` option can take a comma-separated list of cops. ([@jonas054][])
22
- * New Rails cop `Delegate` that checks for delegations that could be replaced by the `delegate` method. ([@geniou][])
23
- * Add configuration to `Encoding` cop to only enforce encoding comment if there are non ASCII characters. ([@geniou][])
24
-
25
- ### Changes
26
-
27
- * Removed `FinalNewline` cop as its check is now performed by `TrailingBlankLines`. ([@jonas054][])
28
- * [#1011](https://github.com/bbatsov/rubocop/issues/1011): Pattern matching with `Dir#[]` for config parameters added. ([@jonas054][])
29
-
30
- ### Bugs fixed
31
-
32
- * Update description on `LineEndConcatenation` cop. ([@mockdeep][])
33
- * [#978](https://github.com/bbatsov/rubocop/issues/978): Fix regression in `IndentationWidth` handling method calls. ([@tamird][])
34
- * [#976](https://github.com/bbatsov/rubocop/issues/976): Fix `EndAlignment` not handling element assignment correctly. ([@tamird][])
35
- * [#976](https://github.com/bbatsov/rubocop/issues/976): Fix `IndentationWidth` not handling element assignment correctly. ([@tamird][])
36
- * [#800](https://github.com/bbatsov/rubocop/issues/800): Do not report `[Corrected]` in `--auto-correct` mode if correction wasn't done. ([@jonas054][])
37
- * [#968](https://github.com/bbatsov/rubocop/issues/968): Fix bug when running RuboCop with `-c .rubocop.yml`. ([@bquorning][])
38
- * [#975](https://github.com/bbatsov/rubocop/pull/975): Fix infinite correction in `IndentationWidth`. ([@jonas054][])
39
- * [#986](https://github.com/bbatsov/rubocop/issues/986): When `--lint` is used together with `--only`, all lint cops are run in addition to the given cops. ([@jonas054][])
40
- * [#997](https://github.com/bbatsov/rubocop/issues/997): Fix handling of file paths for matching against `Exclude` property when `rubocop .` is called. ([@jonas054][])
41
- * [#1000](https://github.com/bbatsov/rubocop/issues/1000): Support modifier (e.g., `private`) and `def` on the same line (Ruby >= 2.1) in `IndentationWidth`. ([@jonas054][])
42
- * [#1001](https://github.com/bbatsov/rubocop/issues/1001): Fix `--auto-gen-config` logic for `RegexpLiteral`. ([@jonas054][])
43
- * [#993](https://github.com/bbatsov/rubocop/issues/993): Do not report any offenses for the contents of an empty file. ([@jonas054][])
44
- * [#1016](https://github.com/bbatsov/rubocop/issues/1016): Fix a false positive in `ConditionPosition` regarding statement modifiers. ([@bbatsov][])
45
- * [#1014](https://github.com/bbatsov/rubocop/issues/1014): Fix handling of strings nested in `dstr` nodes. ([@bbatsov][])
46
-
47
- [@bbatsov]: https://github.com/bbatsov
48
- [@jonas054]: https://github.com/jonas054
49
- [@yujinakayama]: https://github.com/yujinakayama
50
- [@geniou]: https://github.com/geniou
51
- [@mockdeep]: https://github.com/mockdeep
52
- [@tamird]: https://github.com/tamird
53
- [@bquorning]: https://github.com/bquorning
54
- [@bcobb]: https://github.com/bcobb
55
- [@irrationalfab]: https://github.com/irrationalfab
56
- [@sfeldon]: https://github.com/sfeldon
@@ -1,77 +0,0 @@
1
- This release brings a few new cops, extended auto-correction support and plenty of bug fixes.
2
-
3
- Below is the list of all the gory details. Enjoy!
4
-
5
- ### New features
6
-
7
- * [#974](https://github.com/bbatsov/rubocop/pull/974): New cop `CommentIndentation` checks indentation of comments. ([@jonas054][])
8
- * Add new cop `EachWithObject` to prefer `each_with_object` over `inject` or `reduce`. ([@geniou][])
9
- * [#1010](https://github.com/bbatsov/rubocop/issues/1010): New Cop `Next` check for conditions at the end of an interation and propose to use `next` instead. ([@geniou][])
10
- * The `GuardClause` cop now also looks for unless and it is configurable how many lines the body of an if / unless needs to have to not be ignored. ([@geniou][])
11
- * [#835](https://github.com/bbatsov/rubocop/issues/835): New cop `UnneededPercentX` checks for `%x` when backquotes would do. ([@jonas054][])
12
- * Add auto-correct to `UnusedBlockArgument` and `UnusedMethodArgument` cops. ([@hannestyden][])
13
- * [#1074](https://github.com/bbatsov/rubocop/issues/1074): New cop `SpaceBeforeComment` checks for missing space between code and a comment on the same line. ([@jonas054][])
14
- * [#1089](https://github.com/bbatsov/rubocop/pull/1089): New option `-F`/`--fail-fast` inspects files in modification time order and stop after the first file with offenses. ([@jonas054][])
15
-
16
- ### Changes
17
-
18
- * `NonNilCheck` offense reporting and autocorrect are configurable to include semantic changes. ([@hannestyden][])
19
- * The parameters `AllCops/Excludes` and `AllCops/Includes` with final `s` only give a warning and don't halt `rubocop` execution. ([@jonas054][])
20
- * The `GuardClause` cop is no longer irgnoring a one-line body by default - see configuration. ([@geniou][])
21
- * [#1050](https://github.com/bbatsov/rubocop/issues/1050): Rename `rubocop-todo.yml` file to `.rubocop_todo.yml`. ([@geniou][])
22
- * [#1064](https://github.com/bbatsov/rubocop/issues/1064): Adjust default max line length to 80. ([@bbatsov][])
23
-
24
- ### Bugs fixed
25
-
26
- * Allow assignment in `AlignParameters` cop. ([@tommeier][])
27
- * Fix `Void` and `SpaceAroundOperators` for short call syntax `lambda.()`. ([@biinari][])
28
- * Fix `Delegate` for delegation with assignment or constant. ([@geniou][])
29
- * [#1032](https://github.com/bbatsov/rubocop/issues/1032): Avoid duplicate reporting when code moves around due to `--auto-correct`. ([@jonas054][])
30
- * [#1036](https://github.com/bbatsov/rubocop/issues/1036): Handle strings like `__FILE__` in `LineEndConcatenation`. ([@bbatsov][])
31
- * [#1006](https://github.com/bbatsov/rubocop/issues/1006): Fix LineEndConcatenation to handle chained concatenations. ([@barunio][])
32
- * [#1066](https://github.com/bbatsov/rubocop/issues/1066): Fix auto-correct for `NegatedIf` when the condition has parentheses around it. ([@jonas054][])
33
- * Fix `AlignParameters` `with_fixed_indentation` for multi-line method calls. ([@molawson][])
34
- * Fix problem that appears in some installations when reading empty YAML files. ([@jonas054][])
35
- * [#1022](https://github.com/bbatsov/rubocop/issues/1022): A Cop will no longer auto-correct a file that's excluded through an `Exclude` setting in the cop's configuration. ([@jonas054][])
36
- * Fix paths in `Exclude` config section not being recognized on Windows. ([@wndhydrnt][])
37
- * [#1094](https://github.com/bbatsov/rubocop/issues/1094): Fix ClassAndModuleChildren for classes with a single method. ([@geniou][])
38
-
39
- [@bbatsov]: https://github.com/bbatsov
40
- [@jonas054]: https://github.com/jonas054
41
- [@yujinakayama]: https://github.com/yujinakayama
42
- [@dblock]: https://github.com/dblock
43
- [@nevir]: https://github.com/nevir
44
- [@daviddavis]: https://github.com/daviddavis
45
- [@sds]: https://github.com/sds
46
- [@fancyremarker]: https://github.com/fancyremarker
47
- [@sinisterchipmunk]: https://github.com/sinisterchipmunk
48
- [@vonTronje]: https://github.com/vonTronje
49
- [@agrimm]: https://github.com/agrimm
50
- [@pmenglund]: https://github.com/pmenglund
51
- [@chulkilee]: https://github.com/chulkilee
52
- [@codez]: https://github.com/codez
53
- [@emou]: https://github.com/emou
54
- [@skanev]: http://github.com/skanev
55
- [@claco]: http://github.com/claco
56
- [@rifraf]: http://github.com/rifraf
57
- [@scottmatthewman]: https://github.com/scottmatthewman
58
- [@ma2gedev]: http://github.com/ma2gedev
59
- [@jeremyolliver]: https://github.com/jeremyolliver
60
- [@hannestyden]: https://github.com/hannestyden
61
- [@geniou]: https://github.com/geniou
62
- [@jkogara]: https://github.com/jkogara
63
- [@tmorris-fiksu]: https://github.com/tmorris-fiksu
64
- [@mockdeep]: https://github.com/mockdeep
65
- [@hiroponz]: https://github.com/hiroponz
66
- [@tamird]: https://github.com/tamird
67
- [@fshowalter]: https://github.com/fshowalter
68
- [@cschramm]: https://github.com/cschramm
69
- [@bquorning]: https://github.com/bquorning
70
- [@bcobb]: https://github.com/bcobb
71
- [@irrationalfab]: https://github.com/irrationalfab
72
- [@tommeier]: https://github.com/tommeier
73
- [@sfeldon]: https://github.com/sfeldon
74
- [@biinari]: https://github.com/biinari
75
- [@barunio]: https://github.com/barunio
76
- [@molawson]: https://github.com/molawson
77
- [@wndhydrnt]: https://github.com/wndhydrnt
@@ -1,79 +0,0 @@
1
- This release is mostly about fixing bugs, but it also features a few prominent changes:
2
-
3
- * Cops are now namespace aware, which would it make it simpler to write RuboCop extensions without
4
- worrying about name collisions (e.g. you can now have `Style/Filename` and `RSpec/Filename` cops).
5
- * There's now logic which prevents auto-corrections from generated invalid Ruby code.
6
- * The `Rubocop` module was renamed to `RuboCop`, which will affect packages relying on RuboCop's public API.
7
-
8
- Below is the list of all the gory details. Enjoy!
9
-
10
-
11
- ### New features
12
-
13
- * [#1117](https://github.com/bbatsov/rubocop/issues/1117): `BlockComments` cop does auto-correction. ([@jonas054][])
14
- * [#1124](https://github.com/bbatsov/rubocop/pull/1124): `TrivialAccessors` cop auto-corrects class-level accessors. ([@ggilder][])
15
- * [#1062](https://github.com/bbatsov/rubocop/pull/1062): New cop `InlineComment` checks for inline comments. ([@salbertson][])
16
- * [#1118](https://github.com/bbatsov/rubocop/issues/1118): Add checking and auto-correction of right brackets in `IndentArray` and `IndentHash`. ([@jonas054][])
17
-
18
- ### Changes
19
-
20
- * [#1097](https://github.com/bbatsov/rubocop/issues/1097): Add optional namespace prefix to cop names: `Style/LineLength` instead of `LineLength` in config files, `--only` argument, `--show-cops` output, and `# rubocop:disable`. ([@jonas054][])
21
- * [#1075](https://github.com/bbatsov/rubocop/issues/1075): More strict limits on when to require trailing comma. ([@jonas054][])
22
- * Renamed `Rubocop` module to `RuboCop`. ([@bbatsov][])
23
-
24
- ### Bugs fixed
25
-
26
- * [#1126](https://github.com/bbatsov/rubocop/pull/1126): Fix `--auto-gen-config` bug with `RegexpLiteral` where only the last file's results would be used. ([@ggilder][])
27
- * [#1104](https://github.com/bbatsov/rubocop/issues/1104): Fix `EachWithObject` with modifier if as body. ([@geniou][])
28
- * [#1106](https://github.com/bbatsov/rubocop/issues/1106): Fix `EachWithObject` with single method call as body. ([@geniou][])
29
- * Avoid the warning about ignoring syck YAML engine from JRuby. ([@jonas054][])
30
- * [#1111](https://github.com/bbatsov/rubocop/issues/1111): Fix problem in `EndOfLine` with reading non-UTF-8 encoded files. ([@jonas054][])
31
- * [#1115](https://github.com/bbatsov/rubocop/issues/1115): Fix `Next` to ignore super nodes. ([@geniou][])
32
- * [#1117](https://github.com/bbatsov/rubocop/issues/1117): Don't auto-correct indentation in scopes that contain block comments (`=begin`..`=end`). ([@jonas054][])
33
- * [#1123](https://github.com/bbatsov/rubocop/pull/1123): Support setter calls in safe assignment in `ParenthesesAroundCondition`. ([@jonas054][])
34
- * [#1090](https://github.com/bbatsov/rubocop/issues/1090): Correct handling of documentation vs annotation comment. ([@jonas054][])
35
- * [#1118](https://github.com/bbatsov/rubocop/issues/1118): Never write invalid ruby to a file in auto-correct. ([@jonas054][])
36
- * [#1120](https://github.com/bbatsov/rubocop/issues/1120): Don't change indentation of heredoc strings in auto-correct. ([@jonas054][])
37
- * [#1109](https://github.com/bbatsov/rubocop/issues/1109): Handle conditions with modifier ops in them in `ParenthesesAroundCondition`. ([@bbatsov][])
38
-
39
- [@bbatsov]: https://github.com/bbatsov
40
- [@jonas054]: https://github.com/jonas054
41
- [@yujinakayama]: https://github.com/yujinakayama
42
- [@dblock]: https://github.com/dblock
43
- [@nevir]: https://github.com/nevir
44
- [@daviddavis]: https://github.com/daviddavis
45
- [@sds]: https://github.com/sds
46
- [@fancyremarker]: https://github.com/fancyremarker
47
- [@sinisterchipmunk]: https://github.com/sinisterchipmunk
48
- [@vonTronje]: https://github.com/vonTronje
49
- [@agrimm]: https://github.com/agrimm
50
- [@pmenglund]: https://github.com/pmenglund
51
- [@chulkilee]: https://github.com/chulkilee
52
- [@codez]: https://github.com/codez
53
- [@emou]: https://github.com/emou
54
- [@skanev]: http://github.com/skanev
55
- [@claco]: http://github.com/claco
56
- [@rifraf]: http://github.com/rifraf
57
- [@scottmatthewman]: https://github.com/scottmatthewman
58
- [@ma2gedev]: http://github.com/ma2gedev
59
- [@jeremyolliver]: https://github.com/jeremyolliver
60
- [@hannestyden]: https://github.com/hannestyden
61
- [@geniou]: https://github.com/geniou
62
- [@jkogara]: https://github.com/jkogara
63
- [@tmorris-fiksu]: https://github.com/tmorris-fiksu
64
- [@mockdeep]: https://github.com/mockdeep
65
- [@hiroponz]: https://github.com/hiroponz
66
- [@tamird]: https://github.com/tamird
67
- [@fshowalter]: https://github.com/fshowalter
68
- [@cschramm]: https://github.com/cschramm
69
- [@bquorning]: https://github.com/bquorning
70
- [@bcobb]: https://github.com/bcobb
71
- [@irrationalfab]: https://github.com/irrationalfab
72
- [@tommeier]: https://github.com/tommeier
73
- [@sfeldon]: https://github.com/sfeldon
74
- [@biinari]: https://github.com/biinari
75
- [@barunio]: https://github.com/barunio
76
- [@molawson]: https://github.com/molawson
77
- [@wndhydrnt]: https://github.com/wndhydrnt
78
- [@ggilder]: https://github.com/ggilder
79
- [@salbertson]: https://github.com/salbertson
@@ -1,77 +0,0 @@
1
- This release is mostly about fixing bugs, but it also features a few new cops.
2
-
3
- Below is the list of all the gory details. Enjoy!
4
-
5
- ### New features
6
-
7
- * [#639](https://github.com/bbatsov/rubocop/issues/639): Support square bracket setters in `UselessSetterCall`. ([@yujinakayama][])
8
- * [#835](https://github.com/bbatsov/rubocop/issues/835): `UnneededCapitalW` cop does auto-correction. ([@sfeldon][])
9
- * [#1092](https://github.com/bbatsov/rubocop/issues/1092): New cop `DefEndAlignment` takes over responsibility for checkng alignment of method definition `end`s from `EndAlignment`, and is configurable. ([@jonas054][])
10
- * [#1145](https://github.com/bbatsov/rubocop/issues/1145): New cop `ClassCheck` enforces consistent use of `is_a?` or `kind_of?`. ([@bbatsov][])
11
- * [#1161](https://github.com/bbatsov/rubocop/pull/1161): New cop `SpaceBeforeComma` detects spaces before a comma. ([@agrimm][])
12
- * [#1161](https://github.com/bbatsov/rubocop/pull/1161): New cop `SpaceBeforeSemicolon` detects spaces before a semicolon. ([@agrimm][])
13
- * [#835](https://github.com/bbatsov/rubocop/issues/835): New cop `UnneededPercentQ` checks for usage of the `%q`/`%Q` syntax when `''` or `""` would do. ([@jonas054][])
14
- * [#977](https://github.com/bbatsov/rubocop/issues/977): Add `AllowURI` option (enabled by default) to `LineLength` cop. ([@yujinakayama][])
15
-
16
- ### Changes
17
-
18
- * Unused block local variables (`obj.each { |arg; this| }`) are now handled by `UnusedBlockArgument` cop instead of `UselessAssignment` cop. ([@yujinakayama][])
19
- * [#1141](https://github.com/bbatsov/rubocop/issues/1141): Clarify in the message from `TrailingComma` that a trailing comma is never allowed for lists where some items share a line. ([@jonas054][])
20
-
21
- ### Bugs fixed
22
-
23
- * [#1133](https://github.com/bbatsov/rubocop/issues/1133): Handle `reduce/inject` with no arguments in `EachWithObject`. ([@bbatsov][])
24
- * [#1152](https://github.com/bbatsov/rubocop/issues/1152): Handle `while/until` with no body in `Next`. ([@tamird][])
25
- * Fix a false positive in `UselessSetterCall` for setter call on a local variable that contains a non-local object. ([@yujinakayama][])
26
- * [#1158](https://github.com/bbatsov/rubocop/issues/1158): Fix auto-correction of floating-point numbers. ([@bbatsov][])
27
- * [#1159](https://github.com/bbatsov/rubocop/issues/1159): Fix checking of `begin`..`end` structures, blocks, and parenthesized expressions in `IndentationWidth`. ([@jonas054][])
28
- * [#1159](https://github.com/bbatsov/rubocop/issues/1159): More rigid conditions for when `attr` is considered an offense. ([@jonas054][])
29
- * [#1167](https://github.com/bbatsov/rubocop/issues/1167): Fix handling of parameters spanning multiple lines in `TrailingComma`. ([@jonas054][])
30
- * [#1169](https://github.com/bbatsov/rubocop/issues/1169): Fix handling of ternary op conditions in `ParenthesesAroundCondition`. ([@bbatsov][])
31
- * [#1147](https://github.com/bbatsov/rubocop/issues/1147): WordArray checks arrays with special characters. ([@camilleldn][])
32
- * Fix a false positive against `return` in a loop in `Next` cop. ([@yujinakayama][])
33
- * [#1165](https://github.com/bbatsov/rubocop/issues/1165): Support `rescue`/`else`/`ensure` bodies in `IndentationWidth`. ([@jonas054][])
34
- * Fix false positive for aligned list of values after `when` in `IndentationWidth`. ([@jonas054][])
35
-
36
- [@bbatsov]: https://github.com/bbatsov
37
- [@jonas054]: https://github.com/jonas054
38
- [@yujinakayama]: https://github.com/yujinakayama
39
- [@dblock]: https://github.com/dblock
40
- [@nevir]: https://github.com/nevir
41
- [@daviddavis]: https://github.com/daviddavis
42
- [@sds]: https://github.com/sds
43
- [@fancyremarker]: https://github.com/fancyremarker
44
- [@sinisterchipmunk]: https://github.com/sinisterchipmunk
45
- [@vonTronje]: https://github.com/vonTronje
46
- [@agrimm]: https://github.com/agrimm
47
- [@pmenglund]: https://github.com/pmenglund
48
- [@chulkilee]: https://github.com/chulkilee
49
- [@codez]: https://github.com/codez
50
- [@emou]: https://github.com/emou
51
- [@skanev]: http://github.com/skanev
52
- [@claco]: http://github.com/claco
53
- [@rifraf]: http://github.com/rifraf
54
- [@scottmatthewman]: https://github.com/scottmatthewman
55
- [@ma2gedev]: http://github.com/ma2gedev
56
- [@jeremyolliver]: https://github.com/jeremyolliver
57
- [@hannestyden]: https://github.com/hannestyden
58
- [@geniou]: https://github.com/geniou
59
- [@jkogara]: https://github.com/jkogara
60
- [@tmorris-fiksu]: https://github.com/tmorris-fiksu
61
- [@mockdeep]: https://github.com/mockdeep
62
- [@hiroponz]: https://github.com/hiroponz
63
- [@tamird]: https://github.com/tamird
64
- [@fshowalter]: https://github.com/fshowalter
65
- [@cschramm]: https://github.com/cschramm
66
- [@bquorning]: https://github.com/bquorning
67
- [@bcobb]: https://github.com/bcobb
68
- [@irrationalfab]: https://github.com/irrationalfab
69
- [@tommeier]: https://github.com/tommeier
70
- [@sfeldon]: https://github.com/sfeldon
71
- [@biinari]: https://github.com/biinari
72
- [@barunio]: https://github.com/barunio
73
- [@molawson]: https://github.com/molawson
74
- [@wndhydrnt]: https://github.com/wndhydrnt
75
- [@ggilder]: https://github.com/ggilder
76
- [@salbertson]: https://github.com/salbertson
77
- [@camilleldn]: https://github.com/camilleldn
@@ -1,15 +0,0 @@
1
- RuboCop 0.24.1 is a bugfix-only release. Below is a list of the bugs we've fixed since 0.24.0:
2
-
3
- ## 0.24.1 (03/07/2014)
4
-
5
- ### Bugs fixed
6
-
7
- * [#1174](https://github.com/bbatsov/rubocop/issues/1174): Fix `--auto-correct` crash in `AlignParameters`. ([@jonas054][])
8
- * [#1176](https://github.com/bbatsov/rubocop/issues/1176): Fix `--auto-correct` crash in `IndentationWidth`. ([@jonas054][])
9
- * [#1177](https://github.com/bbatsov/rubocop/issues/1177): Avoid suggesting underscore-prefixed name for unused keyword arguments and auto-correcting in that way. ([@yujinakayama][])
10
- * [#1157](https://github.com/bbatsov/rubocop/issues/1157): Validate `--only` arguments later when all cop names are known. ([@jonas054][])
11
- * [#1188](https://github.com/bbatsov/rubocop/issues/1188), [#1190](https://github.com/bbatsov/rubocop/issues/1190): Fix crash in `LineLength` cop when `AllowURI` option is enabled. ([@yujinakayama][])
12
- * [#1191](https://github.com/bbatsov/rubocop/issues/1191): Fix crash on empty body branches in a loop in `Next` cop. ([@yujinakayama][])
13
-
14
- [@jonas054]: https://github.com/jonas054
15
- [@yujinakayama]: https://github.com/yujinakayama
@@ -1,91 +0,0 @@
1
- This release comes with lots of bug fixes and several new cops (that will likely need bugfixes in the next release :-)).
2
-
3
- The most notable change in 0.25 is the addition of the `Metrics` namespace. Several `Style` cops have been moved there
4
- (e.g. `ClassLength`, `MethodLength`, etc).
5
-
6
- This release also marks the end of us supporting Ruby 1.9.2 - now Ruby 1.9.3+ is required.
7
-
8
- Below is the list of all the gory details. Enjoy!
9
-
10
- ### New features
11
-
12
- * [#1259](https://github.com/bbatsov/rubocop/issues/1259): Allow AndOr cop to autocorrect by adding method call parenthesis. ([@vrthra][])
13
- * [#1232](https://github.com/bbatsov/rubocop/issues/1232): Add EnforcedStyle option to cop `AndOr` to restrict it to conditionals. ([@vrthra][])
14
- * [#835](https://github.com/bbatsov/rubocop/issues/835): New cop `PercentQLiterals` checks if use of `%Q` and `%q` matches configuration. ([@jonas054][])
15
- * [#835](https://github.com/bbatsov/rubocop/issues/835): New cop `BarePercentLiterals` checks if usage of `%()` or `%Q()` matches configuration. ([@jonas054][])
16
- * [#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][])
17
- * [#1217](https://github.com/bbatsov/rubocop/pull/1217): `Style::EmptyLinesAroundAccessModifier` cop does auto-correction. ([@tamird][])
18
- * [#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][])
19
- * `Debugger` cop now checks for `binding.pry_remote`. ([@yous][])
20
- * [#1238](https://github.com/bbatsov/rubocop/issues/1238): Add `MinBodyLength` option to `Next` cop. ([@bbatsov][])
21
- * [#1241](https://github.com/bbatsov/rubocop/issues/1241): `TrailingComma` cop does auto-correction. ([@yous][])
22
- * [#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][])
23
- * [#1078](https://github.com/bbatsov/rubocop/pull/1078): `BlockAlignment` cop does auto-correction. ([@barunio][])
24
-
25
- ### Changes
26
-
27
- * [#1220](https://github.com/bbatsov/rubocop/issues/1220): New namespace `Metrics` created and some `Style` cops moved there. ([@jonas054][])
28
- * 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][])
29
-
30
- ### Bugs fixed
31
-
32
- * [#1251](https://github.com/bbatsov/rubocop/issues/1251): Fix `PercentLiteralDelimiters` auto-correct indentation error. ([@hannestyden][])
33
- * [#1197](https://github.com/bbatsov/rubocop/issues/1197): Fix false positive for new lambda syntax in `SpaceInsideBlockBraces`. ([@jonas054][])
34
- * [#1201](https://github.com/bbatsov/rubocop/issues/1201): Fix error at anonymous keyword splat arguments in some variable cops. ([@yujinakayama][])
35
- * Fix false positive in `UnneededPercentQ` for `/%Q(something)/`. ([@jonas054][])
36
- * Fix `SpacesInsideBrackets` for `Hash#[]` calls with spaces after left bracket. ([@mcls][])
37
- * [#1210](https://github.com/bbatsov/rubocop/issues/1210): Fix false positive in `UnneededPercentQ` for `%Q(\t")`. ([@jonas054][])
38
- * Fix false positive in `UnneededPercentQ` for heredoc strings with `%q`/`%Q`. ([@jonas054][])
39
- * [#1214](https://github.com/bbatsov/rubocop/issues/1214): Don't destroy code in `AlignHash` autocorrect. ([@jonas054][])
40
- * [#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][])
41
- * [#1227](https://github.com/bbatsov/rubocop/issues/1227): Don't permanently change yamler as it can affect other apps. ([@jonas054][])
42
- * [#1184](https://github.com/bbatsov/rubocop/issues/1184): Fix a false positive in `Output` cop. ([@bbatsov][])
43
- * [#1256](https://github.com/bbatsov/rubocop/issues/1256): Ignore block-pass in `TrailingComma`. ([@tamird][])
44
- * [#1255](https://github.com/bbatsov/rubocop/issues/1255): Compare without context in `AutocorrectUnlessChangingAST`. ([@jonas054][])
45
- * [#1262](https://github.com/bbatsov/rubocop/issues/1262): Handle regexp and backtick literals in `VariableInterpolation`. ([@bbatsov][])
46
-
47
- [@bbatsov]: https://github.com/bbatsov
48
- [@jonas054]: https://github.com/jonas054
49
- [@yujinakayama]: https://github.com/yujinakayama
50
- [@dblock]: https://github.com/dblock
51
- [@nevir]: https://github.com/nevir
52
- [@daviddavis]: https://github.com/daviddavis
53
- [@sds]: https://github.com/sds
54
- [@fancyremarker]: https://github.com/fancyremarker
55
- [@sinisterchipmunk]: https://github.com/sinisterchipmunk
56
- [@vonTronje]: https://github.com/vonTronje
57
- [@agrimm]: https://github.com/agrimm
58
- [@pmenglund]: https://github.com/pmenglund
59
- [@chulkilee]: https://github.com/chulkilee
60
- [@codez]: https://github.com/codez
61
- [@emou]: https://github.com/emou
62
- [@skanev]: http://github.com/skanev
63
- [@claco]: http://github.com/claco
64
- [@rifraf]: http://github.com/rifraf
65
- [@scottmatthewman]: https://github.com/scottmatthewman
66
- [@ma2gedev]: http://github.com/ma2gedev
67
- [@jeremyolliver]: https://github.com/jeremyolliver
68
- [@hannestyden]: https://github.com/hannestyden
69
- [@geniou]: https://github.com/geniou
70
- [@jkogara]: https://github.com/jkogara
71
- [@tmorris-fiksu]: https://github.com/tmorris-fiksu
72
- [@mockdeep]: https://github.com/mockdeep
73
- [@hiroponz]: https://github.com/hiroponz
74
- [@tamird]: https://github.com/tamird
75
- [@fshowalter]: https://github.com/fshowalter
76
- [@cschramm]: https://github.com/cschramm
77
- [@bquorning]: https://github.com/bquorning
78
- [@bcobb]: https://github.com/bcobb
79
- [@irrationalfab]: https://github.com/irrationalfab
80
- [@tommeier]: https://github.com/tommeier
81
- [@sfeldon]: https://github.com/sfeldon
82
- [@biinari]: https://github.com/biinari
83
- [@barunio]: https://github.com/barunio
84
- [@molawson]: https://github.com/molawson
85
- [@wndhydrnt]: https://github.com/wndhydrnt
86
- [@ggilder]: https://github.com/ggilder
87
- [@salbertson]: https://github.com/salbertson
88
- [@camilleldn]: https://github.com/camilleldn
89
- [@mcls]: https://github.com/mcls
90
- [@yous]: https://github.com/yous
91
- [@vrthra]: https://github.com/vrthra
@@ -1,89 +0,0 @@
1
- Nothing particularly exciting this time around. The new release comes
2
- with lots of bug fixes, more auto-corrections and several new cops.
3
-
4
- Note that the `Style/Encoding` cop is now disabled by default. See
5
- [#1304](https://github.com/bbatsov/rubocop/issues/1304) for the
6
- rationale behind this change.
7
-
8
- Below is the list of all the gory details. Enjoy!
9
-
10
- ### New features
11
-
12
- * New formatter `HTMLFormatter` generates a html file with a list of files with offences in them. ([@SkuliOskarsson][])
13
- * New cop `SpaceInsideRangeLiteral` checks for spaces around `..` and `...` in range literals. ([@bbatsov][])
14
- * New cop `InfiniteLoop` checks for places where `Kernel#loop` should have been used. ([@bbatsov][])
15
- * New cop `SymbolProc` checks for places where a symbol can be used as proc instead of a block. ([@bbatsov][])
16
- * `UselessAssignment` cop now suggests a variable name for possible typos if there's a variable-ish identifier similar to the unused variable name in the same scope. ([@yujinakayama][])
17
- * `PredicateName` cop now has separate configurations for prefices that denote predicate method names and predicate prefices that should be removed. ([@bbatsov][])
18
- * [#1272](https://github.com/bbatsov/rubocop/issues/1272): `Tab` cop does auto-correction. ([@yous][])
19
- * [#1274](https://github.com/bbatsov/rubocop/issues/1274): `MultilineIfThen` cop does auto-correction. ([@bbatsov][])
20
- * [#1279](https://github.com/bbatsov/rubocop/issues/1279): `DotPosition` cop does auto-correction. ([@yous][])
21
- * [#1277](https://github.com/bbatsov/rubocop/issues/1277): `SpaceBeforeFirstArg` cop does auto-correction. ([@yous][])
22
- * [#1310](https://github.com/bbatsov/rubocop/issues/1310): Handle `module_function` in `Style/AccessModifierIndentation` and `Style/EmptyLinesAroundAccessModifier`. ([@bbatsov][])
23
-
24
- ### Changes
25
-
26
- * [#1289](https://github.com/bbatsov/rubocop/issues/1289): Use utf-8 as default encoding for inspected files. ([@jonas054][])
27
- * [#1304](https://github.com/bbatsov/rubocop/issues/1304): `Style/Encoding` is no longer a no-op on Ruby 2.x. It's also disabled by default, as projects not supporting 1.9 don't need to run it. ([@bbatsov][])
28
-
29
- ### Bugs fixed
30
-
31
- * [#1263](https://github.com/bbatsov/rubocop/issues/1263): Do not report `%W` literals with special escaped characters in `UnneededCapitalW`. ([@jonas054][])
32
- * [#1286](https://github.com/bbatsov/rubocop/issues/1286): Fix a false positive in `VariableName`. ([@bbatsov][])
33
- * [#1211](https://github.com/bbatsov/rubocop/issues/1211): Fix false negative in `UselessAssignment` when there's a reference for the variable in an exclusive branch. ([@yujinakayama][])
34
- * [#1307](https://github.com/bbatsov/rubocop/issues/1307): Fix auto-correction of `RedundantBegin` cop deletes new line. ([@yous][])
35
- * [#1283](https://github.com/bbatsov/rubocop/issues/1283): Fix auto-correction of indented expressions in `PercentLiteralDelimiters`. ([@jonas054][])
36
- * [#1315](https://github.com/bbatsov/rubocop/pull/1315): `BracesAroundHashParameters` auto-correction removes whitespace around content inside braces. ([@jspanjers][])
37
- * [#1313](https://github.com/bbatsov/rubocop/issues/1313): Fix a false positive in `AndOr` when enforced style is `conditionals`. ([@bbatsov][])
38
- * Handle post-conditional `while` and `until` in `AndOr` when enforced style is `conditionals`. ([@yujinakayama][])
39
- * [#1319](https://github.com/bbatsov/rubocop/issues/1319): Fix a false positive in `FormatString`. ([@bbatsov][])
40
- * [#1287](https://github.com/bbatsov/rubocop/issues/1287): Allow missing blank line for EmptyLinesAroundAccessModifier if next line closes a block. ([@sch1zo][])
41
-
42
- [@bbatsov]: https://github.com/bbatsov
43
- [@jonas054]: https://github.com/jonas054
44
- [@yujinakayama]: https://github.com/yujinakayama
45
- [@dblock]: https://github.com/dblock
46
- [@nevir]: https://github.com/nevir
47
- [@daviddavis]: https://github.com/daviddavis
48
- [@sds]: https://github.com/sds
49
- [@fancyremarker]: https://github.com/fancyremarker
50
- [@sinisterchipmunk]: https://github.com/sinisterchipmunk
51
- [@vonTronje]: https://github.com/vonTronje
52
- [@agrimm]: https://github.com/agrimm
53
- [@pmenglund]: https://github.com/pmenglund
54
- [@chulkilee]: https://github.com/chulkilee
55
- [@codez]: https://github.com/codez
56
- [@emou]: https://github.com/emou
57
- [@skanev]: http://github.com/skanev
58
- [@claco]: http://github.com/claco
59
- [@rifraf]: http://github.com/rifraf
60
- [@scottmatthewman]: https://github.com/scottmatthewman
61
- [@ma2gedev]: http://github.com/ma2gedev
62
- [@jeremyolliver]: https://github.com/jeremyolliver
63
- [@hannestyden]: https://github.com/hannestyden
64
- [@geniou]: https://github.com/geniou
65
- [@jkogara]: https://github.com/jkogara
66
- [@tmorris-fiksu]: https://github.com/tmorris-fiksu
67
- [@mockdeep]: https://github.com/mockdeep
68
- [@hiroponz]: https://github.com/hiroponz
69
- [@tamird]: https://github.com/tamird
70
- [@fshowalter]: https://github.com/fshowalter
71
- [@cschramm]: https://github.com/cschramm
72
- [@bquorning]: https://github.com/bquorning
73
- [@bcobb]: https://github.com/bcobb
74
- [@irrationalfab]: https://github.com/irrationalfab
75
- [@tommeier]: https://github.com/tommeier
76
- [@sfeldon]: https://github.com/sfeldon
77
- [@biinari]: https://github.com/biinari
78
- [@barunio]: https://github.com/barunio
79
- [@molawson]: https://github.com/molawson
80
- [@wndhydrnt]: https://github.com/wndhydrnt
81
- [@ggilder]: https://github.com/ggilder
82
- [@salbertson]: https://github.com/salbertson
83
- [@camilleldn]: https://github.com/camilleldn
84
- [@mcls]: https://github.com/mcls
85
- [@yous]: https://github.com/yous
86
- [@vrthra]: https://github.com/vrthra
87
- [@SkuliOskarsson]: https://github.com/SkuliOskarsson
88
- [@jspanjers]: https://github.com/jspanjers
89
- [@sch1zo]: https://github.com/sch1zo