Skip to content

Commit

Permalink
Adds tidyall config and pre-commit setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Aug 6, 2013
1 parent bc111fc commit dab6cc9
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -15,3 +15,7 @@ metacpan_server_local.conf
/MYMETA.*
/pm_to_blib
/blib

# tidyall
.tidyall.d
perltidy.LOG
3 changes: 3 additions & 0 deletions .tidyallrc
@@ -0,0 +1,3 @@
[PerlTidy]
select = {lib,t}/**/*.{pl,pm,t,psgi}
select = app.psgi
7 changes: 7 additions & 0 deletions git/hooks/pre-commit
@@ -0,0 +1,7 @@
#!/usr/bin/env perl

use strict;
use warnings;

use Code::TidyAll::Git::Precommit;
Code::TidyAll::Git::Precommit->check();
5 changes: 5 additions & 0 deletions git/setup.sh
@@ -0,0 +1,5 @@
#!/bin/bash

chmod +x git/hooks/pre-commit
cd .git/hooks
ln -s ../../git/hooks/pre-commit

0 comments on commit dab6cc9

Please sign in to comment.