class
Analyzer::Clojure::Pedestal
- Analyzer::Clojure::Pedestal
- Analyzer
- Reference
- Object
Defined in:
analyzer/analyzers/clojure/pedestal.crConstant Summary
-
CLOJURE_EXTENSIONS =
{".clj", ".cljc", ".cljs"} -
HELPER_METHODS =
{"get" => "GET", "post" => "POST", "put" => "PUT", "patch" => "PATCH", "delete" => "DELETE", "head" => "HEAD", "options" => "OPTIONS", "trace" => "TRACE", "connect" => "CONNECT", "any" => "ANY"} -
HTTP_METHODS =
{":get" => "GET", ":post" => "POST", ":put" => "PUT", ":patch" => "PATCH", ":delete" => "DELETE", ":head" => "HEAD", ":options" => "OPTIONS", ":trace" => "TRACE", ":connect" => "CONNECT", ":query" => "QUERY", ":any" => "ANY"} -
PEDESTAL_SOURCE_RE =
Regex.union("io.pedestal", "pedestal.service", "pedestal.route", "defroutes", "table-routes") -
Whole-file detection gate, evaluated once per candidate file.
String#matches?(PCRE2 JIT) replaces five naiveString#includes?char scans with a single pass;Regex.unionauto-escapes each literal, so it is provably equivalent to the OR-of-substrings it replaces.