summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorville <ville@localhost>2009-11-23 21:57:53 +0000
committerville <ville@localhost>2009-11-23 21:57:53 +0000
commit5fb3e6b37b6304c1d0a96c9ee43a554ec3b32d32 (patch)
treef1924d18d4c2c88ff05a57acbaaf99d0a7bb7304
parent6ea15dda00316af43f659cd485b4abeed90f7484 (diff)
downloadmarkup-validator-5fb3e6b37b6304c1d0a96c9ee43a554ec3b32d32.zip
markup-validator-5fb3e6b37b6304c1d0a96c9ee43a554ec3b32d32.tar.gz
markup-validator-5fb3e6b37b6304c1d0a96c9ee43a554ec3b32d32.tar.bz2
Add perltidy(1) settings and a simple Makefile target for running it.
-rw-r--r--Makefile11
-rw-r--r--misc/perltidyrc15
2 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..73c5532
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,11 @@
+PERL_FILES = httpd/cgi-bin/check httpd/cgi-bin/sendfeedback.pl \
+ misc/spmpp.pl misc/docs_errors.pl misc/bundle/Makefile.PL \
+ misc/bundle/lib/Bundle/W3C/Validator.pm
+
+all:
+
+tidy:
+ for file in $(PERL_FILES) ; do \
+ echo "Tidying $$file..." ; \
+ perltidy --profile=misc/perltidyrc $$file ; \
+ done
diff --git a/misc/perltidyrc b/misc/perltidyrc
new file mode 100644
index 0000000..36c8b48
--- /dev/null
+++ b/misc/perltidyrc
@@ -0,0 +1,15 @@
+# perltidy(1) profile for the W3C Markup Validator
+--standard-error-output
+--warning-output
+--output-line-ending=unix
+--maximum-line-length=79
+--indent-columns=4
+--continuation-indentation=4
+--vertical-tightness=2
+--paren-tightness=2
+--brace-tightness=2
+--square-bracket-tightness=2
+--opening-sub-brace-on-new-line
+--nospace-for-semicolon
+--nooutdent-long-lines
+--break-after-all-operators