Skip to content

Commit

Permalink
Use netgen/git-hooks as the source of hooks and installer
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Aug 27, 2020
1 parent d1a453d commit 58ee48d
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 358 deletions.
1 change: 0 additions & 1 deletion captainhook.json

This file was deleted.

10 changes: 5 additions & 5 deletions captainhook_enabled.json → captainhook.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"enabled": true,
"actions": [
{
"action": "\\AppBundle\\GitHooks\\Action\\Regex",
"action": "\\Netgen\\GitHooks\\Action\\Regex",
"options": {
"regex": "/^[A-Z]+-\\d+:?\\s/",
"error": "Your commit message MUST start with a ticket ID"
Expand All @@ -19,7 +19,7 @@
"enabled": true,
"actions": [
{
"action": "\\AppBundle\\GitHooks\\Action\\CheckForBlockedWords",
"action": "\\Netgen\\GitHooks\\Action\\CheckForBlockedWords",
"options": {
"extensions": ["php", "twig"],
"keyword_blocklist": ["var_dump", "dump", "dd"],
Expand All @@ -30,16 +30,16 @@
"action": "\\CaptainHook\\App\\Hook\\Composer\\Action\\CheckLockFile"
},
{
"action": "\\AppBundle\\GitHooks\\Action\\PHPCSFixer"
"action": "\\Netgen\\GitHooks\\Action\\PHPCSFixer"
},
{
"action": "\\AppBundle\\GitHooks\\Action\\CheckLockFileCommitted",
"action": "\\Netgen\\GitHooks\\Action\\CheckLockFileCommitted",
"options": {
"enabled": true
}
},
{
"action": "\\AppBundle\\GitHooks\\Action\\CheckAssetsAction",
"action": "\\Netgen\\GitHooks\\Action\\CheckAssetsAction",
"options": {
"enabled": true
}
Expand Down
26 changes: 0 additions & 26 deletions captainhook_disabled.json

This file was deleted.

6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@

"netgen/media-site-data": "~1.5.0",
"netgen/site-bundle": "~1.3.0",
"netgen/site-generator-bundle": "~1.3.0",
"netgen/site-generator-bundle": "~1.3.1",
"netgen/site-legacy-bundle": "^1.2",
"netgen/site-installer-bundle": "^1.1",
"netgen/information-collection-bundle": "^1.9",
Expand Down Expand Up @@ -105,7 +105,8 @@
"predis/predis": "^1.1.3",
"franzl/studio": "*",
"deployer/recipes": "^6.2",
"captainhook/captainhook": "^5.3"

"netgen/git-hooks": "^1.0"
},
"conflict": {
"doctrine/dbal": "2.7.0",
Expand All @@ -124,7 +125,6 @@
"Netgen\\Bundle\\SiteBundle\\Composer\\ScriptHandler::installProjectSymlinks",
"Netgen\\Bundle\\SiteLegacyBundle\\Composer\\ScriptHandler::installLegacySymlinks",
"eZ\\Bundle\\EzPublishLegacyBundle\\Composer\\ScriptHandler::generateAutoloads",
"@php bin/captainhook install --force",
"@php bin/security-checker security:check"
],
"post-install-cmd": [
Expand Down
48 changes: 0 additions & 48 deletions src/AppBundle/GitHooks/Action/Action.php

This file was deleted.

114 changes: 0 additions & 114 deletions src/AppBundle/GitHooks/Action/CheckAssetsAction.php

This file was deleted.

60 changes: 0 additions & 60 deletions src/AppBundle/GitHooks/Action/CheckForBlockedWords.php

This file was deleted.

36 changes: 0 additions & 36 deletions src/AppBundle/GitHooks/Action/CheckLockFileCommitted.php

This file was deleted.

Loading

0 comments on commit 58ee48d

Please sign in to comment.