Skip to content

Commit c81fae3

Browse files
committed
Add example for new lint
1 parent 83081e9 commit c81fae3

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

R/sprintf_linter.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
#' linters = sprintf_linter()
1313
#' )
1414
#'
15+
#' lint(
16+
#' text = 'sprintf("hello")',
17+
#' linters = sprintf_linter()
18+
#' )
19+
#'
1520
#' # okay
1621
#' lint(
1722
#' text = 'sprintf("hello %s %s %d", x, y, z)',

man/sprintf_linter.Rd

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)