W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2010

link-checker commit: Add perltidy settings and Makefile target.

From: Mercurial notifier <nobody@w3.org>
Date: Thu, 05 Aug 2010 14:47:25 +0000
To: link-checker updates <www-validator-cvs@w3.org>
Message-Id: <E1Oh1jB-0006NP-IJ@blinky.w3.org>
changeset:   347:32b65be31a38
user:        ville
date:        Sun Feb 28 19:13:52 2010 +0000
files:       MANIFEST Makefile.PL etc/perltidyrc
description:
Add perltidy settings and Makefile target.


diff -r c8382982734d -r 32b65be31a38 MANIFEST
--- a/MANIFEST	Sun Feb 28 19:03:35 2010 +0000
+++ b/MANIFEST	Sun Feb 28 19:13:52 2010 +0000
@@ -9,6 +9,7 @@
 bin/checklink           The link checker
 bin/checklink.pod       Manual page for the link checker
 etc/checklink.conf      Optional configuration file
+etc/perltidyrc          perltidy(1) profile
 docs/checklink.html     Additional documentation
 docs/linkchecker.css    Cascading style sheet for the documentation
 images/double.png
diff -r c8382982734d -r 32b65be31a38 Makefile.PL
--- a/Makefile.PL	Sun Feb 28 19:03:35 2010 +0000
+++ b/Makefile.PL	Sun Feb 28 19:13:52 2010 +0000
@@ -80,5 +80,13 @@
 	$(ECHO) "use vars qw(\$$VERSION);"                   >> $@
 	$(ECHO) "\$$VERSION = \"$(VERSION)\";"               >> $@
 	$(ECHO) "1;"                                         >> $@
+
+PERLTIDY = perltidy --profile=etc/perltidyrc --backup-and-modify-in-place
+
+perltidy:
+	@for file in Makefile.PL bin/checklink ; do \
+		echo "$(PERLTIDY) $$file" ; \
+		$(PERLTIDY) $$file ; \
+	done
 MAKE_FRAG
 }
diff -r c8382982734d -r 32b65be31a38 etc/perltidyrc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/etc/perltidyrc	Sun Feb 28 19:13:52 2010 +0000
@@ -0,0 +1,15 @@
+# perltidy(1) profile for the W3C Link Checker
+--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
Received on Thursday, 5 August 2010 14:47:40 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:44 UTC