def extract_enabled_linters(config, options)
      included_linters =
        LinterRegistry.extract_linters_from(options.fetch(:included_linters, []))

      included_linters = LinterRegistry.linters if included_linters.empty?

      excluded_linters =
        LinterRegistry.extract_linters_from(options.fetch(:excluded_linters, []))

      # After filtering out explicitly included/excluded linters, only include
      # linters which are enabled in the configuration
      linters = (included_linters - excluded_linters).map do |linter_class|
        linter_config = config.for_linter(linter_class)
        linter_class.new(linter_config) if linter_config['enabled']
      end.compact

      # Highlight condition where all linters were filtered out, as this was
      # likely a mistake on the user's part
      if linters.empty?
        raise HamlLint::Exceptions::NoLintersError, 'No linters specified'
      end

      linters
    end
def extract_enabled_linters(config, options)
      included_linters =
        LinterRegistry.extract_linters_from(options.fetch(:included_linters, []))

      included_linters = LinterRegistry.linters if included_linters.empty?

      excluded_linters =
        LinterRegistry.extract_linters_from(options.fetch(:excluded_linters, []))

      # After filtering out explicitly included/excluded linters, only include
      # linters which are enabled in the configuration
      linters = (included_linters - excluded_linters).map do |linter_class|
        linter_config = config.for_linter(linter_class)
        linter_class.new(linter_config) if linter_config['enabled']
      end.compact

      # Highlight condition where all linters were filtered out, as this was
      # likely a mistake on the user's part
      if linters.empty?
        raise HamlLint::Exceptions::NoLintersError, 'No linters specified'
      end

      linters
    end
Returns a list of linters that are enabled given the specified
 configuration and additional options.

 @param config [HamlLint::Configuration]
 @param options [Hash]
 @return [Array<HamlLint::Linter>]