[libcode-tidyall-perl] 258/374: spell checking

Jonas Smedegaard js at alioth.debian.org
Sun Sep 29 22:26:31 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 4e7620658e00401bef460d826a03705c59dd699b
Author: Jonathan Swartz <swartz at pobox.com>
Date:   Tue Sep 25 04:25:35 2012 -0700

    spell checking
---
 bin/tidyall                                  |   16 ++++++++--------
 lib/Code/TidyAll/Git/Prereceive.pm           |    8 ++++----
 lib/Code/TidyAll/Plugin.pm                   |    2 +-
 lib/Code/TidyAll/Plugin/JSBeautify.pm        |    2 +-
 lib/Code/TidyAll/Plugin/JSHint.pm            |    2 +-
 lib/Code/TidyAll/Plugin/JSLint.pm            |    2 +-
 lib/Code/TidyAll/Plugin/PodChecker.pm        |    2 +-
 lib/Code/TidyAll/SVN/Precommit.pm            |    8 ++++----
 lib/Pod/Weaver/Section/SeeAlsoCodeTidyAll.pm |    6 +++---
 tidyall.ini                                  |    5 +++++
 10 files changed, 29 insertions(+), 24 deletions(-)

diff --git a/bin/tidyall b/bin/tidyall
index 1e94f70..5aada35 100755
--- a/bin/tidyall
+++ b/bin/tidyall
@@ -309,7 +309,7 @@ automatically prefixed with C<Code::TidyAll::Plugin::> unless it begins with a
 
 =item select
 
-One or more L<File::Zglob|File::Zglob> patterns, separated by whitespae or on
+One or more L<File::Zglob|File::Zglob> patterns, separated by whitespace or on
 multiple lines, indicating which files to select. At least one is required.
 e.g.
 
@@ -398,7 +398,7 @@ whether files are cached. Generally used with -a, -g, or -s. e.g.
 
 =item -m, --mode       
 
-Optional mode that can affect which plugins run. Defaults to 'cli'. See
+Optional mode that can affect which plugins run. Defaults to C<cli>. See
 L</MODES>.
 
 =item -p path, --pipe path
@@ -482,7 +482,7 @@ C<--refresh-cache>.
 =item --output-suffix I<suffix>
 
 Suffix to add to a filename before outputting the modified version, e.g.
-".tdy". Default is none, which means overwrite the file.
+C<.tdy>. Default is none, which means overwrite the file.
 
 =item --refresh-cache  
 
@@ -491,8 +491,8 @@ info. See also C<--no-cache>.
 
 =item --root-dir       
 
-Specify root dir explicitly. Usually this is inferred from the specified files
-or the current working directory.
+Specify root directory explicitly. Usually this is inferred from the specified
+files or the current working directory.
 
 =item --tidyall-class I<class>
 
@@ -603,13 +603,13 @@ You can turn off backups with C<--no-backups>.
 =item *
 
 C<etc/editors/tidyall.el> in this distribution is an Emacs function that runs
-C<tidyall> on the current buffer. You can assign this to ctrl-t or your
+C<tidyall> on the current buffer. You can assign this to C<ctrl-t> or your
 favorite key binding.
 
 =item *
 
 L<Code::TidyAll::SVN::Precommit|Code::TidyAll::SVN::Precommit> implements a
-subversion precommit hook that checks if all files are tidied and valid
+subversion pre-commit hook that checks if all files are tidied and valid
 according to C<tidyall>, and rejects the commit if not.
 
 =item *
@@ -636,7 +636,7 @@ Does not yet work on Windows
 
 =back
 
-=head1 ACKNOWLEDGEMENTS
+=head1 ACKNOWLEDGMENTS
 
 Thanks to Jeff Thalhammer for helping me refine this API. Thanks to Jeff for
 perlcritic, Steve Hancock for perltidy, and all the other authors of great open
diff --git a/lib/Code/TidyAll/Git/Prereceive.pm b/lib/Code/TidyAll/Git/Prereceive.pm
index 475a635..dcb3749 100644
--- a/lib/Code/TidyAll/Git/Prereceive.pm
+++ b/lib/Code/TidyAll/Git/Prereceive.pm
@@ -163,7 +163,7 @@ Key/value parameters:
 
 =item conf_file
 
-Name of conf file; default is "tidyall.ini".
+Name of conf file; default is C<tidyall.ini>.
 
 =item extra_conf_files
 
@@ -171,9 +171,9 @@ A listref of configuration files referred to from C<tidyall.ini>, e.g.
 
     extra_conf_files => ['perlcriticrc', 'perltidyrc']
 
-These files will be pulled out of the repo along with tidyall.ini. If you don't
-list them here then you'll get errors like 'cannot find perlcriticrc' when the
-hook runs.
+These files will be pulled out of the repo along with C<tidyall.ini>. If you
+don't list them here then you'll get errors like 'cannot find perlcriticrc'
+when the hook runs.
 
 =item git_path
 
diff --git a/lib/Code/TidyAll/Plugin.pm b/lib/Code/TidyAll/Plugin.pm
index 52e26ec..464f834 100644
--- a/lib/Code/TidyAll/Plugin.pm
+++ b/lib/Code/TidyAll/Plugin.pm
@@ -184,7 +184,7 @@ as parameters. e.g. given
     argv = -severity 3
 
 then L<Code::TidyAll::Plugin::PerlCritic|Code::TidyAll::Plugin::PerlCritic>
-would be construted with parameters
+would be constructed with parameters
 
     select => 'lib/**/*.pm', 
     ignore = 'lib/UtterHack.pm',
diff --git a/lib/Code/TidyAll/Plugin/JSBeautify.pm b/lib/Code/TidyAll/Plugin/JSBeautify.pm
index 94f8b26..4d6b5c2 100644
--- a/lib/Code/TidyAll/Plugin/JSBeautify.pm
+++ b/lib/Code/TidyAll/Plugin/JSBeautify.pm
@@ -37,7 +37,7 @@ Code::TidyAll::Plugin::JSBeautify - use js-beautify with tidyall
 
 =head1 DESCRIPTION
 
-Runs L<js-beautify|https://npmjs.org/package/js-beautify>, a Javascript tidier.
+Runs L<js-beautify|https://npmjs.org/package/js-beautify>, a JavaScript tidier.
 
 =head1 INSTALLATION
 
diff --git a/lib/Code/TidyAll/Plugin/JSHint.pm b/lib/Code/TidyAll/Plugin/JSHint.pm
index 51de692..246a711 100644
--- a/lib/Code/TidyAll/Plugin/JSHint.pm
+++ b/lib/Code/TidyAll/Plugin/JSHint.pm
@@ -76,7 +76,7 @@ Code::TidyAll::Plugin::JSHint - use jshint with tidyall
 
 =head1 DESCRIPTION
 
-Runs L<jshint|http://www.jshint.com/>, a Javascript validator, and dies if any
+Runs L<jshint|http://www.jshint.com/>, a JavaScript validator, and dies if any
 problems were found.
 
 =head1 INSTALLATION
diff --git a/lib/Code/TidyAll/Plugin/JSLint.pm b/lib/Code/TidyAll/Plugin/JSLint.pm
index 82afb0e..c917f3e 100644
--- a/lib/Code/TidyAll/Plugin/JSLint.pm
+++ b/lib/Code/TidyAll/Plugin/JSLint.pm
@@ -33,7 +33,7 @@ Code::TidyAll::Plugin::JSLint - use jslint with tidyall
 
 =head1 DESCRIPTION
 
-Runs L<jslint|http://www.jslint.com/>, a Javascript validator, and dies if any
+Runs L<jslint|http://www.jslint.com/>, a JavaScript validator, and dies if any
 problems were found.
 
 =head1 INSTALLATION
diff --git a/lib/Code/TidyAll/Plugin/PodChecker.pm b/lib/Code/TidyAll/Plugin/PodChecker.pm
index f947fe1..d33212e 100644
--- a/lib/Code/TidyAll/Plugin/PodChecker.pm
+++ b/lib/Code/TidyAll/Plugin/PodChecker.pm
@@ -15,7 +15,7 @@ sub validate_file {
     my $output  = capture_merged { $checker->parse_from_file( $file, \*STDERR ) };
     die $output
       if $checker->num_errors
-          or ( $self->warnings && $checker->num_warnings );
+      or ( $self->warnings && $checker->num_warnings );
 }
 
 1;
diff --git a/lib/Code/TidyAll/SVN/Precommit.pm b/lib/Code/TidyAll/SVN/Precommit.pm
index bd18347..d352e12 100644
--- a/lib/Code/TidyAll/SVN/Precommit.pm
+++ b/lib/Code/TidyAll/SVN/Precommit.pm
@@ -161,7 +161,7 @@ __END__
 
 =head1 NAME
 
-Code::TidyAll::SVN::Precommit - Subversion precommit hook that requires files
+Code::TidyAll::SVN::Precommit - Subversion pre-commit hook that requires files
 to be tidyall'd
 
 =head1 SYNOPSIS
@@ -275,17 +275,17 @@ Commit transaction; defaults to C<< $ARGV[1] >>
 
 This module uses L<Log::Any|Log::Any> to log its activity, including all files
 that were checked, an inability to find C<tidyall.ini>, and any runtime errors
-that occur. You can create a simple datestamped log file with
+that occur. You can create a simple date-stamped log file with
 
     use Log::Any::Adapter (File => "/path/to/hooks/logs/tidyall.log");
 
 or do something fancier with one of the other L<Log::Any
 adapters|Log::Any::Adapter>.
 
-Having a log file is especially useful with precommit hooks since there is no
+Having a log file is especially useful with pre-commit hooks since there is no
 way for the hook to send back output on a successful commit.
 
-=head1 ACKNOWLEDGEMENTS
+=head1 ACKNOWLEDGMENTS
 
 Thanks to Alexander Simakov, author of
 L<perlcritic-checker|http://search.cpan.org/~xdr/perlcritic-checker-1.2.6/>,
diff --git a/lib/Pod/Weaver/Section/SeeAlsoCodeTidyAll.pm b/lib/Pod/Weaver/Section/SeeAlsoCodeTidyAll.pm
index 53472bd..9e39cc0 100644
--- a/lib/Pod/Weaver/Section/SeeAlsoCodeTidyAll.pm
+++ b/lib/Pod/Weaver/Section/SeeAlsoCodeTidyAll.pm
@@ -13,9 +13,9 @@ sub weave_section {
     for ( my $i = 0 ; $i < $idc->length ; $i++ ) {
         next unless my $para = $idc->[$i];
         return
-          if $para->can('command')
-              && $para->command eq 'head1'
-              && $para->content eq 'SEE ALSO';
+             if $para->can('command')
+          && $para->command eq 'head1'
+          && $para->content eq 'SEE ALSO';
     }
     $document->children->push(
         Pod::Elemental::Element::Nested->new(
diff --git a/tidyall.ini b/tidyall.ini
index 53cbd1f..0f169ab 100644
--- a/tidyall.ini
+++ b/tidyall.ini
@@ -5,6 +5,11 @@ select = {bin,lib,t}/**/{tidyall,*.{pl,pm,t}}
 [PodTidy]
 select = {bin,lib}/**/{tidyall,*.{pl,pm,pod}}
 
+[PodSpell]
+select = {bin,lib}/**/{tidyall,*.{pl,pm,pod}}
+allow_words = conf jsbeautify jshint jslint masontidy perlcritic perlcriticrc perltidy dir js noll repos txn lib
+show_suggestions = 1
+
 [PerlCritic]
 select = lib/**/*.pm
 argv = --profile $ROOT/perlcriticrc

-- 
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