[libcode-tidyall-perl] 245/374: Allow multiple select and ignore patterns separated by whitespace (doc)
Jonas Smedegaard
js at alioth.debian.org
Sun Sep 29 22:26:28 UTC 2013
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository libcode-tidyall-perl.
commit 1f129077da28b8b4c55840cd4045c5efbe6ef9f7
Author: Jonathan Swartz <swartz at pobox.com>
Date: Fri Sep 14 14:16:57 2012 -0400
Allow multiple select and ignore patterns separated by whitespace (doc)
---
Changes | 3 ++-
bin/tidyall | 24 +++++++++++++++---------
2 files changed, 17 insertions(+), 10 deletions(-)
diff --git a/Changes b/Changes
index f416b51..028b0c1 100644
--- a/Changes
+++ b/Changes
@@ -5,8 +5,9 @@ Revision history for Code-TidyAll
0.11 Sep 12, 2012
* Improvements
- - Add conf_name parameter to specify name other than tidyall.ini
+ - Allow multiple select and ignore patterns separated by whitespace
- Add -l/--list flag to show which plugins match which files
+ - Add conf_name parameter to specify name other than tidyall.ini
- Redirect stdout to stderr with -p/--pipe, so that stdout is dedicated to the tidied content
* Fixes
diff --git a/bin/tidyall b/bin/tidyall
index ae6ab72..4197aa3 100755
--- a/bin/tidyall
+++ b/bin/tidyall
@@ -259,7 +259,7 @@ Here's a sample:
[PerlCritic]
select = lib/**/*.pm
- ignore = lib/UtterHack.pm
+ ignore = lib/UtterHack.pm lib/OneTime/*.pm
argv = -severity 3
[PodTidy]
@@ -296,20 +296,25 @@ automatically prefixed with C<Code::TidyAll::Plugin::> unless it begins with a
'+', e.g.
# Uses plugin Code::TidyAll::Plugin::PerlTidy
+ #
[PerlTidy]
# Uses plugin My::TidyAll::Plugin
+ #
[+My::TidyAll::Plugin]
=item select
-A required L<File::Zglob|File::Zglob> pattern indicating which files to select,
-e.g.
+One or more L<File::Zglob|File::Zglob> patterns separated by whitespae,
+indicating which files to select. At least one is required. e.g.
- # All .pl and .pm files somewhere under bin, lib and t
- select = {bin,lib,t}/**/*.p[lm]
+ # All .t and .pl somewhere under bin and t;
+ # plus all .pm files directly under lib/Foo and lib/Bar
+ #
+ select = {bin,t}/**/*.p[lm] lib/{Foo,Bar}/*.pm
# All .txt files anywhere in the project
+ #
select = **/*.txt
The pattern is relative to the root directory and should have no leading slash.
@@ -319,12 +324,13 @@ L<File::Zglob|File::Zglob> documentation for more details.
=item ignore
-A L<File::Zglob|File::Zglob> pattern, of the same format described above,
-indicating which files to ignore. This overrides C<select>. e.g.
+One or more L<File::Zglob|File::Zglob> patterns separated by whitespace, of the
+same format described above, indicating which files to ignore. This is
+optional and overrides C<select>. e.g.
- # All .pl files under bin, except under bin/tmp
+ # All .pl files anywhere under bin, except under bin/tmp
select = bin/**/*.pl
- ignore = bin/tmp/*.pl
+ ignore = bin/tmp/**/*.pl
=item only_modes
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcode-tidyall-perl.git
More information about the Pkg-perl-cvs-commits
mailing list