Skip to content

Conversation

@chapelome
Copy link

No description provided.

@gerardroche
Copy link
Owner

The reason for the dry run is to prevent output when the case of no violations.

  • If there are no violations, no output, quiet
  • If there are violations, output verbose details with diffs

It's a pity php-cs-fixer doesn't have an option to on start output if a violation occurs, then start output, otherwise stay quiet.

In your case, it seems you want to run the fixer on the code. As oppose to just check it?

@chapelome
Copy link
Author

Exactly I want to run the fixer, or check it in case of violations

@gerardroche
Copy link
Owner

gerardroche commented Aug 27, 2024

I guess I could add an option for that. And environment variable maybe. The fixer will auto fix issues and display information for the issues it can't auto fix.

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.

2 participants