uribo / textlintr

✅ Natural Language Linter Tools for 'R Markdown' and R Code 💯
https://uribo.github.io/textlintr/
Other
8 stars 1 forks source link

Not working lintrc #18

Closed uribo closed 6 years ago

uribo commented 6 years ago

Reprex is here.

library(textlintr)
textlint(system.file("sample.md", package = "textlintr"),
         markers = FALSE)
# In: /usr/local/lib/R/site-library/textlintr/sample.md
# ✔ common-misspellings: This is a commonly misspelled word. Correct it to useful
# → /usr/local/lib/R/site-library/textlintr/sample.md5:24
textlint(system.file("sample.md", package = "textlintr"),
         lintrc = "custom-textlintrc.yml",
         markers = FALSE)
# Error: Missing .textlintrc.
# You can setup by update_lint_rules()
uribo commented 6 years ago

it works now (e29fd930566dc9ad87344714350aa0a42b67d6eb).

library(textlintr)
textlint(system.file("sample.md", package = "textlintr"),
         markers = FALSE)
# 1 inputs ✔ | 1 warnings ⚠
# In: /home/rstudio/textlintr/inst/sample.md
# ✔ common-misspellings: This is a commonly misspelled word. Correct it to useful
# → /home/rstudio/textlintr/inst/sample.md5:24
textlint(system.file("sample.md", package = "textlintr"),
         lintrc = system.file("inst/textlintrc-samples/textlintrc-prh.yml", package = "textlintr"),
         markers = FALSE)
# 1 inputs ✔ | 3 warnings ⚠
# In: /home/rstudio/textlintr/inst/sample.md
# ✔ common-misspellings: This is a commonly misspelled word. Correct it to useful
# → /home/rstudio/textlintr/inst/sample.md5:24
# ✔ prh: Rmarkdown => R Markdown
# → /home/rstudio/textlintr/inst/sample.md11:4
# ✔ prh: rstudio => RStudio
# → /home/rstudio/textlintr/inst/sample.md13:279