Colon in call
warning A warning says what Statac did instead, and the build goes on.
An argument in a snippet call was named with a colon, caption: 'Post 1',
where a call names its arguments with =, caption='Post 1'.
What you’ll see
warning Colon in call: `caption:` was read as `caption=`
Write `caption=` instead.
More: https://statac.dev/e/colon-in-call/
In the terminal the message also names the file and line where there is one, and marks the exact text.
Why Statac warns
The meaning is clear, so Statac uses the value as though you had written
= and tells you. A call is written the same way in your writing and in a
template, and a template names arguments with =.
How to fix it
Write = in place of the colon.
Example
In content/post-1.md:
@image('photo-1.jpg', caption: 'Post 1')
Write it as:
@image('photo-1.jpg', caption='Post 1')
Its name
| Name | colon-in-call |
|---|---|
| In the terminal | statac explain colon-in-call |
| To stop showing it | quiet: [colon-in-call] in statac.yaml, once you have understood it. Statac still counts it. |
Something unclear or wrong? Open an issue on GitHub.