lib/haml_lint/configuration.rb
# Returns a non-modifiable configuration for the specified linter.
#
# @param linter [HamlLint::Linter,Class]
Returns a non-modifiable configuration for the specified linter.
Returns a non - modifiable configuration for the specified linter .
def for_linter(linter)
      linter_name =
        case linter
        when Class
          linter.name.split('::').last
        when HamlLint::Linter
          linter.name
        else
          linter.to_s
        end
      smart_merge(@hash['linters']['ALL'],
                  @hash['linters'].fetch(linter_name, {})).freeze
    end
def for_linter ( linter ) linter_name = case linter when Class linter . name . split ( '::' ) . last when HamlLint :: Linter linter . name else linter . to_s end smart_merge ( @hash [ 'linters' ] [ 'ALL' ] , @hash [ 'linters' ] . fetch ( linter_name , { } ) ) . freeze end
Returns a non-modifiable configuration for the specified linter.
Returns a non - modifiable configuration for the specified linter .
linter
None