Fixed code quality issues (#15541)
* Added .deepsource.toml * Removed bad use of `alias` * Fixed operand order in the binary expression * Prefixed unused method arguments with an underscore * Replaced the old OpenSSL algorithmic constants with the newer strings initializers. * Removed unnecessary UTF-8 encoding comment
This commit is contained in:
parent
3efa0c54b6
commit
c8d11b8bdb
9 changed files with 26 additions and 10 deletions
|
@ -1,7 +1,7 @@
|
|||
# Use this setup block to configure all options available in SimpleForm.
|
||||
|
||||
module AppendComponent
|
||||
def append(wrapper_options = nil)
|
||||
def append(_wrapper_options = nil)
|
||||
@append ||= begin
|
||||
options[:append].to_s.html_safe if options[:append].present?
|
||||
end
|
||||
|
@ -9,7 +9,7 @@ module AppendComponent
|
|||
end
|
||||
|
||||
module RecommendedComponent
|
||||
def recommended(wrapper_options = nil)
|
||||
def recommended(_wrapper_options = nil)
|
||||
return unless options[:recommended]
|
||||
options[:label_text] = ->(raw_label_text, _required_label_text, _label_present) { safe_join([raw_label_text, ' ', content_tag(:span, I18n.t('simple_form.recommended'), class: 'recommended')]) }
|
||||
nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue