class
Analyzer::Crystal::Lucky
Defined in:
analyzer/analyzers/crystal/lucky.crConstant Summary
-
LUCKY_EXTRA_ROUTES =
[{"TRACE", TRACE_ROUTE_PATTERN}] of Tuple(String, Regex) -
RESOURCEFUL_ACTIONS =
["index", "show", "new", "create", "edit", "update", "delete"] of ::String -
TRACE_ROUTE_PATTERN =
/(?:^|[^.\w])trace\s*(?:\(\s*)?['"](.+?)['"]/ -
Lucky uniquely registers TRACE routes. Shared engine verbs cover the rest; this is stitched in via
match_crystal_simple_route(..., extra:).
Instance Method Summary
- #analyze
- #analyze_file(path : String) : Array(Endpoint)
- #line_to_endpoint(content : String) : Endpoint
- #line_to_param(content : String) : Param