Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 73 additions & 9 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2026-02-26 22:49:47 UTC using RuboCop version 1.85.0.
# `rubocop --auto-gen-config --exclude-limit 50`
# on 2026-02-27 15:13:26 UTC using RuboCop version 1.85.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
Expand All @@ -15,10 +15,32 @@ Lint/ConstantDefinitionInBlock:
- 'spec/lexer_spec.rb'
- 'spec/theme_spec.rb'

# Offense count: 37
# Offense count: 38
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
Lint/DuplicateBranch:
Enabled: false
Exclude:
- 'lib/rouge/cli.rb'
- 'lib/rouge/lexers/apache.rb'
- 'lib/rouge/lexers/apex.rb'
- 'lib/rouge/lexers/batchfile.rb'
- 'lib/rouge/lexers/brightscript.rb'
- 'lib/rouge/lexers/common_lisp.rb'
- 'lib/rouge/lexers/coq.rb'
- 'lib/rouge/lexers/css.rb'
- 'lib/rouge/lexers/cython.rb'
- 'lib/rouge/lexers/ecl.rb'
- 'lib/rouge/lexers/idlang.rb'
- 'lib/rouge/lexers/llvm.rb'
- 'lib/rouge/lexers/php.rb'
- 'lib/rouge/lexers/python.rb'
- 'lib/rouge/lexers/robot_framework.rb'
- 'lib/rouge/lexers/ruby.rb'
- 'lib/rouge/lexers/sas.rb'
- 'lib/rouge/lexers/sqf.rb'
- 'lib/rouge/lexers/stan.rb'
- 'lib/rouge/lexers/varnish.rb'
- 'lib/rouge/lexers/viml.rb'
- 'lib/rouge/lexers/yang.rb'

# Offense count: 3
# Configuration parameters: AllowComments, AllowEmptyLambdas.
Expand All @@ -30,7 +52,28 @@ Lint/EmptyBlock:
# Offense count: 27
# Configuration parameters: AllowedParentClasses.
Lint/MissingSuper:
Enabled: false
Exclude:
- 'lib/rouge/cli.rb'
- 'lib/rouge/formatters/html_inline.rb'
- 'lib/rouge/formatters/html_legacy.rb'
- 'lib/rouge/formatters/html_line_highlighter.rb'
- 'lib/rouge/formatters/html_line_table.rb'
- 'lib/rouge/formatters/html_linewise.rb'
- 'lib/rouge/formatters/html_pygments.rb'
- 'lib/rouge/formatters/html_table.rb'
- 'lib/rouge/formatters/null.rb'
- 'lib/rouge/formatters/terminal256.rb'
- 'lib/rouge/formatters/tex.rb'
- 'lib/rouge/guesser.rb'
- 'lib/rouge/guessers/disambiguation.rb'
- 'lib/rouge/guessers/filename.rb'
- 'lib/rouge/guessers/glob_mapping.rb'
- 'lib/rouge/guessers/mimetype.rb'
- 'lib/rouge/guessers/modeline.rb'
- 'lib/rouge/guessers/source.rb'
- 'lib/rouge/regex_lexer.rb'
- 'lib/rouge/theme.rb'
- 'lib/rouge/util.rb'

# Offense count: 4
Lint/NestedPercentLiteral:
Expand Down Expand Up @@ -92,7 +135,30 @@ Naming/MethodName:
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
Naming/MethodParameterName:
Enabled: false
Exclude:
- 'lib/rouge.rb'
- 'lib/rouge/cli.rb'
- 'lib/rouge/formatter.rb'
- 'lib/rouge/formatters/html.rb'
- 'lib/rouge/formatters/html_legacy.rb'
- 'lib/rouge/formatters/html_line_table.rb'
- 'lib/rouge/formatters/html_linewise.rb'
- 'lib/rouge/formatters/html_pygments.rb'
- 'lib/rouge/formatters/html_table.rb'
- 'lib/rouge/formatters/null.rb'
- 'lib/rouge/formatters/terminal256.rb'
- 'lib/rouge/formatters/tex.rb'
- 'lib/rouge/guessers/disambiguation.rb'
- 'lib/rouge/lexer.rb'
- 'lib/rouge/lexers/coq.rb'
- 'lib/rouge/lexers/escape.rb'
- 'lib/rouge/lexers/plain_text.rb'
- 'lib/rouge/regex_lexer.rb'
- 'lib/rouge/tex_theme_renderer.rb'
- 'lib/rouge/theme.rb'
- 'lib/rouge/token.rb'
- 'lib/rouge/util.rb'
- 'spec/support/lexing.rb'

# Offense count: 40
# Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns, ForbiddenIdentifiers, ForbiddenPatterns.
Expand Down Expand Up @@ -121,7 +187,7 @@ Performance/StringInclude:
Exclude:
- 'lib/rouge/lexers/hack.rb'

# Offense count: 118
# Offense count: 113
Rouge/NoBuildingAlternationPatternInRegexp:
Exclude:
- 'lib/rouge/lexers/apple_script.rb'
Expand All @@ -141,7 +207,6 @@ Rouge/NoBuildingAlternationPatternInRegexp:
- 'lib/rouge/lexers/haskell.rb'
- 'lib/rouge/lexers/http.rb'
- 'lib/rouge/lexers/idris.rb'
- 'lib/rouge/lexers/idris.rb'
- 'lib/rouge/lexers/isabelle.rb'
- 'lib/rouge/lexers/java.rb'
- 'lib/rouge/lexers/jsp.rb'
Expand All @@ -150,7 +215,6 @@ Rouge/NoBuildingAlternationPatternInRegexp:
- 'lib/rouge/lexers/magik.rb'
- 'lib/rouge/lexers/make.rb'
- 'lib/rouge/lexers/mason.rb'
- 'lib/rouge/lexers/moonscript.rb'
- 'lib/rouge/lexers/mosel.rb'
- 'lib/rouge/lexers/nix.rb'
- 'lib/rouge/lexers/p4.rb'
Expand Down