Pattern: Inconsistent indentation
Issue: -
Checks that the correct character is used for indentation.
Example of incorrect code:
lint(
text = "\tx",
linters = whitespace_linter()
)
#> ::warning file=<text>,line=1,col=1::file=<text>,line=1,col=1,[whitespace_linter] Use spaces to indent, not tabs.
Example of correct code:
lint(
text = " x",
linters = whitespace_linter()
)