andkirby / commithook

CommitHooks code validation and auto-formatting commit message.
GNU General Public License v3.0
7 stars 3 forks source link

xml: Simplify configuration of extensions/files list for validators and filters #73

Open andkirby opened 8 years ago

andkirby commented 8 years ago

Filter/Validator should have extensions/files list in its configuration. Possible config (example in YAML):

validators
  License
    status: 1
    class: \PreCommit\Validators\License
    file_type
      css: 1
      js: 1
  ComposerJson
    status: 1
    filename
      composer.json: 1