class AmberLSP::Rules::CustomRule

Defined in:

amber_lsp/rules/custom_rule.cr

Constructors

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

Constructor Detail

def self.new(id : String, description : String, default_severity : Severity, applies_to : Array(String), pattern : Regex, message_template : String, negate : Bool = false) #

[View source]

Instance Method Detail

def applies_to : Array(String) #

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

[View source]
def default_severity : Severity #

[View source]
def description : String #

[View source]
def id : String #

[View source]