Class: ERBLint::Linters::RequireInputAutocomplete
- Inherits:
-
ERBLint::Linter
- Object
- ERBLint::Linter
- ERBLint::Linters::RequireInputAutocomplete
- Includes:
- ERBLint::LinterRegistry
- Defined in:
- lib/erb_lint/linters/require_input_autocomplete.rb
Constant Summary collapse
- HTML_INPUT_TYPES_REQUIRING_AUTOCOMPLETE =
[ "color", "date", "datetime-local", "email", "month", "number", "password", "range", "search", "tel", "text", "time", "url", "week", ].freeze
- FORM_HELPERS_REQUIRING_AUTOCOMPLETE =
[ :date_field_tag, :color_field_tag, :email_field_tag, :text_field_tag, :utf8_enforcer_tag, :month_field_tag, :number_field_tag, :password_field_tag, :search_field_tag, :telephone_field_tag, :time_field_tag, :url_field_tag, :week_field_tag, ].freeze
Constants included from ERBLint::LinterRegistry
ERBLint::LinterRegistry::CUSTOM_LINTERS_DIR
Instance Attribute Summary
Attributes inherited from ERBLint::Linter
Instance Method Summary collapse
Methods included from ERBLint::LinterRegistry
clear, find_by_name, included, linters, load_custom_linters
Methods inherited from ERBLint::Linter
#add_offense, #clear_offenses, #enabled?, #excludes_file?, inherited, #initialize, support_autocorrect?
Constructor Details
This class inherits a constructor from ERBLint::Linter
Instance Method Details
#run(processed_source) ⇒ Object
44 45 46 47 48 49 |
# File 'lib/erb_lint/linters/require_input_autocomplete.rb', line 44 def run(processed_source) parser = processed_source.parser (parser) (parser) end |