You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add function to create a minimal .lintr config #1580
Related issue over at lintr #579 added a workflow template for lintr, but no .lintr config file (compare use_pkgdown(), which does create a minimal config IIRC).
It would be nice to support users by generating a small valid .lintr config file from where they can adjust to their liking.
Since lintr does not necessarily have to be used with a GHA workflow, maybe a new function would be nice.
We could also implement this directly in lintr, but I personally would look for such a function in usethis.
Activity
jennybc commentedon Feb 23, 2022
Personally, although use lintr, I have never used a config file. So I associate a config file with more-than-entry-level use.
usethis doesn't currently have any lintr-specific functionality. But, yes, the existence of
r-lib/actions/examples/lint.yamlmeans thatusethis::use_github_action("lint")can be used to set up a basic workflow. And likewise forr-lib/actions/examples/lint-project.yaml.I think we've been over this ground in #579 and #580 and we've decided the current level of GHA workflow assistance is the way to go.