•  
     
    story #19388 Have a pre-commit hook
Description
Developer
Have a pre-commit hook

to automatically run codesniffer and static analysis of php code (phpcs, phpcbf and psalm), and unit tests scripts against every commit. The pre-commit hook will help reject code that doesn't fit code quality criterias by blocking the commit command.

Update README to leave instructions for development uses:

  • it should describe pre-commit setup: copy tools/githooks/pre-commit-linter-and-unit-tests into .git/hooks/
Empty
Progress
1.5
0
Done
References
Access Information
#19388
2021-03-02 12:11
Simiand Camille (csimiand)
2021-03-09 08:57
Simiand Camille (csimiand)

Follow-ups

User avatar
  • In order to
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • Acceptance Criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes