class AmberLSP::Rules::FSDD::StoryGrammarRule

Defined in:

amber_lsp/rules/fsdd/story_grammar_rule.cr

Constant Summary

ACTION_VERB_RE = /\b(GET|POST|PUT|PATCH|DELETE|perform|do)\b/
MODEL_NAME_RE = /\b[A-Z][a-z][a-zA-Z0-9]*\b/
STORY_INITIATOR_RE = /\b(As a|At |Every )/
STORY_INITIATOR_WORDS = {"As", "At", "Every"}

Instance Method Summary

Instance methods inherited from class AmberLSP::Rules::BaseRule

applies_to : Array(String) applies_to, check(file_path : String, content : String) : Array(Diagnostic) check, default_severity : Severity default_severity, description : String description, find_all_line_ranges(content : String, pattern : Regex) : Array(TextRange) find_all_line_ranges, find_line_range(content : String, pattern : Regex) : TextRange | Nil find_line_range, id : String id, requires_amber_project? : Bool requires_amber_project?

Instance Method Detail

def applies_to : Array(String) #

[View source]
def check(file_path : String, content : String) : Array(Diagnostic) #

[View source]
def default_severity : AmberLSP::Rules::Severity #

[View source]
def description : String #

[View source]
def id : String #

[View source]
def requires_amber_project? : Bool #

[View source]