class
AmberLSP::Rules::Controllers::ActionReturnRule
Defined in:
amber_lsp/rules/controllers/action_return_rule.crConstant Summary
-
CLASS_DECLARATION =
/^(\s*)class\b/ -
CLASS_METHOD =
/^\s{2,4}(?:(?:private|protected|public)\s+)?def\s+self\./ -
END_DECLARATION =
/^(\s*)end\b/ -
METHOD_DECLARATION =
/^(\s{2,4})(?:(private|protected|public)\s+)?def\s+([\w!?]+)/ -
RESPONSE_METHODS =
["render", "redirect_to", "redirect_back", "respond_with", "halt!"] -
SKIPPED_METHODS =
["initialize", "before_action", "after_action", "before_filter", "after_filter"] -
VISIBILITY_CHANGE =
/^\s*(private|protected|public)\s*$/
Instance Method Summary
- #applies_to : Array(String)
- #check(file_path : String, content : String) : Array(Diagnostic)
- #default_severity : AmberLSP::Rules::Severity
- #description : String
- #id : String