expect_lint: Lint expectation
Description
Lint expectationUsage
expect_lint(content, checks, ..., file = NULL)
Arguments
content
the file content to be linted
checks
a list of named vectors of checks to be performed. Performs
different checks depending on the value of checks.
- NULL check if the lint returns no lints.
- unnamed-vector check if the lint's message matches the value.
- named-vector che
...
one or more linters to use for the check
file
if not NULL
read content from a file rather than from content