Skip to content

Make PHPCodeSniffer PreCommit Hook accept additional parameters #35

@mariomeyer

Description

@mariomeyer

Currently PHPCS PreCommit Hook doesn't accept additional parameters.

I have created locally a new version of it that does.

Scenario:

  • I want to be able to locally see the warnings when I run PHPCS
  • But I wan them to block commits to the branch.
  • So I can't just set severity 0 for all warnings on the phpcs.xml or I won't see them locally.
  • Ideal resolution is the ability to run on the hook with either --warning-severity=0 or -n

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions