Class: GrammarLinter Abstract
- Inherits:
-
GrammarPlugin
- Object
- GrammarPlugin
- GrammarLinter
- Defined in:
- lib/ruby_grammar_builder/grammar_plugin.rb
Overview
This class is abstract.
Subclass and override #pre_lint and/or #post_lint to implement a linter
Direct Known Subclasses
FlatIncludes, IncludesThenTagAs, RunPatternTests, StandardNaming, StartMatchEmpty, UnusedUnresolvedLinter
Instance Method Summary collapse
-
#post_lint(grammar_hash) ⇒ Boolean
Runs the linter on the entire grammar.
-
#pre_lint(pattern, options = {}) ⇒ Boolean
Runs the linter on each pattern.
Methods inherited from GrammarPlugin
Instance Method Details
#post_lint(grammar_hash) ⇒ Boolean
Runs the linter on the entire grammar
54 55 56 |
# File 'lib/ruby_grammar_builder/grammar_plugin.rb', line 54 def post_lint(grammar_hash) # rubocop:disable Lint/UnusedMethodArgument true end |
#pre_lint(pattern, options = {}) ⇒ Boolean
Runs the linter on each pattern
43 44 45 |
# File 'lib/ruby_grammar_builder/grammar_plugin.rb', line 43 def pre_lint(pattern, = {}) # rubocop:disable Lint/UnusedMethodArgument true end |