From b2b116a00a8fca0f501bd74d7691f12f7885aec1 Mon Sep 17 00:00:00 2001 From: Andrew Roslik Date: Tue, 30 Aug 2016 15:24:11 +0300 Subject: [PATCH] Implemented #116: Rename "commithook files:allow-default" to "commithook files allow-default" - enamed "commithook files:allow-default" to "commithook files allow-default" --- bin/commithook.php | 2 +- src/config/validators/FileFilter.xml | 15 +++ .../Command/Config/File/AllowDefault.php | 123 ------------------ .../Command/Config/File/FilesConfig.php | 25 ++++ 4 files changed, 41 insertions(+), 124 deletions(-) delete mode 100644 src/lib/PreCommit/Console/Command/Config/File/AllowDefault.php create mode 100644 src/lib/PreCommit/Console/Command/Config/File/FilesConfig.php diff --git a/bin/commithook.php b/bin/commithook.php index 088ad21..07df8ad 100644 --- a/bin/commithook.php +++ b/bin/commithook.php @@ -20,7 +20,7 @@ $app->add(new Config\File\Skip($root)); $app->add(new Config\File\Protect($root)); $app->add(new Config\File\Allow($root)); -$app->add(new Config\File\AllowDefault($root)); +$app->add(new Config\File\FilesConfig($root)); $app->add(new Test($root)); $app->add(new ClearCache($root)); $app->add(new Validator\Disable($root)); diff --git a/src/config/validators/FileFilter.xml b/src/config/validators/FileFilter.xml index 5cac66a..e966836 100644 --- a/src/config/validators/FileFilter.xml +++ b/src/config/validators/FileFilter.xml @@ -5,6 +5,21 @@ */ --> + + + FileFilter validator configuration. + + + validators/FileFilter/allowed_by_default + This command can define configuration for allowing to commit files by default. + + project + + + + + +