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

Add section for git-hook #1

Open
Tracked by #10
theodorosploumis opened this issue Dec 10, 2021 · 0 comments
Open
Tracked by #10

Add section for git-hook #1

theodorosploumis opened this issue Dec 10, 2021 · 0 comments

Comments

@theodorosploumis
Copy link
Owner

git-hook example usage:

  • Validate commit message
  • Validate git author and email is valid (is a real human or a known machine user)
  • Validate/lint code according to standards (PHP version, Drupal version etc)
  • Validate git branch/tag name
  • Static code analysis report
  • Check ToDo comments
  • Check debug code exists (should not)
  • Check sensitive data (eg passwords) exist (should not)
  • Lorem ipsum text (should not exist)
  • Propose to reformat code
  • Propose to fix code standards
  • Run local tests
  • Spell check
  • Disallow wording
  • Check file permissions
  • Disallow direct push access to "protected" branches
  • Display a helper message about current project
  • Allow to ignore git-hook

PHP git-hook examples:

Documentation:

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

No branches or pull requests

1 participant