Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

[DevBundle] Add git pre-commit hooks #739

Merged
merged 1 commit into from
Jun 27, 2016
Merged

[DevBundle] Add git pre-commit hooks #739

merged 1 commit into from
Jun 27, 2016

Conversation

stefk
Copy link
Contributor

@stefk stefk commented Jun 27, 2016

Depend on #735.

Reuse files from http://github.com/claroline/git-hooks and add/modify hooks to cover current constraints:

  • php-cs-fixer
  • phpmd
  • md
  • eslint

Hooks can be enabled by a simple symlink:

cd .git/hooks
ln -s ../../main/dev/Resources/hooks/pre-commit

NOTE: currently hooks won't be triggered with the --amend option

cc @claroline/commiters

@Elorfin
Copy link
Member

Elorfin commented Jun 27, 2016

LGTM

1 similar comment
@LaurentGruber
Copy link
Member

LGTM

@LaurentGruber LaurentGruber merged commit 0372603 into master Jun 27, 2016
@LaurentGruber LaurentGruber deleted the githooks branch June 27, 2016 19:10
Elorfin pushed a commit that referenced this pull request Jul 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants