Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/rubocop/rubocop

A Ruby static code analyzer and formatter, based on the community Ruby style guide.
https://github.com/rubocop/rubocop

More rubocop optimizations

b04834fbd328c9b1a84a61ef6d948eadd944ff3b authored almost 2 years ago by fatkodima <[email protected]>
Merge pull request #11695 from fatkodima/print-profile-locations

Print locations of generated profile files when profiling rubocop

2033fa59070d6890d8585d5919230abe71500de4 authored almost 2 years ago by Koichi ITO <[email protected]>
Merge pull request #11695 from fatkodima/print-profile-locations

Print locations of generated profile files when profiling rubocop

2033fa59070d6890d8585d5919230abe71500de4 authored almost 2 years ago by Koichi ITO <[email protected]>
Fix a pull request number of changelog

3ecd55089f47684c66416dd38652e0e6691a734a authored almost 2 years ago by Koichi ITO <[email protected]>
Fix a pull request number of changelog

3ecd55089f47684c66416dd38652e0e6691a734a authored almost 2 years ago by Koichi ITO <[email protected]>
Print locations of generated profile files when profiling rubocop

2a91feb0c48f7a5c60a5f7ffda92d2753bba9f68 authored almost 2 years ago by fatkodima <[email protected]>
Print locations of generated profile files when profiling rubocop

2a91feb0c48f7a5c60a5f7ffda92d2753bba9f68 authored almost 2 years ago by fatkodima <[email protected]>
Switch back the docs version

856d73c467ddd07dcaa74a0f88aa94ae5ba4172a authored almost 2 years ago by Koichi ITO <[email protected]>
Switch back the docs version

856d73c467ddd07dcaa74a0f88aa94ae5ba4172a authored almost 2 years ago by Koichi ITO <[email protected]>
Fix a typo in comment

4689b8ba25cdd45f56ab9bb12c82fdcfc7aa6289 authored almost 2 years ago by ydah <[email protected]>
Fix a typo in comment

4689b8ba25cdd45f56ab9bb12c82fdcfc7aa6289 authored almost 2 years ago by ydah <[email protected]>
Cut 1.48.1

675114c1b5a1999a112f8adaad8c99f8de6f7bcc authored almost 2 years ago by Bozhidar Batsov <[email protected]>
Cut 1.48.1

675114c1b5a1999a112f8adaad8c99f8de6f7bcc authored almost 2 years ago by Bozhidar Batsov <[email protected]>
Update Changelog

a0d896a010f4d545147f2e1eaf2c75d900b1ba0c authored almost 2 years ago by Bozhidar Batsov <[email protected]>
Update Changelog

a0d896a010f4d545147f2e1eaf2c75d900b1ba0c authored almost 2 years ago by Bozhidar Batsov <[email protected]>
[Fix #11658] Register Object#pry as an offense (#11669)

ed786ab489102ac48197bb7b9753ab81236fc951 authored almost 2 years ago by Thomas Hareau <[email protected]>
[Fix #11658] Register Object#pry as an offense (#11669)

ed786ab489102ac48197bb7b9753ab81236fc951 authored almost 2 years ago by Thomas Hareau <[email protected]>
[Doc] Tweak the doc for `DisabledByDefault` config

Follow up #11689.

I read back through the configuration doc and noticed that the description of...

96911a9464cf2482b19a2b93345d8abaa1d97989 authored almost 2 years ago by Koichi ITO <[email protected]>
[Doc] Tweak the doc for `DisabledByDefault` config

Follow up #11689.

I read back through the configuration doc and noticed that the description of...

96911a9464cf2482b19a2b93345d8abaa1d97989 authored almost 2 years ago by Koichi ITO <[email protected]>
Merge pull request #11691 from koic/fix_an_error_for_gemspec_dependency_version

Fix an error for `Gemspec/DependencyVersion`

e79974b8469f729fa0e293101bf094018c2d62b5 authored almost 2 years ago by Koichi ITO <[email protected]>
Merge pull request #11691 from koic/fix_an_error_for_gemspec_dependency_version

Fix an error for `Gemspec/DependencyVersion`

e79974b8469f729fa0e293101bf094018c2d62b5 authored almost 2 years ago by Koichi ITO <[email protected]>
Fix an error for `Gemspec/DependencyVersion`

This PR fixes the following error for `Gemspec/DependencyVersion`
when `add_dependency` without ...

a3b8a8d4a7e82767c6abd2bc31c94c0205e57658 authored almost 2 years ago by Koichi ITO <[email protected]>
Fix an error for `Gemspec/DependencyVersion`

This PR fixes the following error for `Gemspec/DependencyVersion`
when `add_dependency` without ...

a3b8a8d4a7e82767c6abd2bc31c94c0205e57658 authored almost 2 years ago by Koichi ITO <[email protected]>
Fix `Lint/Syntax` behavior when `Enabled: false` of `Lint` department

Here's another fix I found in work on #11688.

Ruby code has a syntax error and .rubocop.yml wit...

f0356375b74d3fe11ce9c4c03c30925e6a273695 authored almost 2 years ago by Koichi ITO <[email protected]>
Fix `Lint/Syntax` behavior when `Enabled: false` of `Lint` department

Here's another fix I found in work on #11688.

Ruby code has a syntax error and .rubocop.yml wit...

f0356375b74d3fe11ce9c4c03c30925e6a273695 authored almost 2 years ago by Koichi ITO <[email protected]>
Add Ruby 3.3 context to rspec/support.rb

Follow up https://github.com/rubocop/rubocop/pull/11569.

d11e25fa886ca74278c700bb60655955bb85e5fd authored almost 2 years ago by Koichi ITO <[email protected]>
Add Ruby 3.3 context to rspec/support.rb

Follow up https://github.com/rubocop/rubocop/pull/11569.

d11e25fa886ca74278c700bb60655955bb85e5fd authored almost 2 years ago by Koichi ITO <[email protected]>
[Fix #11677] Fix the severity for `Lint/Syntax`

Fixes #11677.

This PR fixes the severity for `Lint/Syntax`. The `Lint/Syntax` severity must alw...

0fc26d81d23f2ca206823bef44f1d35a237de290 authored almost 2 years ago by Koichi ITO <[email protected]>
[Fix #11677] Fix the severity for `Lint/Syntax`

Fixes #11677.

This PR fixes the severity for `Lint/Syntax`. The `Lint/Syntax` severity must alw...

0fc26d81d23f2ca206823bef44f1d35a237de290 authored almost 2 years ago by Koichi ITO <[email protected]>
[Fix #11682] Fix a false positive for `Lint/UselessRescue`

Fixes #11682.

This PR fixes a false positive for `Lint/UselessRescue`
when using `Thread#raise`...

6c3bbff14630fb94bca266461c93696312106ca9 authored almost 2 years ago by Koichi ITO <[email protected]>
[Fix #11682] Fix a false positive for `Lint/UselessRescue`

Fixes #11682.

This PR fixes a false positive for `Lint/UselessRescue`
when using `Thread#raise`...

6c3bbff14630fb94bca266461c93696312106ca9 authored almost 2 years ago by Koichi ITO <[email protected]>
Fix typos

This commit fixes the following build error:
https://github.com/rubocop/rubocop/actions/runs/437...

94fdf213e3fef91bea2399de16baa5ef9fbc2899 authored almost 2 years ago by Koichi ITO <[email protected]>
Fix typos

This commit fixes the following build error:
https://github.com/rubocop/rubocop/actions/runs/437...

94fdf213e3fef91bea2399de16baa5ef9fbc2899 authored almost 2 years ago by Koichi ITO <[email protected]>
Merge pull request #11675 from issyl0/accessor-grouping-fix-sibling-detection

Style/AccessorGrouping: Fix sibling detection for methods with type sigs

1cd7cd22fbc79a066559d9b23577b279d9a4c3d9 authored almost 2 years ago by Koichi ITO <[email protected]>
Merge pull request #11675 from issyl0/accessor-grouping-fix-sibling-detection

Style/AccessorGrouping: Fix sibling detection for methods with type sigs

1cd7cd22fbc79a066559d9b23577b279d9a4c3d9 authored almost 2 years ago by Koichi ITO <[email protected]>
Merge pull request #11678 from sambostock/clarify-method-name-docs-and-test

Improve `Naming/MethodName` example `AllowedPatterns`

43aa0cd1d416dd1acff432e0309dd01cd83b0c74 authored almost 2 years ago by Koichi ITO <[email protected]>
Merge pull request #11678 from sambostock/clarify-method-name-docs-and-test

Improve `Naming/MethodName` example `AllowedPatterns`

43aa0cd1d416dd1acff432e0309dd01cd83b0c74 authored almost 2 years ago by Koichi ITO <[email protected]>
Merge pull request #11674 from koic/fix_an_error_for_layout_block_end_newline

[Fix #11672] Fix an error for `Layout/BlockEndNewline`

f44b9e51efeaa38190b1d523d46cacaea596a397 authored almost 2 years ago by Koichi ITO <[email protected]>
Improve `Naming/MethodName` example `AllowedPatterns`

None of the code paths lead to scenarios in which a method name could
possibly include leading o...

5624d81050ef1f407a6a84396e3e4e197998b54d authored almost 2 years ago by Sam Bostock <[email protected]>
Improve `Naming/MethodName` example `AllowedPatterns`

None of the code paths lead to scenarios in which a method name could
possibly include leading o...

5624d81050ef1f407a6a84396e3e4e197998b54d authored almost 2 years ago by Sam Bostock <[email protected]>
Style/AccessorGrouping: Fix sibling detection for methods with type sigs

- Over in `Homebrew/brew`, trying to enable this cop after
008506d59f094140636269aa588e32fb690...

1fd778b5b433642947a1b8ec16486aa8575f01b8 authored almost 2 years ago by Issy Long <[email protected]>
Style/AccessorGrouping: Fix sibling detection for methods with type sigs

- Over in `Homebrew/brew`, trying to enable this cop after
008506d59f094140636269aa588e32fb690...

1fd778b5b433642947a1b8ec16486aa8575f01b8 authored almost 2 years ago by Issy Long <[email protected]>
Merge pull request #11673 from gsamokovarov/hash-syntax-in-assignment

Fix incorrect Style/HashSyntax autocorrection for assignment methods

6136ffd91e8d6fba22d6fb44ec8498a5d43537d0 authored almost 2 years ago by Koichi ITO <[email protected]>
Merge pull request #11673 from gsamokovarov/hash-syntax-in-assignment

Fix incorrect Style/HashSyntax autocorrection for assignment methods

6136ffd91e8d6fba22d6fb44ec8498a5d43537d0 authored almost 2 years ago by Koichi ITO <[email protected]>
[Fix #11672] Fix an error for `Layout/BlockEndNewline`

Fixes #11672.

This PR fixes an error for `Layout/BlockEndNewline` when multiline block `}`
is n...

efdb100bb22fd59dd3c765678436689f8c9bffd0 authored almost 2 years ago by Koichi ITO <[email protected]>
[Fix #11672] Fix an error for `Layout/BlockEndNewline`

Fixes #11672.

This PR fixes an error for `Layout/BlockEndNewline` when multiline block `}`
is n...

efdb100bb22fd59dd3c765678436689f8c9bffd0 authored almost 2 years ago by Koichi ITO <[email protected]>
Fix incorrect Style/HashSyntax autocorrection for assignment methods

In Ruby 3.1 and above, code like:

```ruby
object.attr = {foo: foo}
^^^ Omit...

693796ebf680bcca3a5cab00383828d6df6cc6c2 authored almost 2 years ago by Genadi Samokovarov <[email protected]>
Fix incorrect Style/HashSyntax autocorrection for assignment methods

In Ruby 3.1 and above, code like:

```ruby
object.attr = {foo: foo}
^^^ Omit...

693796ebf680bcca3a5cab00383828d6df6cc6c2 authored almost 2 years ago by Genadi Samokovarov <[email protected]>
Use RuboCop RSpec 2.19

This commit uses RuboCop RSpec 2.19 and suppresses the following new offenses:

```console
$ bun...

1f7094d5a389847028a6eb156c271214bdc11a6b authored almost 2 years ago by Koichi ITO <[email protected]>
Use RuboCop RSpec 2.19

This commit uses RuboCop RSpec 2.19 and suppresses the following new offenses:

```console
$ bun...

1f7094d5a389847028a6eb156c271214bdc11a6b authored almost 2 years ago by Koichi ITO <[email protected]>
Switch back the docs version

07f6491f87ff3cfeb491f8d2d83937055b1c7472 authored almost 2 years ago by Bozhidar Batsov <[email protected]>
Switch back the docs version

07f6491f87ff3cfeb491f8d2d83937055b1c7472 authored almost 2 years ago by Bozhidar Batsov <[email protected]>
Cut 1.48

8d3282647c43e38381b5640e218234f21242967b authored almost 2 years ago by Bozhidar Batsov <[email protected]>
Cut 1.48

8d3282647c43e38381b5640e218234f21242967b authored almost 2 years ago by Bozhidar Batsov <[email protected]>
Update Changelog

36cc7765111c7ae030495fbfeaf539f700bacabf authored almost 2 years ago by Bozhidar Batsov <[email protected]>
Update Changelog

36cc7765111c7ae030495fbfeaf539f700bacabf authored almost 2 years ago by Bozhidar Batsov <[email protected]>
[Fix #11164] Suppress server mode message with -f json (#11668)

af8b5f97fa0df91bb35be9f43061acf52b91330b authored almost 2 years ago by Jason Dougherty <[email protected]>
[Fix #11164] Suppress server mode message with -f json (#11668)

af8b5f97fa0df91bb35be9f43061acf52b91330b authored almost 2 years ago by Jason Dougherty <[email protected]>
[Fix #11629] Add new `Style/FileEmpty` cop

Fix #11629

```ruby
# bad
File.zero?('path/to/file')
File.size('path/to/file') == 0
File.size('p...

8257ff27e973a82008289d800e53e5072d3bd2fe authored almost 2 years ago by ydah <[email protected]>
Cache `classname_attribute_value` in junit formatter

f23e48762f2f690b09a79d50f7243aa0ca2f8fcf authored almost 2 years ago by fatkodima <[email protected]>
Cache `classname_attribute_value` in junit formatter

f23e48762f2f690b09a79d50f7243aa0ca2f8fcf authored almost 2 years ago by fatkodima <[email protected]>
[Fix #11628] Add new `Style/DirEmpty` cop

Fix #11628

```ruby
# bad
Dir.entries('path/to/dir').size == 2
Dir.children('path/to/dir').empty...

0499a5863b6a4dfe54b68d68f31c44cf3da576a9 authored almost 2 years ago by ydah <[email protected]>
[Fix #11628] Add new `Style/DirEmpty` cop

Fix #11628

```ruby
# bad
Dir.entries('path/to/dir').size == 2
Dir.children('path/to/dir').empty...

0499a5863b6a4dfe54b68d68f31c44cf3da576a9 authored almost 2 years ago by ydah <[email protected]>
[Fix #11663] Fix an incorrect autocorrect for `Style/BlockDelimiters`

Fixes #11663.

This PR fixes an incorrect autocorrect for `Style/BlockDelimiters`
when multi-lin...

f982aa8f9686ae907366eddcd678e8510137b7f8 authored almost 2 years ago by Koichi ITO <[email protected]>
[Fix #11663] Fix an incorrect autocorrect for `Style/BlockDelimiters`

Fixes #11663.

This PR fixes an incorrect autocorrect for `Style/BlockDelimiters`
when multi-lin...

f982aa8f9686ae907366eddcd678e8510137b7f8 authored almost 2 years ago by Koichi ITO <[email protected]>
Merge pull request #11665 from fatkodima/registry-enabled-cop-name

Use cop name to check if cop inside registry is enabled

d8f67653acaf3bdfceeefc6d03393c6fe8705a5a authored almost 2 years ago by Koichi ITO <[email protected]>
Merge pull request #11665 from fatkodima/registry-enabled-cop-name

Use cop name to check if cop inside registry is enabled

d8f67653acaf3bdfceeefc6d03393c6fe8705a5a authored almost 2 years ago by Koichi ITO <[email protected]>
Merge pull request #11638 from ydah/fix-lint_useless_access_modifier

Fix a false positive for `Lint/UselessAccessModifier` when using same access modifier inside and...

118542b8302b0733cb4bbf48968e8356d2cf5adb authored almost 2 years ago by Koichi ITO <[email protected]>
Merge pull request #11638 from ydah/fix-lint_useless_access_modifier

Fix a false positive for `Lint/UselessAccessModifier` when using same access modifier inside and...

118542b8302b0733cb4bbf48968e8356d2cf5adb authored almost 2 years ago by Koichi ITO <[email protected]>
Fix a false positive for `Lint/UselessAccessModifier` when using same access modifier inside and outside the `included` block

This PR is fix a false positive for `Lint/UselessAccessModifier` when using same access modifier...

0d3c056965c1b23bc0200fed1205efa21ad55804 authored almost 2 years ago by ydah <[email protected]>
Fix a false positive for `Lint/UselessAccessModifier` when using same access modifier inside and outside the `included` block

This PR is fix a false positive for `Lint/UselessAccessModifier` when using same access modifier...

0d3c056965c1b23bc0200fed1205efa21ad55804 authored almost 2 years ago by ydah <[email protected]>
Use cop name to check if cop inside registry is enabled

84f54445456c8268df2b248e4df2f2f7d6e4aaf5 authored almost 2 years ago by fatkodima <[email protected]>
Use cop name to check if cop inside registry is enabled

84f54445456c8268df2b248e4df2f2f7d6e4aaf5 authored almost 2 years ago by fatkodima <[email protected]>
Fix an error for `Style/Documentation`

This PR fixes an error for `Style/Documentation`
when namespace is a variable.

```ruby
m = Modu...

951507a2cd70518aeca2351b405a301534be195b authored almost 2 years ago by Koichi ITO <[email protected]>
Fix an error for `Style/Documentation`

This PR fixes an error for `Style/Documentation`
when namespace is a variable.

```ruby
m = Modu...

951507a2cd70518aeca2351b405a301534be195b authored almost 2 years ago by Koichi ITO <[email protected]>
Merge pull request #11659 from koic/fix_incorrect_autocorrect_for_lint_or_assignment_to_constant

Fix an incorrect autocorrect for `Lint/OrAssignmentToConstant`

7f96a01f0bdc13bd9fe5aafb8a5ca7c1ed7d7ca3 authored almost 2 years ago by Koichi ITO <[email protected]>
Merge pull request #11659 from koic/fix_incorrect_autocorrect_for_lint_or_assignment_to_constant

Fix an incorrect autocorrect for `Lint/OrAssignmentToConstant`

7f96a01f0bdc13bd9fe5aafb8a5ca7c1ed7d7ca3 authored almost 2 years ago by Koichi ITO <[email protected]>
Fix an incorrect autocorrect for `Lint/OrAssignmentToConstant`

This PR fixes the following incorrect autocorrect for `Lint/OrAssignmentToConstant`
when using o...

1f4b6b499fc0cfa82ec0386cc6c023c070b2bf37 authored almost 2 years ago by Koichi ITO <[email protected]>
Fix an incorrect autocorrect for `Lint/OrAssignmentToConstant`

This PR fixes the following incorrect autocorrect for `Lint/OrAssignmentToConstant`
when using o...

1f4b6b499fc0cfa82ec0386cc6c023c070b2bf37 authored almost 2 years ago by Koichi ITO <[email protected]>
Support `MinBranchesCount` config for `Style/CaseLikeIf` cop

046cc54529c1db6da5431aa7634d17b88353b3e0 authored almost 2 years ago by fatkodima <[email protected]>
Support `MinBranchesCount` config for `Style/CaseLikeIf` cop

046cc54529c1db6da5431aa7634d17b88353b3e0 authored almost 2 years ago by fatkodima <[email protected]>
[Fix #11482] Avoid comment deletion by `Style/IfUnlessModifier` when the modifier form expression has long comment

Update lib/rubocop/cop/style/if_unless_modifier.rb

Co-authored-by: Koichi ITO <[email protected]>

d0e84e2207cbae33ef8fc0fda3c2de3c99e5424e authored almost 2 years ago by nobuyo <[email protected]>
[Fix #11482] Avoid comment deletion by `Style/IfUnlessModifier` when the modifier form expression has long comment

Update lib/rubocop/cop/style/if_unless_modifier.rb

Co-authored-by: Koichi ITO <[email protected]>

d0e84e2207cbae33ef8fc0fda3c2de3c99e5424e authored almost 2 years ago by nobuyo <[email protected]>
Fix a false negative for `Lint/MissingSuper`

Follow part of https://github.com/rubocop/rubocop/pull/11619#issuecomment-1452021939.

This PR f...

b0f608a55d8112e4523bb9e18cd6006618812a24 authored almost 2 years ago by Koichi ITO <[email protected]>
Fix a false negative for `Lint/MissingSuper`

Follow part of https://github.com/rubocop/rubocop/pull/11619#issuecomment-1452021939.

This PR f...

b0f608a55d8112e4523bb9e18cd6006618812a24 authored almost 2 years ago by Koichi ITO <[email protected]>
Style/AccessorGrouping: Fix detection of Sorbet `sig {}` blocks

- Sorbet `sig { returns(Integer) }` annotations above `attr_reader`
methods should be ignored ...

008506d59f094140636269aa588e32fb69001018 authored almost 2 years ago by Issy Long <[email protected]>
Style/AccessorGrouping: Fix detection of Sorbet `sig {}` blocks

- Sorbet `sig { returns(Integer) }` annotations above `attr_reader`
methods should be ignored ...

008506d59f094140636269aa588e32fb69001018 authored almost 2 years ago by Issy Long <[email protected]>
Fix an error for `Style/IfWithBooleanLiteralBranches`

This PR fixes an error for `Style/IfWithBooleanLiteralBranches`
when using `()` as a condition.
...

0dafb08f2cc954657505cc036f66ae39440ab981 authored almost 2 years ago by Koichi ITO <[email protected]>
Fix an error for `Style/IfWithBooleanLiteralBranches`

This PR fixes an error for `Style/IfWithBooleanLiteralBranches`
when using `()` as a condition.
...

0dafb08f2cc954657505cc036f66ae39440ab981 authored almost 2 years ago by Koichi ITO <[email protected]>
Fix an error for `Style/NegatedIfElseCondition`

This PR fixes an error for `Style/NegatedIfElseCondition`
when using `()` as a condition.

```ru...

8aa887d6bd4a6e2044cf7c9eb34b79a483b89a43 authored almost 2 years ago by Koichi ITO <[email protected]>
Fix an error for `Style/NegatedIfElseCondition`

This PR fixes an error for `Style/NegatedIfElseCondition`
when using `()` as a condition.

```ru...

8aa887d6bd4a6e2044cf7c9eb34b79a483b89a43 authored almost 2 years ago by Koichi ITO <[email protected]>
Merge pull request #11643 from gsamokovarov/shorthand-syntax-in-kwargs

Fix incorrect shorthand autocorrections in calls inside parentheses

6a0d19513cf47362e1e451905767101fd4835170 authored almost 2 years ago by Koichi ITO <[email protected]>
Merge pull request #11643 from gsamokovarov/shorthand-syntax-in-kwargs

Fix incorrect shorthand autocorrections in calls inside parentheses

6a0d19513cf47362e1e451905767101fd4835170 authored almost 2 years ago by Koichi ITO <[email protected]>
Fix incorrect shorthand autocorrections in calls inside parentheses

If you happen to have a method call without parentheses that is inside
outer parentheses like th...

3d19dd46fa83312215de2bda35a29726584c2775 authored almost 2 years ago by Genadi Samokovarov <[email protected]>
Fix incorrect shorthand autocorrections in calls inside parentheses

If you happen to have a method call without parentheses that is inside
outer parentheses like th...

3d19dd46fa83312215de2bda35a29726584c2775 authored almost 2 years ago by Genadi Samokovarov <[email protected]>
Switch back the docs version

f4537a436c55e505b5f7549db0fa972d97c89f0e authored almost 2 years ago by Bozhidar Batsov <[email protected]>
Switch back the docs version

f4537a436c55e505b5f7549db0fa972d97c89f0e authored almost 2 years ago by Bozhidar Batsov <[email protected]>
Cut 1.47

94f743da70ad0d7e423d6c14d8185dcfefd024a2 authored almost 2 years ago by Bozhidar Batsov <[email protected]>
Cut 1.47

94f743da70ad0d7e423d6c14d8185dcfefd024a2 authored almost 2 years ago by Bozhidar Batsov <[email protected]>
Update Changelog

9af59998b22fcafb018fb5e31267b19b1e3cbf8e authored almost 2 years ago by Bozhidar Batsov <[email protected]>