Skip to content

Commit

Permalink
Refactored #117: Make fast disabling synchronization with an issue tr…
Browse files Browse the repository at this point in the history
…acker

 - Moved config.
  • Loading branch information
andkirby committed Sep 5, 2016
1 parent 7c44e11 commit 986797d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 12 deletions.
13 changes: 1 addition & 12 deletions src/config/pre-commit-magento.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,13 @@
*/
-->
<config>
<!--Validators setup-->
<validators>
<Magento-ModelEventFields>
<!-- Possible data model abstract classes -->
<abstract_class>
<core_abstract>Mage_Core_Model_Abstract</core_abstract>
<core_abstract_resource>Mage_Core_Model_Resource_Db_Collection_Abstract</core_abstract_resource>
</abstract_class>
</Magento-ModelEventFields>
</validators>
<!--Hooks process setup-->
<hooks>
<pre-commit>
<filetype>
<php>
<validators>
<CodingStandardMagento>1</CodingStandardMagento>
<Magento-ModelEventFields>1</Magento-ModelEventFields>
<CodingStandardMagento>0</CodingStandardMagento>
</validators>
</php>
</filetype>
Expand Down
37 changes: 37 additions & 0 deletions src/config/validators/Magento-ModelEventFields.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0"?>
<!--
/**
* @license https://raw.githubusercontent.com/andkirby/commithook/master/LICENSE.md
*/
-->
<config>
<!--Validators setup-->
<validators>
<Magento-ModelEventFields>
<!-- Possible data model abstract classes -->
<abstract_class>
<core_abstract>Mage_Core_Model_Abstract</core_abstract>
<core_abstract_resource>Mage_Core_Model_Resource_Db_Collection_Abstract</core_abstract_resource>
</abstract_class>
</Magento-ModelEventFields>
</validators>
<!--Hooks process setup-->
<hooks>
<pre-commit>
<filetype>
<php>
<validators>
<Magento-ModelEventFields>0</Magento-ModelEventFields>
</validators>
</php>
</filetype>
<ignore>
<validator>
<code>
<Magento-ModelEventFields>1</Magento-ModelEventFields>
</code>
</validator>
</ignore>
</pre-commit>
</hooks>
</config>

0 comments on commit 986797d

Please sign in to comment.