]> git.donarmstrong.com Git - perltidy.git/log
perltidy.git
21 months agobump version to 20230912.04 20230912.04
Steve Hancock [Tue, 17 Oct 2023 00:59:16 +0000 (17:59 -0700)]
bump version to 20230912.04

21 months agofix arg counts for -dbs in some edge cases
Steve Hancock [Tue, 17 Oct 2023 00:41:43 +0000 (17:41 -0700)]
fix arg counts for -dbs in some edge cases

21 months agoadd sub arg count to --dump-block-summary output
Steve Hancock [Mon, 16 Oct 2023 15:19:22 +0000 (08:19 -0700)]
add sub arg count to --dump-block-summary output

This is an initial version which appears to be working.

21 months agoadd clarifying comment
Steve Hancock [Mon, 16 Oct 2023 13:37:53 +0000 (06:37 -0700)]
add clarifying comment

21 months agorestructure to eliminate a global variable
Steve Hancock [Mon, 16 Oct 2023 13:37:22 +0000 (06:37 -0700)]
restructure to eliminate a global variable

21 months agoput sub process_command_line in a closure to hide its hash
Steve Hancock [Mon, 16 Oct 2023 13:36:32 +0000 (06:36 -0700)]
put sub process_command_line in a closure to hide its hash

21 months agoupdate comments
Steve Hancock [Fri, 13 Oct 2023 23:20:59 +0000 (16:20 -0700)]
update comments

21 months agoreorganize code which adds tabs
Steve Hancock [Fri, 13 Oct 2023 21:19:20 +0000 (14:19 -0700)]
reorganize code which adds tabs

21 months agoput global my vars in a closure
Steve Hancock [Fri, 13 Oct 2023 19:45:56 +0000 (12:45 -0700)]
put global my vars in a closure

21 months agoavoid needless vertical alignment operations
Steve Hancock [Thu, 12 Oct 2023 15:07:05 +0000 (08:07 -0700)]
avoid needless vertical alignment operations

21 months agoimprove coding for case b1461
Steve Hancock [Mon, 9 Oct 2023 20:00:27 +0000 (13:00 -0700)]
improve coding for case b1461

21 months agofix b1461
Steve Hancock [Sun, 8 Oct 2023 22:23:12 +0000 (15:23 -0700)]
fix b1461

21 months agofix --presereve-line-endings + --noadd-terminal-newline issue; c283
Steve Hancock [Sat, 7 Oct 2023 15:02:48 +0000 (08:02 -0700)]
fix --presereve-line-endings + --noadd-terminal-newline issue; c283

21 months agobump version to 20230912.03 20230912.03
Steve Hancock [Fri, 6 Oct 2023 14:42:16 +0000 (07:42 -0700)]
bump version to 20230912.03

21 months agoadd -space-signature-paren=n, -ssp=n (see git #125)
Steve Hancock [Fri, 6 Oct 2023 14:32:22 +0000 (07:32 -0700)]
add -space-signature-paren=n, -ssp=n (see git #125)

21 months agoadd checks to verify correct sequence numbers
Steve Hancock [Thu, 5 Oct 2023 23:46:49 +0000 (16:46 -0700)]
add checks to verify correct sequence numbers

21 months agoremove some old checks specific to perl 5.6
Steve Hancock [Thu, 5 Oct 2023 22:51:35 +0000 (15:51 -0700)]
remove some old checks specific to perl 5.6

Perltidy now requires perl 5.8 or later

21 months agocheck on trimming zero length input stream in tokenizer (c286)
Steve Hancock [Thu, 5 Oct 2023 14:40:49 +0000 (07:40 -0700)]
check on trimming zero length input stream in tokenizer (c286)

21 months agoadd note on zero-length input stream
Steve Hancock [Thu, 5 Oct 2023 14:39:54 +0000 (07:39 -0700)]
add note on zero-length input stream

21 months agomake constants for some magic numbers
Steve Hancock [Thu, 5 Oct 2023 14:20:23 +0000 (07:20 -0700)]
make constants for some magic numbers

21 months agoupdate fault check to handle zero length file (c286)
Steve Hancock [Thu, 5 Oct 2023 04:07:03 +0000 (21:07 -0700)]
update fault check to handle zero length file (c286)

21 months agosimplify sub streamhandle
Steve Hancock [Wed, 4 Oct 2023 23:53:06 +0000 (16:53 -0700)]
simplify sub streamhandle

21 months agoremove unused code
Steve Hancock [Tue, 3 Oct 2023 21:43:47 +0000 (14:43 -0700)]
remove unused code

21 months agoimprove error check for unexpected 'elsif' and 'else' (c272)
Steve Hancock [Tue, 3 Oct 2023 14:30:51 +0000 (07:30 -0700)]
improve error check for unexpected 'elsif' and 'else' (c272)

22 months agofix c283
Steve Hancock [Mon, 2 Oct 2023 16:39:45 +0000 (09:39 -0700)]
fix c283

22 months agosimplify logic
Steve Hancock [Mon, 2 Oct 2023 15:06:46 +0000 (08:06 -0700)]
simplify logic

22 months agocleanup some regexes
Steve Hancock [Mon, 2 Oct 2023 14:07:40 +0000 (07:07 -0700)]
cleanup some regexes

22 months agoeliminate a needless else block for clarity
Steve Hancock [Sat, 30 Sep 2023 14:08:06 +0000 (07:08 -0700)]
eliminate a needless else block for clarity

22 months agoadd fault check
Steve Hancock [Sat, 30 Sep 2023 14:07:40 +0000 (07:07 -0700)]
add fault check

22 months agoupdate comments
Steve Hancock [Sat, 30 Sep 2023 14:07:16 +0000 (07:07 -0700)]
update comments

22 months agoremove unused code
Steve Hancock [Sat, 30 Sep 2023 03:41:38 +0000 (20:41 -0700)]
remove unused code

22 months agobump to version 20230912.02 20230912.02
Steve Hancock [Fri, 29 Sep 2023 22:34:01 +0000 (15:34 -0700)]
bump to version 20230912.02

22 months agoupdate comments
Steve Hancock [Fri, 29 Sep 2023 16:48:02 +0000 (09:48 -0700)]
update comments

22 months agoremove unused code, update comments
Steve Hancock [Thu, 28 Sep 2023 21:33:59 +0000 (14:33 -0700)]
remove unused code, update comments

22 months agofurther simplify code for leading whitespace
Steve Hancock [Thu, 28 Sep 2023 04:22:16 +0000 (21:22 -0700)]
further simplify code for leading whitespace

22 months agocleanup code for finding quote modifiers
Steve Hancock [Thu, 28 Sep 2023 01:38:04 +0000 (18:38 -0700)]
cleanup code for finding quote modifiers

22 months agosimplify code for trimming leading whitespace
Steve Hancock [Wed, 27 Sep 2023 23:29:06 +0000 (16:29 -0700)]
simplify code for trimming leading whitespace

22 months agoimprove accuracy of guessed old indentation level in a .LOG file
Steve Hancock [Wed, 27 Sep 2023 21:57:11 +0000 (14:57 -0700)]
improve accuracy of guessed old indentation level in a .LOG file

22 months agomove conversion of CR-LF to LF line endings upstream
Steve Hancock [Wed, 27 Sep 2023 15:12:35 +0000 (08:12 -0700)]
move conversion of CR-LF to LF line endings upstream

22 months agofix minor issue with levels reported in logfile
Steve Hancock [Wed, 27 Sep 2023 13:17:15 +0000 (06:17 -0700)]
fix minor issue with levels reported in logfile

22 months agominor cleanups
Steve Hancock [Tue, 26 Sep 2023 23:37:41 +0000 (16:37 -0700)]
minor cleanups

22 months agoadded some checks on leading whitespace
Steve Hancock [Tue, 26 Sep 2023 01:15:27 +0000 (18:15 -0700)]
added some checks on leading whitespace

22 months agoupdate sub operator_expected
Steve Hancock [Mon, 25 Sep 2023 21:58:20 +0000 (14:58 -0700)]
update sub operator_expected

22 months agorevise method for finding leading spaces
Steve Hancock [Mon, 25 Sep 2023 13:40:06 +0000 (06:40 -0700)]
revise method for finding leading spaces

22 months agominor optimizations
Steve Hancock [Sun, 24 Sep 2023 23:26:22 +0000 (16:26 -0700)]
minor optimizations

22 months agoimprove tokenizer efficiency
Steve Hancock [Fri, 22 Sep 2023 03:33:11 +0000 (20:33 -0700)]
improve tokenizer efficiency

22 months agofix case b1460
Steve Hancock [Thu, 21 Sep 2023 15:07:38 +0000 (08:07 -0700)]
fix case b1460

22 months agoadd option to dump if chains
Steve Hancock [Thu, 21 Sep 2023 00:46:30 +0000 (17:46 -0700)]
add option to dump if chains

22 months agoremove unused hanging side comment code, update comments
Steve Hancock [Tue, 19 Sep 2023 00:55:45 +0000 (17:55 -0700)]
remove unused hanging side comment code, update comments

22 months agorewrite hanging side comment code
Steve Hancock [Mon, 18 Sep 2023 04:14:08 +0000 (21:14 -0700)]
rewrite hanging side comment code

22 months agoadd sub initialize_lpxl_lpil
Steve Hancock [Sat, 16 Sep 2023 16:32:44 +0000 (09:32 -0700)]
add sub initialize_lpxl_lpil

22 months agoeliminate sub initialize_lp_part2
Steve Hancock [Sat, 16 Sep 2023 01:49:59 +0000 (18:49 -0700)]
eliminate sub initialize_lp_part2

22 months agobump version to 2023 09 12.01 20230912.01
Steve Hancock [Fri, 15 Sep 2023 22:27:20 +0000 (15:27 -0700)]
bump version to 2023 09 12.01

22 months agofix c269: -ame trouble with hanging side comment
Steve Hancock [Fri, 15 Sep 2023 22:23:11 +0000 (15:23 -0700)]
fix c269: -ame trouble with hanging side comment

22 months agorewrite sub check_options
Steve Hancock [Fri, 15 Sep 2023 20:16:16 +0000 (13:16 -0700)]
rewrite sub check_options

22 months agoremove a call to streamhandle
Steve Hancock [Fri, 15 Sep 2023 01:43:46 +0000 (18:43 -0700)]
remove a call to streamhandle

Streamhandle can be inefficient to use, so I am minimize its use.

22 months agoupdate comments
Steve Hancock [Fri, 15 Sep 2023 01:13:51 +0000 (18:13 -0700)]
update comments

22 months agocleanup some postfix unless terms
Steve Hancock [Thu, 14 Sep 2023 13:56:55 +0000 (06:56 -0700)]
cleanup some postfix unless terms

22 months agofix for git #124 20230912
Steve Hancock [Tue, 12 Sep 2023 19:59:38 +0000 (12:59 -0700)]
fix for git #124

22 months agosimplify Tokenizer interface
Steve Hancock [Sun, 10 Sep 2023 02:30:18 +0000 (19:30 -0700)]
simplify Tokenizer interface

22 months agoswitch lvalue substr to 4-arg substr
Steve Hancock [Sat, 9 Sep 2023 18:26:09 +0000 (11:26 -0700)]
switch lvalue substr to 4-arg substr

An advantage is that this makes the calls similar to 4-arg splice.

22 months agosimplify logic involving __END__
Steve Hancock [Fri, 8 Sep 2023 22:50:19 +0000 (15:50 -0700)]
simplify logic involving __END__

22 months agoupdate to v20230909 20230909
Steve Hancock [Thu, 7 Sep 2023 14:55:32 +0000 (07:55 -0700)]
update to v20230909

22 months agoremove unused code
Steve Hancock [Wed, 6 Sep 2023 02:04:09 +0000 (19:04 -0700)]
remove unused code

22 months agobump version to .04 20230701.04
Steve Hancock [Tue, 5 Sep 2023 14:54:25 +0000 (07:54 -0700)]
bump version to .04

22 months agoadd parameters --add-missing-else and --warn-missing-else
Steve Hancock [Tue, 5 Sep 2023 03:44:27 +0000 (20:44 -0700)]
add parameters --add-missing-else and --warn-missing-else

22 months agoActive two PC Policies
Steve Hancock [Mon, 4 Sep 2023 22:13:01 +0000 (15:13 -0700)]
Active two PC Policies

ControlStructures::ProhibitNegativeExpressionsInUnlessAndUntilConditions, and
ControlStructures::ProhibitPostfixControls

22 months agosimplify some logic
Steve Hancock [Sun, 3 Sep 2023 22:56:33 +0000 (15:56 -0700)]
simplify some logic

22 months agoeliminate dangling elsif's
Steve Hancock [Sun, 3 Sep 2023 02:55:15 +0000 (19:55 -0700)]
eliminate dangling elsif's

23 months agoactivate ControlStructures::ProhibitUnlessBlocks, part 3
Steve Hancock [Sat, 2 Sep 2023 00:29:35 +0000 (17:29 -0700)]
activate ControlStructures::ProhibitUnlessBlocks, part 3

23 months agoactivate ControlStructures::ProhibitUnlessBlocks, part 2
Steve Hancock [Fri, 1 Sep 2023 23:22:12 +0000 (16:22 -0700)]
activate ControlStructures::ProhibitUnlessBlocks, part 2

23 months agoactivate ControlStructures::ProhibitUnlessBlocks, part 1
Steve Hancock [Fri, 1 Sep 2023 22:11:29 +0000 (15:11 -0700)]
activate ControlStructures::ProhibitUnlessBlocks, part 1

23 months agofix incorrect log file message
Steve Hancock [Fri, 1 Sep 2023 00:54:53 +0000 (17:54 -0700)]
fix incorrect log file message

23 months agoadd Tokenizer missing terminal else blocks
Steve Hancock [Thu, 31 Aug 2023 22:30:46 +0000 (15:30 -0700)]
add Tokenizer missing terminal else blocks

23 months agoadd some missing terminal else blocks
Steve Hancock [Thu, 31 Aug 2023 00:52:31 +0000 (17:52 -0700)]
add some missing terminal else blocks

Some dangling elsif's still exist in Formatter and Tokenizer

23 months agoactivate RegularExpressions::ProhibitComplexRegexes
Steve Hancock [Wed, 30 Aug 2023 02:06:59 +0000 (19:06 -0700)]
activate RegularExpressions::ProhibitComplexRegexes

Had to use a large count. First tried to use ##no critic but hit PC bugs

23 months agoActivate PC policy Subroutines::ProhibitBuiltinHomonyms
Steve Hancock [Tue, 29 Aug 2023 22:07:34 +0000 (15:07 -0700)]
Activate PC policy Subroutines::ProhibitBuiltinHomonyms

23 months agoActivate PC BuiltinFunctions::ProhibitStringyEval
Steve Hancock [Tue, 29 Aug 2023 02:33:33 +0000 (19:33 -0700)]
Activate PC BuiltinFunctions::ProhibitStringyEval

23 months agoupdate docs
Steve Hancock [Mon, 28 Aug 2023 20:46:55 +0000 (13:46 -0700)]
update docs

23 months agominor change in syntax of --use-feature
Steve Hancock [Mon, 28 Aug 2023 01:24:03 +0000 (18:24 -0700)]
minor change in syntax of --use-feature

The default behavior remains the same.  Details in CHANGES

23 months agoactivate PC ProhibitLocalVars and RequireInitializationForLocalVars
Steve Hancock [Sat, 26 Aug 2023 23:00:23 +0000 (16:00 -0700)]
activate PC ProhibitLocalVars and RequireInitializationForLocalVars

These policies no longer needed to be skipped

23 months agoclean up some cr/lf code
Steve Hancock [Sat, 26 Aug 2023 22:57:24 +0000 (15:57 -0700)]
clean up some cr/lf code

23 months agoeliminate dummy sub close from IOScalar & IOScalarArray
Steve Hancock [Sat, 26 Aug 2023 18:33:46 +0000 (11:33 -0700)]
eliminate dummy sub close from IOScalar & IOScalarArray

23 months agoactivate PC RegularExpressions::ProhibitSingleCharAlternation
Steve Hancock [Thu, 24 Aug 2023 22:43:56 +0000 (15:43 -0700)]
activate PC RegularExpressions::ProhibitSingleCharAlternation

23 months agoactivate ProhibitUnusedCapture and ProhibitCaptureWithoutTest
Steve Hancock [Thu, 24 Aug 2023 17:36:06 +0000 (10:36 -0700)]
activate ProhibitUnusedCapture and ProhibitCaptureWithoutTest

This makes a few changes to allow perltidy to pass these these tests. But
PerlCritic misses many of these, so I'll fix them as I find them.

23 months agoactivate PC -RegularExpressions::RequireBracesForMultiline
Steve Hancock [Thu, 24 Aug 2023 16:25:40 +0000 (09:25 -0700)]
activate PC -RegularExpressions::RequireBracesForMultiline

23 months agobump to version 20230701.03 20230701.03
Steve Hancock [Thu, 24 Aug 2023 02:38:40 +0000 (19:38 -0700)]
bump to version 20230701.03

23 months agoupdate perlcritic settings
Steve Hancock [Wed, 23 Aug 2023 23:01:15 +0000 (16:01 -0700)]
update perlcritic settings

23 months agofix b1459, edge of stability issue for -xlp
Steve Hancock [Wed, 23 Aug 2023 18:37:50 +0000 (11:37 -0700)]
fix b1459, edge of stability issue for -xlp

23 months agoconvert two boolean grep's to 'first'
Steve Hancock [Wed, 23 Aug 2023 17:42:51 +0000 (10:42 -0700)]
convert two boolean grep's to 'first'

Allows perlcritic to check for this; needed to use 'List::Util::first' since
'any' was not in Perl 5.8.

23 months agoclean up CR/LF coding
Steve Hancock [Wed, 23 Aug 2023 15:29:44 +0000 (08:29 -0700)]
clean up CR/LF coding

23 months agoimprove tokenization of --use-feature=class
Steve Hancock [Wed, 23 Aug 2023 00:27:47 +0000 (17:27 -0700)]
improve tokenization of --use-feature=class

23 months agomake all print filehandles braced
Steve Hancock [Mon, 21 Aug 2023 17:59:43 +0000 (10:59 -0700)]
make all print filehandles braced

This can now be checked with perlcritic

23 months agosharpen identification of indirect objects
Steve Hancock [Mon, 21 Aug 2023 04:52:17 +0000 (21:52 -0700)]
sharpen identification of indirect objects

23 months agofix an issue with line-ending blanks (c258)
Steve Hancock [Mon, 21 Aug 2023 00:10:07 +0000 (17:10 -0700)]
fix an issue with line-ending blanks (c258)

No real cases have been found where this changes formatting,
but it is possible to construct a case where it could produce unwanted
spacing just on the first time perltidy is run. It would be corrected on the
next run because perltidy trims trailing blanks from code lines.

23 months agotest to see if braced filehandle passes on all systems
Steve Hancock [Sat, 19 Aug 2023 22:33:48 +0000 (15:33 -0700)]
test to see if braced filehandle passes on all systems

If this passes everywhere I may update the other modules

23 months agoupdate comments
Steve Hancock [Sat, 19 Aug 2023 22:28:48 +0000 (15:28 -0700)]
update comments

23 months agoeliminate module DevNull.pm
Steve Hancock [Sat, 19 Aug 2023 22:27:33 +0000 (15:27 -0700)]
eliminate module DevNull.pm

23 months agoconvert a do while into a while in sub pre_tokenizer
Steve Hancock [Sat, 19 Aug 2023 14:02:11 +0000 (07:02 -0700)]
convert a do while into a while in sub pre_tokenizer

This makes it easier to read

23 months agofix issue c250 part 2, new sub token type S
Steve Hancock [Fri, 18 Aug 2023 19:21:00 +0000 (12:21 -0700)]
fix issue c250 part 2, new sub token type S