class GrammarLinter

@abstract Subclass and override {#pre_lint} and/or {#post_lint}

to implement a linter

Public Instance Methods

post_lint(grammar_hash) click to toggle source

Runs the linter on the entire grammar

@param [Hash] grammar_hash The entire grammar

@return [Boolean] the result og the lint

# File lib/textmate_grammar/grammar_plugin.rb, line 54
def post_lint(grammar_hash) # rubocop:disable Lint/UnusedMethodArgument
    true
end
pre_lint(pattern, options = {}) click to toggle source

Runs the linter on each pattern

@param pattern [PatternBase, Symbol, Hash] the pattern to lint @param options [Hash] hash of any of the option keys provided by self.options.

options will only be populated when pattern is a PatternBase

@return [Boolean] the result of the lint

# File lib/textmate_grammar/grammar_plugin.rb, line 43
def pre_lint(pattern, options = {}) # rubocop:disable Lint/UnusedMethodArgument
    true
end