Skip to content

Commit 10a08cf

Browse files
committed
Cut 1.4.2
1 parent 2880979 commit 10a08cf

File tree

10 files changed

+30
-10
lines changed

10 files changed

+30
-10
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ Include the output of `rubocop -V` or `bundle exec rubocop -V` if using Bundler.
3636

3737
```
3838
$ [bundle exec] rubocop -V
39-
1.4.1 (using Parser 2.7.2.0, rubocop-ast 1.1.1, running on ruby 2.7.2 x86_64-linux)
39+
1.4.2 (using Parser 2.7.2.0, rubocop-ast 1.1.1, running on ruby 2.7.2 x86_64-linux)
4040
```

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## master (unreleased)
44

5+
## 1.4.2 (2020-11-25)
6+
57
### Bug fixes
68

79
* [#9083](https://github.com/rubocop-hq/rubocop/pull/9083): Fix `Style/RedundantArgument` cop raising offense for more than one argument. ([@tejasbubane][])

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ do so.
1717

1818
```
1919
$ rubocop -V
20-
1.4.1 (using Parser 2.7.2.0, rubocop-ast 1.1.1, running on ruby 2.7.2 x86_64-linux)
20+
1.4.2 (using Parser 2.7.2.0, rubocop-ast 1.1.1, running on ruby 2.7.2 x86_64-linux)
2121
```
2222

2323
* Include any relevant code to the issue summary.

config/default.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2456,7 +2456,7 @@ Naming/VariableNumber:
24562456
StyleGuide: '#snake-case-symbols-methods-vars-with-numbers'
24572457
Enabled: true
24582458
VersionAdded: '0.50'
2459-
VersionChanged: '<<next>>'
2459+
VersionChanged: '1.4'
24602460
EnforcedStyle: normalcase
24612461
SupportedStyles:
24622462
- snake_case

docs/antora.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ name: rubocop
22
title: RuboCop
33
# We always provide version without patch here (e.g. 1.1),
44
# as patch versions should not appear in the docs.
5-
version: 'master'
5+
version: '1.4'
66
nav:
77
- modules/ROOT/nav.adoc

docs/modules/ROOT/pages/cops_layout.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -1395,15 +1395,15 @@ end
13951395
| 1.4
13961396
|===
13971397

1398-
This cop checks whether method definitions are
1399-
separated by one empty line.
1398+
This cop checks whether class/module/method definitions are
1399+
separated by one or more empty lines.
14001400

14011401
`NumberOfEmptyLines` can be an integer (default is 1) or
14021402
an array (e.g. [1, 2]) to specify a minimum and maximum
14031403
number of empty lines permitted.
14041404

14051405
`AllowAdjacentOneLineDefs` configures whether adjacent
1406-
one-line method definitions are considered an offense.
1406+
one-line definitions are considered an offense.
14071407

14081408
=== Examples
14091409

docs/modules/ROOT/pages/cops_lint.adoc

+2-1
Original file line numberDiff line numberDiff line change
@@ -4657,7 +4657,8 @@ block will just return a transformation of the last element value, and
46574657
could be rewritten as such without a loop.
46584658

46594659
Also catches instances where an index of the accumulator is returned, as
4660-
this may change the type of object being retained.
4660+
this may change the type of object being retained. As well, detects when
4661+
fewer than 2 block arguments are specified.
46614662

46624663
NOTE: For the purpose of reducing false positives, this cop only flags
46634664
returns in `reduce` blocks where the element is the only variable in

docs/modules/ROOT/pages/cops_naming.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ fooBar = 1
994994
| Yes
995995
| No
996996
| 0.50
997-
| 1.3
997+
| 1.4
998998
|===
999999

10001000
This cop makes sure that all numbered variables use the

lib/rubocop/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module RuboCop
44
# This module holds the RuboCop version information.
55
module Version
6-
STRING = '1.4.1'
6+
STRING = '1.4.2'
77

88
MSG = '%<version>s (using Parser %<parser_version>s, '\
99
'rubocop-ast %<rubocop_ast_version>s, ' \

relnotes/v1.4.2.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
### Bug fixes
2+
3+
* [#9083](https://github.com/rubocop-hq/rubocop/pull/9083): Fix `Style/RedundantArgument` cop raising offense for more than one argument. ([@tejasbubane][])
4+
* [#9089](https://github.com/rubocop-hq/rubocop/issues/9089): Fix an incorrect auto-correct for `Style/FormatString` when using springf with second argument that uses an operator. ([@koic][])
5+
* [#7670](https://github.com/rubocop-hq/rubocop/issues/7670): Handle offenses inside heredocs for `-a --disable-uncorrectable`. ([@jonas054][])
6+
* [#9070](https://github.com/rubocop-hq/rubocop/issues/9070): Fix `Lint/UnmodifiedReduceAccumulator` error when the block does not have enough arguments. ([@dvandersluis][])
7+
8+
### Changes
9+
10+
* [#9091](https://github.com/rubocop-hq/rubocop/pull/9091): Have `Naming/VariableNumber` accept _1, _2, ... ([@marcandre][])
11+
* [#9087](https://github.com/rubocop-hq/rubocop/pull/9087): Deprecate `EnforceSuperclass` module. ([@koic][])
12+
13+
[@tejasbubane]: https://github.com/tejasbubane
14+
[@koic]: https://github.com/koic
15+
[@jonas054]: https://github.com/jonas054
16+
[@dvandersluis]: https://github.com/dvandersluis
17+
[@marcandre]: https://github.com/marcandre

0 commit comments

Comments
 (0)