Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixable checks #3

Merged
merged 2 commits into from
Jul 19, 2023
Merged

Fixable checks #3

merged 2 commits into from
Jul 19, 2023

Conversation

JamesHemery
Copy link
Member

@JamesHemery JamesHemery commented Jul 19, 2023

Rework of #1 initiated by @indykoning

Introduce new configuration variables :

  • preset (by @indykoning) : Define the Pint preset to use
  • ignore_patterns (by @indykoning) : Add ignore patterns to exclude some files from the GrumPHP context
  • auto_fix
  • auto_stage

Auto fix

When auto_fix is not enabled, GrumPHP runs Pint in dry mode and then asks if you want to apply patches automatically.

By default, auto_fix is enabled only in a pre_commit context.

Possible values are true, false, pre_commit, run.

Auto stage

Allows you to automatically stage (git add) files affected by Pint with GrumPHP.

By default, auto_stage is enabled only in a pre_commit context.

This option only works when auto_fix is enabled for the runtime context.

@JamesHemery JamesHemery merged commit 3912afc into main Jul 19, 2023
@JamesHemery JamesHemery deleted the fixable-checks branch July 19, 2023 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant