summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2025-04-11 10:19:05 +0000
committerGo MAEDA <maeda@farend.jp>2025-04-11 10:19:05 +0000
commit065a44749d03bcf4b3ebe0b153aed74fa90db506 (patch)
tree201ac6c0d007f8f5da36085fda31a1e7c046bfd1
parent626bd9efe2b97e9af0be6a3dee3be7c3a8cb0339 (diff)
downloadredmine-065a44749d03bcf4b3ebe0b153aed74fa90db506.tar.gz
redmine-065a44749d03bcf4b3ebe0b153aed74fa90db506.zip
Fix RuboCop Lint/UselessConstantScoping (#41884).
git-svn-id: https://svn.redmine.org/redmine/trunk@23635 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--lib/redmine/syntax_highlighting.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/redmine/syntax_highlighting.rb b/lib/redmine/syntax_highlighting.rb
index b5785f837..9ae5fed44 100644
--- a/lib/redmine/syntax_highlighting.rb
+++ b/lib/redmine/syntax_highlighting.rb
@@ -125,6 +125,7 @@ module Redmine
'java_script' => 'javascript',
'xhtml' => 'html'
}
+ private_constant :LANG_ALIASES
def find_lexer(language)
::Rouge::Lexer.find(language) ||