Skip to content

Git integration? #452

Closed
Closed

Description

@krlmlr

For initial cleanup of a new-to-me codebase, I'd like to have an "automatic" mode that applies all scopes from "none" to "tokens" in sequence and creates a commit for each. The commit message would contain the report for each step. We're likely to need git2r, but I don't mind a weak dependency.

Do you think this would fit the scope of this package?

Activity

  1. lorenzwalthert commented on Dec 14, 2018

    @lorenzwalthert
    Collaborator

    This sounds interesting. In practice, I also iterate over strict if necessary. Personally, I like to edit after styled and then commit, but for the average user, this might be too much work. As far as my experience goes, 99% use the defaults for scope and strict anyways. What interface did you have in mind to make such functionality accessible while upholding consistency with the existing API?

  2. krlmlr commented on Dec 14, 2018

    @krlmlr
    MemberAuthor

    Maybe:

    map_git_commit(tidyverse_style_scopes(), ~ style_pkg(scope = .))
  3. lorenzwalthert commented on Jan 17, 2019

    @lorenzwalthert
    Collaborator

    PR welcomed Kirill if you want to work on it, but for me this is not top priority.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions