Skip to content

Files

Latest commit

 

History

History
31 lines (21 loc) · 557 Bytes

whitespace_linter.md

File metadata and controls

31 lines (21 loc) · 557 Bytes

Pattern: Inconsistent indentation

Issue: -

Description

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()
)

Further Reading