aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-10-02 11:35:21 +1300
committerTom Ryder <tom@sanctum.geek.nz>2015-10-02 11:35:21 +1300
commitd4eaef97e7a4b71efdea5b7038734261eb429acd (patch)
tree2672bc6917f3f962496e019bbb59911bc0eb519b
parentAppease perlcritic(1) on clip (diff)
downloaddotfiles-d4eaef97e7a4b71efdea5b7038734261eb429acd.tar.gz
dotfiles-d4eaef97e7a4b71efdea5b7038734261eb429acd.zip
Add Perl::Critic back in again
-rw-r--r--Makefile4
-rw-r--r--README.markdown2
-rw-r--r--perlcritic/perlcriticrc5
3 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8d0917bf..574c0bb9 100644
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,7 @@
install-mysql \
install-ncmcpp \
install-newsbeuter \
+ install-perlcritic \
install-psql \
install-readline \
install-sh \
@@ -144,6 +145,9 @@ install-newsbeuter :
install-mysql :
install -m 0644 -- mysql/my.cnf "$(HOME)"/.my.cnf
+install-perlcritic:
+ install -m 0644 -- perlcritic/perlcriticrc "$(HOME)"/.perlcriticrc
+
install-psql :
install -m 0644 -- psql/psqlrc "$(HOME)"/.psqlrc
diff --git a/README.markdown b/README.markdown
index 4ad5bd8b..9bfe62d1 100644
--- a/README.markdown
+++ b/README.markdown
@@ -35,6 +35,8 @@ Configuration is included for:
* [Newsbeuter](http://www.newsbeuter.org/) — Terminal RSS/Atom feed reader
* [`psql(1)`](http://linux.die.net/man/1/psql) — Command-line PostgreSQL
client
+* [Perl::Critic](http://perlcritic.com/) — static source code analysis engine
+ for Perl
* [Readline](http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html) — GNU
library for user input used by Bash, MySQL, and others
* [Taskwarrior](http://taskwarrior.org/projects/show/taskwarrior) —
diff --git a/perlcritic/perlcriticrc b/perlcritic/perlcriticrc
new file mode 100644
index 00000000..06b90bcb
--- /dev/null
+++ b/perlcritic/perlcriticrc
@@ -0,0 +1,5 @@
+brutal
+
+[Bangs::ProhibitNumberedNames]
+exceptions = inet4 inet6 ipv4 ipv6 md5 sha1 sha256 sha512 x11 utf8
+