File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
elastic_compat_preprocessor Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,6 @@ Metrics/PerceivedComplexity:
57
57
Style/HashSyntax :
58
58
Enabled : false
59
59
60
- Style/MutableConstant :
61
- Enabled : false
62
-
63
60
Style/NestedParenthesizedCalls :
64
61
Enabled : false
65
62
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class CopyImages < TreeProcessorScaffold
24
24
'added' => 'note' ,
25
25
'changed' => 'note' ,
26
26
'deleted' => 'warning' ,
27
- }
27
+ } . freeze
28
28
29
29
def initialize ( name )
30
30
super
Original file line number Diff line number Diff line change 92
92
class ElasticCompatPreprocessor < Asciidoctor ::Extensions ::Preprocessor
93
93
include Asciidoctor ::Logging
94
94
95
- INCLUDE_TAGGED_DIRECTIVE_RX = /^include-tagged::([^\[ ][^\[ ]*)\[ (#{ Asciidoctor ::CC_ANY } +)?\] $/
96
- SOURCE_WITH_SUBS_RX = /^\[ "source", ?"[^"]+", ?subs="(#{ Asciidoctor ::CC_ANY } +)"\] $/
97
- CODE_BLOCK_RX = /^-----*$/
95
+ INCLUDE_TAGGED_DIRECTIVE_RX = /^include-tagged::([^\[ ][^\[ ]*)\[ (#{ Asciidoctor ::CC_ANY } +)?\] $/ . freeze
96
+ SOURCE_WITH_SUBS_RX = /^\[ "source", ?"[^"]+", ?subs="(#{ Asciidoctor ::CC_ANY } +)"\] $/ . freeze
97
+ CODE_BLOCK_RX = /^-----*$/ . freeze
98
98
99
99
def process ( _document , reader )
100
100
reader . instance_variable_set :@in_attribute_only_block , false
You can’t perform that action at this time.
0 commit comments