Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 479 Bytes

static-path-literal-arg.md

File metadata and controls

15 lines (10 loc) · 479 Bytes

Enforce only string literals as arguments to our static deployment tool $static_path (static-path-literal-arg)

Our static assets deployment tool parses all code files for the $static_path. The parser cannot recognize call expressions containing non string-literal argument.

Examples of incorrect code for this rule:

$static_path("/static/images" + "icon.png")

Examples of correct code for this rule:

$static_path("/static/images/icon.png")