Skip to content

Add function to create a minimal .lintr config #1580

Closed

Description

@AshesITR

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

  1. jennybc commented on Feb 23, 2022

    @jennybc
    Member

    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.yaml means that usethis::use_github_action("lint") can be used to set up a basic workflow. And likewise for r-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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions