class
AmberLSP::Rules::CustomRule
- AmberLSP::Rules::CustomRule
- AmberLSP::Rules::BaseRule
- Reference
- Object
Defined in:
amber_lsp/rules/custom_rule.crConstructors
Instance Method Summary
- #applies_to : Array(String)
- #check(file_path : String, content : String) : Array(Diagnostic)
- #default_severity : Severity
- #description : String
- #id : String
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)
#