Class: ERBLint::Linters::IncludeFragmentComponentMigrationCounter
- Inherits:
-
BaseLinter
- Object
- Linter
- BaseLinter
- ERBLint::Linters::IncludeFragmentComponentMigrationCounter
- Includes:
- Autocorrectable
- Defined in:
- lib/primer/view_components/linters/include_fragment_component_migration_counter.rb
Overview
Counts the number of times a HTML include-fragment is used instead of the component.
Constant Summary collapse
- TAGS =
%w[include-fragment].freeze
- REQUIRED_ARGUMENTS =
[].freeze
- MESSAGE =
"We are migrating include-fragment to use [Primer::Alpha::IncludeFragment](https://primer.style/view-components/lookbook/inspect/primer/alpha/include_fragment/default), please try to use that instead of raw HTML."
- ARGUMENT_MAPPER =
ArgumentMappers::IncludeFragment
- COMPONENT =
"Primer::Alpha::IncludeFragment"
Constants inherited from BaseLinter
BaseLinter::CLASSES, BaseLinter::DISALLOWED_CLASSES, BaseLinter::DUMP_FILE
Constants included from TagTreeHelpers
TagTreeHelpers::SELF_CLOSING_TAGS
Method Summary
Methods included from Autocorrectable
#correction, #map_arguments, #message
Methods inherited from BaseLinter
Methods included from Helpers::RuleHelpers
#erb_nodes, #extract_ruby_from_erb_node, #generate_node_offense, #generate_offense, #tags