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

Add support for `InternalAffairs/ExampleDescription` when using "registers no offense"

1973badb1ca23c4419e88977ee60dac8acd2bbe8 authored 10 months ago by ydah <[email protected]>
Use 'registers no offense' instead of 'register no offense'

134f4b0fb1f93d6631a2bb3b38d6188bbe4e0406 authored 10 months ago by ydah <[email protected]>
[Fix #12721] Add `DebuggerRequires` to `Lint/Debugger`

I debated adding requires like `debug` or `pry` but believe that would
do more harm than good.
R...

b403be817bea3009463c37711891243413e42c8e authored 10 months ago by Earlopain <[email protected]>
Fix a description of example for `Lint/UselessTimes`

93cddecec5025fd3ef80c3accd388c294a292351 authored 10 months ago by ydah <[email protected]>
Reset the docs version

0c36dc6d27a653167dc02497298b55218dae1d44 authored 10 months ago by Bozhidar Batsov <[email protected]>
Cut 1.62.1

ed9b69edae0f69771e41de24d6f9cdef6ab03482 authored 10 months ago by Bozhidar Batsov <[email protected]>
Update Changelog

a99fe78dd58b4fe8514cc8e765df70ab0772c3a9 authored 10 months ago by Bozhidar Batsov <[email protected]>
Fix an error for `Lint/UselessTimes` when no block is present

eceedb713aaba2fcf133943b67f924e3748633e8 authored 10 months ago by Earlopain <[email protected]>
Fix an infinite loop for `Style/RaiseArgs` with `EnforcedStyle: compact` when passing than 2 arguments to `raise`

The following test caused the loop: https://github.com/rubocop/rubocop/blob/5ee786dcadfa3c91096d...

8d2ef482fe6eb1163b15d4d6f4d7cdd643cfd24c authored 10 months ago by Earlopain <[email protected]>
Merge pull request #12771 from Earlopain/node-matcher-directive-followup

Fix a wrong offense message for `InternalAffairs/NodeMatcherDirective`

bb0dd97894f2b87d16fdbad379cb08cb2402b1d9 authored 10 months ago by Koichi ITO <[email protected]>
Merge pull request #12773 from Earlopain/fix-error-for-style-for

Fix an error for `Style/For` with `EnforcedStyle: for` when no receiver

9b39a559883b6b682bfb85a92178f4fe95d841d5 authored 10 months ago by Koichi ITO <[email protected]>
Merge pull request #12772 from Earlopain/fix-error-for-style-class-vars

Fix an error for `Style/ClassVars` when calling `class_variable_set` without arguments

409c5a04096c635e079d327f65f896ccc9a4edfe authored 10 months ago by Koichi ITO <[email protected]>
Fix an error for `Style/For` with `EnforcedStyle: for` when no receiver

54dbee1ba10cb48e2fa0a4f701a7cefc6a7f66e4 authored 10 months ago by Earlopain <[email protected]>
Fix an error for `Style/ClassVars` when calling `class_variable_set` without arguments

94c17b839821116249f0941844531755e8a501d7 authored 10 months ago by Earlopain <[email protected]>
Merge pull request #12770 from Earlopain/fix-an-error-for-lint-redundant-with-index

Fix an error for `Lint/RedundantWithIndex` when there is no receiver

5ee786dcadfa3c91096d9e81dcd16e4776ca6186 authored 10 months ago by Koichi ITO <[email protected]>
Merge pull request #12768 from Earlopain/fix-false-positive-for-style-nil-comparison

Fix a false positive for `Style/NilComparison` without receiver and `EnforcedStyle: comparison`

1281bf02180b508c3b30031abeacf77451da5cb2 authored 10 months ago by Koichi ITO <[email protected]>
Fix a wrong offense message for `InternalAffairs/NodeMatcherDirective`

See https://github.com/rubocop/rubocop/pull/12753#issuecomment-1987246707
The directive method n...

e49bf8a94631c0a54a82215a7a978967936d18c9 authored 10 months ago by Earlopain <[email protected]>
Fix a false positive for `Style/NilComparison` without receiver

aa97673a7eadbf47d76b4d5bfa1e3ef364160823 authored 10 months ago by Earlopain <[email protected]>
Fix an error for `Lint/RedundantWithIndex` when there is no receiver

42884eed8474ccac34667dc2669d28097658f907 authored 10 months ago by Earlopain <[email protected]>
Fix an infinite loop for `Style/MultilineMethodSignature` when line break after def

This commit removes this exit condition from `expect_correction`. It is now only considered done...

55cbc7f5ebff4bcbf5d28b86a9b817b4a8f10498 authored 10 months ago by Earlopain <[email protected]>
Merge pull request #12765 from Earlopain/fix-an-error-for-layout-multiline-method-call-indentation

Fix an error for `Layout/MultilineMethodCallIndentation` with safe navigation and assignment method

ca8b38ce3cfcebd2c23da6663357c0ba3b77b010 authored 10 months ago by Koichi ITO <[email protected]>
Merge pull request #12764 from Earlopain/false-negative-for-layout-empty-line-after-magic-comment

[Fix #12710] Fix a false negative for `Layout/EmptyLineAfterMagicComment` when the file is comme...

167bad937a3d79758ee1444735792c6b91f45b97 authored 10 months ago by Koichi ITO <[email protected]>
Fix an error for `Layout/MultilineMethodCallIndentation` with safe navigation and assignment method

0ef0e31fcf34818adcf820d9ee68b5d5894dd2f7 authored 10 months ago by Earlopain <[email protected]>
[Fix #12710] Fix a false negative for `Layout/EmptyLineAfterMagicComment` when the file is comments only

5fb6047d8e0e87d369a558694e2611f9b3ac491d authored 10 months ago by Earlopain <[email protected]>
[Docs] Tweak the Prism docs

a1c67b34c03b557ba778b694d572f1e13183cdce authored 10 months ago by Bozhidar Batsov <[email protected]>
[Fix #12758] Fix false positives for `Layout/RedundantLineBreak`

Fixes #12758.

This PR fixes false positives for `Layout/RedundantLineBreak`
when using `&&` or ...

890e225ca91216e6f3fc90efb3413b9390c82235 authored 10 months ago by Koichi ITO <[email protected]>
Merge pull request #12760 from Earlopain/fix-12663

[Fix #12663] Prevent `Lint/Syntax` being disabled by directive comments

5a4664c26da3a7a9b5ca94f23765f70393381892 authored 10 months ago by Koichi ITO <[email protected]>
[Fix #12761] Fix a false positive for `Style/HashEachMethods`

Fixes #12761.

This PR fixes a false positive for `Style/HashEachMethods`
when the key block arg...

2ec75fad36bea73000608d90adfc3c0eeaaae448 authored 10 months ago by Koichi ITO <[email protected]>
Merge pull request #12753 from Earlopain/fix-12665

[Fix #12665] Fix infinite loop for `InternalAffairs/NodeMatcherDirective` with class methods

6d39e70cee02806bc10e3054564a0326901109b1 authored 10 months ago by Koichi ITO <[email protected]>
[Fix #12665] Fix infinite loop for `InternalAffairs/NodeMatcherDirective` with class methods

6f003738e8b8e6990016d103f613e0cd59ac9807 authored 10 months ago by Earlopain <[email protected]>
[Fix #12663] Prevent `Lint/Syntax` being disabled by directive comments

This would swallow the syntax error, making it look like the file is all good.
In reality all ot...

e5d86464b663530e92ee6acd2639652cde7c5442 authored 10 months ago by Earlopain <[email protected]>
Fix an incorrect issue number of Prism

bf029b0af6f6cf238712e9ee2a6a24072a6ce597 authored 10 months ago by Koichi ITO <[email protected]>
[Docs] Expand a bit the history section

1c99f9f44e0dbac366baac858589abf71ad5aef5 authored 10 months ago by Bozhidar Batsov <[email protected]>
Skip `LineLength` phase on `--auto-gen-only-exclude`

Phase 1 of config auto-generation runs the `Layout/LineLength` cop on
all files to discover the ...

50a45b01f1d4a8ef22e8bd6b265566d4012d537d authored 10 months ago by Sam Bostock <[email protected]>
Only parse target Ruby from gemspec if array elements are strings

This fixes an issue mentioned in [this
comment](https://github.com/rubocop/rubocop/issues/12579#...

c1e988142c17786e5305c41a72e1ac4da805b3bd authored 10 months ago by David Runger <[email protected]>
Expand configuration docs re: finding target Ruby in *.gemspec file

72a72cc09c7390460e0b40da59cb12b9811d5323 authored 10 months ago by David Runger <[email protected]>
Merge pull request #12755 from viralpraxis/fix-redundant-current-directory-in-path-cop-failure-on-require-relative-without-arguments

Fix `RedundantCurrentDirectoryInPath` cop exception in case of `require_relative` without any ar...

abdbe1b9757ef978e52b82272744426892b1c423 authored 10 months ago by Koichi ITO <[email protected]>
Fix `RedundantCurrentDirectoryInPath` cop exception

Cop `RedundantCurrentDirectoryInPath` throws exception
upon encountering `requre_relative` invoc...

f8facdf438b40eedeeec149d5f55ef7e732b7c13 authored 10 months ago by viralpraxis <[email protected]>
Merge pull request #12752 from Earlopain/error-required-ruby-version

Fix an error for `Gemspec/RequiredRubyVersion` when the file is empty

6a4cf8132cf9112fa11d54ccb2bd4343fce6f8f6 authored 10 months ago by Koichi ITO <[email protected]>
Merge pull request #12751 from Earlopain/fix-12703

[Fix #12703] Fix an error for `Lint/MixedCaseRange` with invalid byte sequence in UTF-8

3118f00afdee52208b7e99f8f94bfa14a7cf4b4d authored 10 months ago by Koichi ITO <[email protected]>
Fix an error for `Gemspec/RequiredRubyVersion` when the file is empty

737f91219931e44d92e649ef678f569e9eb6dcb0 authored 10 months ago by Earlopain <[email protected]>
[Fix #12703] Fix an error for `Lint/MixedCaseRange` with invalid byte sequence in UTF-8

b3d3bb5f1770bd22e8a442034e2874a3eb2fa97b authored 10 months ago by Earlopain <[email protected]>
Switch back the docs version

af3bdeb28fed2e295d1c1a90eace412d161c45b3 authored 10 months ago by Bozhidar Batsov <[email protected]>
Cut 1.62

92785ddcf63c8bb6c3449e4183ebb21311a867c9 authored 10 months ago by Bozhidar Batsov <[email protected]>
Update Changelog

2d882c3f160fcbe2301b6b20716f1dada17e4d6c authored 10 months ago by Bozhidar Batsov <[email protected]>
[Fix #12746] Fix a false positive for `Lint/ToEnumArguments`

Fixes #12746.

This PR fixes a false positive for `Lint/ToEnumArguments`
when enumerator is crea...

c0582a4b194ff620af1a4644be43183720ea5fd0 authored 10 months ago by Koichi ITO <[email protected]>
Bump rubocop-rspec from ~> 2.27.0 to ~> 2.27.1

This should bust the gems cache and cause us to update from
rubocop-rspec 2.27.0 to 2.27.1 for C...

dea3b768caa6b3b8742516a52f34325110364e76 authored 10 months ago by David Runger <[email protected]>
Call .value to get gemspec required_ruby_version only if str_type?

This change avoids an exception (NoMethodError: undefined method `value'
for an instance of Rubo...

50263938f808bc1b373c3c099baa9309fc1ade48 authored 10 months ago by David Runger <[email protected]>
[Fix #12740] Tweak annotation pattern for `expect_offense`

Fixes #12740.

This PR tweaks annotation pattern for `expect_offense`.

When there is no space b...

07cad751e60a8f61a35943a8ccf7ae631ff4cfd2 authored 10 months ago by Koichi ITO <[email protected]>
Fix missing assertions in `RuboCop::TargetRuby` specs

859f6fdab61c38f13bf79c270306a10b9607dcef authored 10 months ago by Koichi ITO <[email protected]>
[Fix #12738] Fix an error for `Style/Encoding`

Fixees #12738.

This PR fixes an error for `Style/Encoding`
when magic encoding with mixed case ...

6674cc8c114d657fe2ddd20c80b3edfe21d17333 authored 10 months ago by Koichi ITO <[email protected]>
Refactor TargetFinder

Extract `without_excluded` from `process_explicit_path` to get
rid of the `Metrics/CyclomaticCom...

1a73d64eb1d9fc3b24e7b2b0d1ee4d598a9e883e authored 10 months ago by Jonas Arvidsson <[email protected]>
[Fix #12667] Avoid loading excluded configuration

This change fixes an error that can occur when file names are
given explicitly on the command li...

664ba3d4b0269d767cab85bca1b29f94bb1c2ff7 authored 10 months ago by Jonas Arvidsson <[email protected]>
Merge pull request #12735 from koic/use_parser_engine_parameter_to_parse_gemspec

Use `ParserEngine` parameter to parse gemspec

45cc74eb4b0256e987a6993614fccad272f54c89 authored 10 months ago by Koichi ITO <[email protected]>
Use `ParserEngine` parameter to parse gemspec

There was remaining code where `ParserEngine` parameter was not used by `ProcessedSource`,
and P...

6f3703e0fff59f9608bb2488039f63963362cf5a authored 10 months ago by Koichi ITO <[email protected]>
Merge pull request #12737 from rubocop/fix-space-inside-hash-literal-braces

Fix invalid autocorrect in Layout/SpaceInsideHashLiteralBraces

6d4d87ab31bd100e63aacb8ff7c72cd1803581bd authored 10 months ago by Koichi ITO <[email protected]>
Fix build

A new version of RuboCop-RSpec seems to have been installed.

da20a4166ebed3b9948dda19dc508fba122edddc authored 10 months ago by Benjamin Quorning <[email protected]>
[Fix #12736] Fix invalid autocorrect in Layout/SpaceInsideHashLiteralBraces

7127a1b3b27afe90cef3243ee6efb78a597c952e authored 10 months ago by Benjamin Quorning <[email protected]>
Restore a spec of options_spec for Ruby 3.4.0dev

Reverts #12680.

#12680's issue has been resolved by https://github.com/ruby/optparse/commit/78a...

c1c320b273b687c5066739a310377c7a1f283d3e authored 10 months ago by Koichi ITO <[email protected]>
[Fix #12600] Support Prism as a Ruby parser

Resolves #12600.

This is the initial basic implementation to support multiple parser engines.
I...

c123b9622a1eacf711bbc7cf6372f75e281fe780 authored 10 months ago by Koichi ITO <[email protected]>
Merge pull request #12728 from koic/fix_a_false_positive_for_style_redundant_line_continuation

[Fix #12726] Fix a false positive for `Style/RedundantLineContinuation`

bebe435d911356f09bee49014f94f2da86ff4874 authored 10 months ago by Koichi ITO <[email protected]>
Use RuboCop RSpec to 2.27

This PR uses RuboCop RSpec to 2.27 and suppresses
new `RSpec/DescribedClass` and `RSpec/Repeated...

2722d29fd127dbc0ff59e57ae88dd20335d11c96 authored 10 months ago by Koichi ITO <[email protected]>
[Fix #12726] Fix a false positive for `Style/RedundantLineContinuation`

Fixes #12726.

This PR fixes a false positive for `Style/RedundantLineContinuation`
when using l...

ebd7815a2a9117b4fd02c54c47539ad3e47b0c4e authored 10 months ago by Koichi ITO <[email protected]>
Support `TargetRubyVersion 3.4` (experimental)

RuboCop AST 1.31 supports Ruby 3.4.
https://github.com/rubocop/rubocop-ast/pull/276

This PR sup...

90b4283300382eb9647d7608d33f9efca5bcdfb5 authored 10 months ago by Koichi ITO <[email protected]>
Switch back the docs version

461a4c9da591bb53f1182484b0179fc527de7878 authored 10 months ago by Bozhidar Batsov <[email protected]>
Cut 1.61

45ba7790b3c6fc37c0b83693513c4dadd619d1ed authored 10 months ago by Bozhidar Batsov <[email protected]>
Update Changelog

0882ca91f7a73ca0eca34759908730fdf477eaa0 authored 10 months ago by Bozhidar Batsov <[email protected]>
Rename variable in InvertibleUnlessCondition

This change was meant to be in #12711.

87b3b4db9f1a315f30316c2b45547b531d1e5ab8 authored 10 months ago by Sam Bostock <[email protected]>
Add InvertibleUnlessCondition implicit receiver example

This change was meant to be in #12711.

f15152468c627794a839c7c12ae37766199d664f authored 10 months ago by Sam Bostock <[email protected]>
Tweak specs for `Security/YAMLLoad`

Follow https://github.com/rubocop/rubocop/pull/10424.

Ruby 3.1+ (Psych 4) uses `Psych.load` as ...

8acce2851bbd59d44a18becf2bc919cd26b49db2 authored 10 months ago by Koichi ITO <[email protected]>
Merge pull request #12723 from koic/add_specs_for_style_arguments_forwarding

Add specs for `Style/ArgumentsForwarding`

b4cc30544e8349054b27ffbb0108aa0bfe5c4747 authored 10 months ago by Koichi ITO <[email protected]>
Add specs for `Style/ArgumentsForwarding`

This PR adds specs for `Style/ArgumentsForwarding`, which adds missing tests due to
the incorrec...

bac7a0ba6cf536460ee3d6efe69a1f4eb057ba0e authored 10 months ago by Koichi ITO <[email protected]>
Handle implicit receivers in `Style/InvertibleUnlessCondition`

Previously, we would attempt to call `node.receiver.source`, but
`node.receiver` could be `nil`....

5da1905ce6b7896f661a36e15d7a2acbe88ea627 authored 10 months ago by Sam Bostock <[email protected]>
[Fix #12717] Re-use definition of directive comments from Style/CommentedKeyword

To make sure we don't have a different, more strict definition of what
constitutes a rubocop:dis...

18004e94181c3bcf8467622eed72b4d50171d975 authored 10 months ago by Jonas Arvidsson <[email protected]>
Fix a false positive for `Style/ArgumentsForwarding`

This PR fixes a false positive for `Style/ArgumentsForwarding`
when using block arg forwarding t...

8aae48b6ae4423e42af35318ce9cd64dbf3f0ddf authored 10 months ago by Koichi ITO <[email protected]>
Fix false negatives for `Style/ArgumentsForwarding`

This PR fixes false negatives for `Style/ArgumentsForwarding`
when using forwardable block argum...

675821804945ea0c52a32f3171097f9ee18e905f authored 10 months ago by Koichi ITO <[email protected]>
Tweak specs for `Style/HashExcept`

Test code expected to work with `TargetRubyVersion: 3.0` was being run with `TargetRubyVersion: ...

b29ff483b8d97525c92bc8712dae606cbac07ba3 authored 10 months ago by Koichi ITO <[email protected]>
[Fix #12714] Fix an error for `Gemspec/RequiredRubyVersion`

Fixes #12714.

This PR fixes an error for `Gemspec/RequiredRubyVersion`
when `required_ruby_vers...

60c1f8ada320ff19658384d9ae37784f55dc8d12 authored 10 months ago by Koichi ITO <[email protected]>
Twaeak specs for `Style/QuotedSymbols`

The intention of the tests requires quoting the heredoc identifier.

029984ac1c5b49889fbc38e0dfabac702a9f57ec authored 10 months ago by Koichi ITO <[email protected]>
Tweak a spec for `Layout/SpaceAroundKeyword`

`a 1,next,1` has been a syntax error since at least Ruby 2.0:

```console
$ ruby -vce 'a 1,next,...

af9f973a5edc907b4d224b35d23bf441ffb5d85f authored 10 months ago by Koichi ITO <[email protected]>
Fixes broken test due to line breaks and spaces

ee6f0f980cfd5a8e927775a49d5ac0bc088ee9d3 authored 10 months ago by Karl Heitmann <[email protected]>
Splits output.html.erb into html and css to get rid of TODO

8c4f8098021a2a5dfc06ee136cc89da4e94576e2 authored 10 months ago by Karl Heitmann <[email protected]>
Refactor to improve metrics

The provious commit introduced `Metrics/MethodLength` and `Metrics/AbcSize`
offenses. Extract a ...

7f02cc7149cc3bdd070a5d812749056383479346 authored 10 months ago by Jonas Arvidsson <[email protected]>
[Fix #12646] Handle opposite styles for Layout/SpaceBeforeBlockBraces

The `Layout/SpaceBeforeBlockBraces` cop has two separate style parameters,
`EnforcedStyle` and `...

f82012a91ce1563bb0a6a11637dbbf61f807275d authored 10 months ago by Jonas Arvidsson <[email protected]>
Merge pull request #12712 from rubocop/jonas054-patch-1

Fix spelling

98ad0452913bff00cbfe960c84e05a581899ad6e authored 10 months ago by Jonas Arvidsson <[email protected]>
Fix spelling

A spelling mistake that I made. The change was already merged when I was made aware of it.

df79916c5fddf89005a49ee149ce1767da4d25b6 authored 10 months ago by Jonas Arvidsson <[email protected]>
Tweak specs for `Naming/VariableNumber`

`_1 = 1` is a deprecated valid syntax in Ruby 2.7, but an invalid syntax in Ruby 3.0+.

## Ruby ...

087cafa4803977a29888ae29a0c75b2de4d37a0f authored 10 months ago by Koichi ITO <[email protected]>
Merge pull request #12708 from jonas054/12695_fix_include_bug

[Fix #12695] Handle Include from inherited file in parent directory

32467d4c04e92139f530eb8aac82d41497aa9537 authored 10 months ago by Koichi ITO <[email protected]>
[Fix #12695] Handle `Include` from inherited file in parent directory

When we inherit configuration from a file in a parent or ancestor
directory, and that file is ca...

36370f2ab7f636141d6475761e8db1e4d092b36a authored 10 months ago by Jonas Arvidsson <[email protected]>
Merge pull request #12707 from koic/fix_false_negative_for_style_redundant_assignment

Fix false negative for `Style/RedundantAssignment`

4c5fce158f86728644671d73b9ddf21cde74ee46 authored 10 months ago by Koichi ITO <[email protected]>
Fix false negative for `Style/RedundantAssignment`

This PR fixes false negative for `Style/RedundantAssignment`
when using pattern matching.

604ed2bfd0d83e00e60d9b3a6d8d27864f97afe3 authored 10 months ago by Koichi ITO <[email protected]>
[Docs] Tweak the doc for `Style/ConditionalAssignmentHelper`

This PR tweaks the doc for `Style/ConditionalAssignmentHelper`.
In #2480, the cop has been updat...

2a864701d66808b93d57095a5d2fe503b1b21e4c authored 10 months ago by Koichi ITO <[email protected]>
Tweak offense range for `Lint/RedundantSafeNavigation`

1d4303567c58161335bf6729e5e0c3aa4f1e1a6c authored 10 months ago by Koichi ITO <[email protected]>
Support autocorrect for `InternalAffairs/MethodNameEndWith`

1666278a8587bb9982fcdb198c1395fd9af93f50 authored 10 months ago by Koichi ITO <[email protected]>
[Docs] Add `--display-time` to the Basic Usage doc

876a49d6fb3e0060c734eb40cd6660adf63cf77e authored 10 months ago by Koichi ITO <[email protected]>
Support searching for `rubocop/config.yml` in compliance with dot-config

Follow https://github.com/rubocop/rubocop/pull/12700#issuecomment-1949764386

This PR supports s...

2b013e123485102a790e44fc0b934aae1c625f6a authored 10 months ago by Koichi ITO <[email protected]>
Fix false positives for `InternalAffairs/MethodNameEndWith`

This PR fixes false positives for `InternalAffairs/MethodNameEndWith`
when using `method_name` w...

4478266e98f326ea36e173977d4e1eb6643371cc authored 10 months ago by Koichi ITO <[email protected]>
Merge pull request #12697 from koic/fix_an_error_for_style_case_like_if

[Fix #12690] Fix an error for `Style/CaseLikeIf`

b5cccc7130920151e120b3a5d9b68ca825a5a8b4 authored 10 months ago by Koichi ITO <[email protected]>
[Fix #12699] Support searching for `.rubocop.yml` in compliance with dot-config

Resolves #12699

This PR supports searching for `.rubocop.yml` in compliance with dot-config.

[...

97467271431cf6db6a134b4398fe8f09db8bbb31 authored 10 months ago by Koichi ITO <[email protected]>