You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A rather simple example that causes an infinite loop with several cops. The example is given with Metrics/MethodLength, but is also reproducible with Metrics/ClassLength, Metrics/AbcSize, Metrics/CyclomaticComplexity and Metrics/PerceivedComplexity. List is not exhaustive.
Steps to reproduce the problem
# .rubocop.ymlAllCops:
NewCops: enableMetrics/MethodLength:
Max: 2# just for demonstration
…ncorrectable` option
Fixesrubocop#12208.
This PR fixes an incorrect autocorrect for the `--disable-uncorrectable` command line option
when registering an offense is outside a percent array.
A rather simple example that causes an infinite loop with several cops. The example is given with
Metrics/MethodLength
, but is also reproducible withMetrics/ClassLength
,Metrics/AbcSize
,Metrics/CyclomaticComplexity
andMetrics/PerceivedComplexity
. List is not exhaustive.Steps to reproduce the problem
$ rubocop -A --disable-uncorrectable
Expected behavior
Actual behavior
Infinite loop detected in <the file>.rb and caused by Metrics/MethodLength
RuboCop version
The text was updated successfully, but these errors were encountered: