assignment

NoteAdded in 0.0.8

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.

Set the following option in jarl.toml to use = as the preferred operator:

[lint.assignment]
operator = "=" # or "<-"

Example

x = "a"

Use instead:

x <- "a"

References

See: