11# This configuration was generated by
2- # `rubocop --auto-gen-config`
3- # on 2022-01-26 19:45:20 UTC using RuboCop version 1.11.0 .
2+ # `rubocop --auto-gen-config --exclude-limit 50 `
3+ # on 2026-03-20 18:54:21 UTC using RuboCop version 1.84.2 .
44# The point is for the user to remove these configuration records
55# one by one as the offenses are removed from the code base.
66# Note that changes in the inspected code, or installation of new
77# versions of RuboCop, may require this file to be generated again.
88
99# Offense count: 1
10- # Configuration parameters: Include.
11- # Include: **/*.gemspec
12- Gemspec/RequiredRubyVersion :
10+ # Configuration parameters: AllowComments, AllowEmptyLambdas.
11+ Lint/EmptyBlock :
1312 Exclude :
14- - ' rouge.gemspec'
15-
16- # Offense count: 8
17- # Configuration parameters: AllowedMethods.
18- # AllowedMethods: enums
19- Lint/ConstantDefinitionInBlock :
20- Exclude :
21- - ' spec/formatters/html_spec.rb'
22- - ' spec/lexer_spec.rb'
23- - ' spec/theme_spec.rb'
24-
25- # Offense count: 27
26- Lint/MissingSuper :
27- Enabled : false
28-
29- # Offense count: 2
30- Lint/MixedRegexpCaptureTypes :
31- Exclude :
32- - ' lib/rouge/lexers/elixir.rb'
33- - ' lib/rouge/lexers/lasso.rb'
13+ - ' lib/rouge/lexers/nix.rb'
3414
3515# Offense count: 4
36- Lint/NestedPercentLiteral :
37- Exclude :
38- - ' lib/rouge/lexers/hylang.rb'
39- - ' lib/rouge/lexers/janet.rb'
40- - ' lib/rouge/lexers/powershell.rb'
41- - ' spec/lexers/j_spec.rb'
42-
43- # Offense count: 1
44- # Cop supports --auto-correct.
45- Lint/NonDeterministicRequireOrder :
46- Exclude :
47- - ' spec/spec_helper.rb'
48-
49- # Offense count: 1
50- Lint/OutOfRangeRegexpRef :
51- Exclude :
52- - ' lib/rouge/tex_theme_renderer.rb'
53-
54- # Offense count: 2
55- # Cop supports --auto-correct.
56- # Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
57- Lint/UselessAccessModifier :
58- Exclude :
59- - ' lib/rouge/cli.rb'
60-
61- # Offense count: 1
62- Naming/AccessorMethodName :
63- Exclude :
64- - ' lib/rouge/theme.rb'
65-
66- # Offense count: 43
6716Naming/ConstantName :
6817 Exclude :
6918 - ' lib/rouge/lexers/eiffel.rb'
70- - ' lib/rouge/themes/gruvbox.rb'
71-
72- # Offense count: 21
73- # Cop supports --auto-correct.
74- # Configuration parameters: EnforcedStyle.
75- # SupportedStyles: lowercase, uppercase
76- Naming/HeredocDelimiterCase :
77- Exclude :
78- - ' rouge.gemspec'
79- - ' spec/lexers/diff_spec.rb'
80- - ' spec/lexers/haml_spec.rb'
81- - ' spec/lexers/html_spec.rb'
82- - ' spec/lexers/mason_spec.rb'
83- - ' spec/lexers/matlab_spec.rb'
84- - ' spec/lexers/shell_spec.rb'
85- - ' spec/plugins/redcarpet_spec.rb'
86- - ' spec/theme_spec.rb'
87- - ' spec/visual_spec.rb'
88-
89- # Offense count: 4
90- # Configuration parameters: ForbiddenDelimiters.
91- # ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
92- Naming/HeredocDelimiterNaming :
93- Exclude :
94- - ' lib/rouge/tex_theme_renderer.rb'
95- - ' spec/lexers/swift_spec.rb'
9619
97- # Offense count: 8
20+ # Offense count: 5
21+ # This cop supports unsafe autocorrection (--autocorrect-all).
9822# Configuration parameters: EnforcedStyleForLeadingUnderscores.
9923# SupportedStylesForLeadingUnderscores: disallowed, required, optional
10024Naming/MemoizedInstanceVariableName :
@@ -104,24 +28,18 @@ Naming/MemoizedInstanceVariableName:
10428 - ' lib/rouge/lexers/hack.rb'
10529 - ' lib/rouge/lexers/python.rb'
10630 - ' lib/rouge/lexers/verilog.rb'
107- - ' lib/rouge/lexers/yang.rb'
10831
10932# Offense count: 16
110- # Configuration parameters: EnforcedStyle, IgnoredPatterns .
33+ # Configuration parameters: EnforcedStyle, AllowedPatterns, ForbiddenIdentifiers, ForbiddenPatterns .
11134# SupportedStyles: snake_case, camelCase
35+ # ForbiddenIdentifiers: __id__, __send__
11236Naming/MethodName :
11337 Exclude :
11438 - ' lib/rouge/lexers/igorpro.rb'
11539 - ' lib/rouge/lexers/xpath.rb'
11640
117- # Offense count: 68
118- # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
119- # AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
120- Naming/MethodParameterName :
121- Enabled : false
122-
12341# Offense count: 40
124- # Configuration parameters: EnforcedStyle, AllowedIdentifiers.
42+ # Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns, ForbiddenIdentifiers, ForbiddenPatterns .
12543# SupportedStyles: snake_case, camelCase
12644Naming/VariableName :
12745 Exclude :
@@ -132,11 +50,73 @@ Naming/VariableName:
13250 - ' lib/rouge/lexers/kotlin.rb'
13351 - ' lib/rouge/lexers/xpath.rb'
13452
135- # Offense count: 5
136- # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers.
137- # SupportedStyles: snake_case, normalcase, non_integer
138- # AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
139- Naming/VariableNumber :
53+ # Offense count: 2
54+ # This cop supports unsafe autocorrection (--autocorrect-all).
55+ Performance/StringInclude :
14056 Exclude :
141- - ' lib/rouge/lexers/c.rb'
142- - ' lib/rouge/themes/gruvbox.rb'
57+ - ' lib/rouge/lexers/hack.rb'
58+
59+ # Offense count: 113
60+ Rouge/NoBuildingAlternationPatternInRegexp :
61+ Exclude :
62+ - ' lib/rouge/lexers/apple_script.rb'
63+ - ' lib/rouge/lexers/armasm.rb'
64+ - ' lib/rouge/lexers/bbcbasic.rb'
65+ - ' lib/rouge/lexers/bicep.rb'
66+ - ' lib/rouge/lexers/cfscript.rb'
67+ - ' lib/rouge/lexers/cmhg.rb'
68+ - ' lib/rouge/lexers/console.rb'
69+ - ' lib/rouge/lexers/crystal.rb'
70+ - ' lib/rouge/lexers/csharp.rb'
71+ - ' lib/rouge/lexers/d.rb'
72+ - ' lib/rouge/lexers/dart.rb'
73+ - ' lib/rouge/lexers/eiffel.rb'
74+ - ' lib/rouge/lexers/elm.rb'
75+ - ' lib/rouge/lexers/erlang.rb'
76+ - ' lib/rouge/lexers/haskell.rb'
77+ - ' lib/rouge/lexers/http.rb'
78+ - ' lib/rouge/lexers/idris.rb'
79+ - ' lib/rouge/lexers/isabelle.rb'
80+ - ' lib/rouge/lexers/java.rb'
81+ - ' lib/rouge/lexers/jsp.rb'
82+ - ' lib/rouge/lexers/kotlin.rb'
83+ - ' lib/rouge/lexers/lean.rb'
84+ - ' lib/rouge/lexers/magik.rb'
85+ - ' lib/rouge/lexers/make.rb'
86+ - ' lib/rouge/lexers/mason.rb'
87+ - ' lib/rouge/lexers/mosel.rb'
88+ - ' lib/rouge/lexers/nix.rb'
89+ - ' lib/rouge/lexers/p4.rb'
90+ - ' lib/rouge/lexers/pascal.rb'
91+ - ' lib/rouge/lexers/perl.rb'
92+ - ' lib/rouge/lexers/postscript.rb'
93+ - ' lib/rouge/lexers/python.rb'
94+ - ' lib/rouge/lexers/r.rb'
95+ - ' lib/rouge/lexers/rust.rb'
96+ - ' lib/rouge/lexers/scala.rb'
97+ - ' lib/rouge/lexers/sml.rb'
98+ - ' lib/rouge/lexers/stata.rb'
99+ - ' lib/rouge/lexers/vala.rb'
100+ - ' lib/rouge/lexers/wollok.rb'
101+ - ' lib/rouge/lexers/xojo.rb'
102+
103+ # Offense count: 20
104+ Rouge/NoHugeCollections :
105+ Exclude :
106+ - ' lib/rouge/lexers/abap.rb'
107+ - ' lib/rouge/lexers/apple_script.rb'
108+ - ' lib/rouge/lexers/cobol.rb'
109+ - ' lib/rouge/lexers/common_lisp.rb'
110+ - ' lib/rouge/lexers/css.rb'
111+ - ' lib/rouge/lexers/datastudio.rb'
112+ - ' lib/rouge/lexers/freefem.rb'
113+ - ' lib/rouge/lexers/hql.rb'
114+ - ' lib/rouge/lexers/idlang.rb'
115+ - ' lib/rouge/lexers/igorpro.rb'
116+ - ' lib/rouge/lexers/janet.rb'
117+ - ' lib/rouge/lexers/openedge.rb'
118+ - ' lib/rouge/lexers/plsql.rb'
119+ - ' lib/rouge/lexers/racket.rb'
120+ - ' lib/rouge/lexers/sas.rb'
121+ - ' lib/rouge/lexers/sql.rb'
122+ - ' lib/rouge/lexers/stata.rb'
0 commit comments