Fix Rails/OutputSafety
cop from rubocop todo via inline disable (#34893)
This commit is contained in:
parent
efe8def0c6
commit
6d12831686
2 changed files with 2 additions and 6 deletions
|
@ -27,10 +27,6 @@ Metrics/CyclomaticComplexity:
|
||||||
Metrics/PerceivedComplexity:
|
Metrics/PerceivedComplexity:
|
||||||
Max: 27
|
Max: 27
|
||||||
|
|
||||||
Rails/OutputSafety:
|
|
||||||
Exclude:
|
|
||||||
- 'config/initializers/simple_form.rb'
|
|
||||||
|
|
||||||
# This cop supports safe autocorrection (--autocorrect).
|
# This cop supports safe autocorrection (--autocorrect).
|
||||||
# Configuration parameters: AllowedVars.
|
# Configuration parameters: AllowedVars.
|
||||||
Style/FetchEnvVar:
|
Style/FetchEnvVar:
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
module AppendComponent
|
module AppendComponent
|
||||||
def append(_wrapper_options = nil)
|
def append(_wrapper_options = nil)
|
||||||
@append ||= begin
|
@append ||= begin
|
||||||
options[:append].to_s.html_safe if options[:append].present?
|
options[:append].to_s.html_safe if options[:append].present? # rubocop:disable Rails/OutputSafety
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -24,7 +24,7 @@ end
|
||||||
module WarningHintComponent
|
module WarningHintComponent
|
||||||
def warning_hint(_wrapper_options = nil)
|
def warning_hint(_wrapper_options = nil)
|
||||||
@warning_hint ||= begin
|
@warning_hint ||= begin
|
||||||
options[:warning_hint].to_s.html_safe if options[:warning_hint].present?
|
options[:warning_hint].to_s.html_safe if options[:warning_hint].present? # rubocop:disable Rails/OutputSafety
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue