abstract class
AmberLSP::Rules::BaseRule
- AmberLSP::Rules::BaseRule
- Reference
- Object
Direct Known Subclasses
- AmberLSP::Rules::Channels::HandleMessageRule
- AmberLSP::Rules::Controllers::ActionReturnRule
- AmberLSP::Rules::Controllers::BeforeActionRule
- AmberLSP::Rules::Controllers::InheritanceRule
- AmberLSP::Rules::Controllers::NamingRule
- AmberLSP::Rules::CustomRule
- AmberLSP::Rules::FileNaming::DirectoryStructureRule
- AmberLSP::Rules::FileNaming::SnakeCaseRule
- AmberLSP::Rules::Jobs::PerformRule
- AmberLSP::Rules::Jobs::SerializableRule
- AmberLSP::Rules::Mailers::RequiredMethodsRule
- AmberLSP::Rules::Pipes::CallNextRule
- AmberLSP::Rules::Routing::ControllerActionExistenceRule
- AmberLSP::Rules::Schemas::FieldTypeRule
- AmberLSP::Rules::Sockets::SocketChannelRule
- AmberLSP::Rules::Specs::SpecExistenceRule
Defined in:
amber_lsp/rules/base_rule.crInstance Method Summary
- #applies_to : Array(String)
- #check(file_path : String, content : String) : Array(Diagnostic)
- #default_severity : Severity
- #description : String
-
#find_all_line_ranges(content : String, pattern : Regex) : Array(TextRange)
Finds all line and character ranges for occurrences of a pattern.
-
#find_line_range(content : String, pattern : Regex) : TextRange | Nil
Finds the line and character range for the first occurrence of a pattern.
- #id : String
Instance Method Detail
Finds all line and character ranges for occurrences of a pattern.
Finds the line and character range for the first occurrence of a pattern. Returns nil if the pattern is not found.