assignment
What it does
Checks for consistency of assignment operator.
Why is this bad?
In most cases using = and <- is equivalent. Some very popular packages use = without problems. This rule only ensures the consistency of the assignment operator in a project.
Note that Jarl doesn’t force you to use <- as assignment operator, it simply uses it as default. To use = as the preferred operator:
- in the CLI (temporary change), use
--assignment-op "="; - in
jarl.toml(permanent change): setassignment = "=".
Example
x = "a"Use instead:
x <- "a"References
See: