]> git.donarmstrong.com Git - perltidy.git/log
perltidy.git
17 months agominor code cleanups
Steve Hancock [Sun, 24 Dec 2023 20:16:28 +0000 (12:16 -0800)]
minor code cleanups

reduce nesting depth, and convert all remaining @{word} to @word

17 months agoupdate -duv to work better with v5.36 experimental for_list
Steve Hancock [Sat, 23 Dec 2023 16:14:37 +0000 (08:14 -0800)]
update -duv to work better with v5.36 experimental for_list

17 months agoupdate links, add section on vertical alignment
Steve Hancock [Wed, 20 Dec 2023 23:56:43 +0000 (15:56 -0800)]
update links, add section on vertical alignment

17 months agobe sure Klast is undef if Kfirst is undef
Steve Hancock [Wed, 20 Dec 2023 15:56:08 +0000 (07:56 -0800)]
be sure Klast is undef if Kfirst is undef

not a bug, but could be confusing when code is updated

17 months agoadd section on list formatting
Steve Hancock [Wed, 20 Dec 2023 15:55:40 +0000 (07:55 -0800)]
add section on list formatting

17 months agoupdate docs
Steve Hancock [Tue, 19 Dec 2023 15:58:12 +0000 (07:58 -0800)]
update docs

17 months agoupdate comments
Steve Hancock [Mon, 18 Dec 2023 23:13:12 +0000 (15:13 -0800)]
update comments

17 months agooptimize -wvt
Steve Hancock [Mon, 18 Dec 2023 16:11:14 +0000 (08:11 -0800)]
optimize -wvt

Run time is significantly reduced by skipping needless counting
Total run time with -wvt=1 now increases by <<1% vs without -wvt

17 months agoimprove code for finding unused vars in if-chains with -duv
Steve Hancock [Mon, 18 Dec 2023 00:58:36 +0000 (16:58 -0800)]
improve code for finding unused vars in if-chains with -duv

18 months agoadd check for missing string parameter, c312
Steve Hancock [Sat, 16 Dec 2023 15:10:56 +0000 (07:10 -0800)]
add check for missing string parameter, c312

18 months agobump to 20230912.07 20230912.07
Steve Hancock [Thu, 14 Dec 2023 18:37:43 +0000 (10:37 -0800)]
bump to 20230912.07

18 months agoimprove scan for unused vars
Steve Hancock [Thu, 14 Dec 2023 16:05:40 +0000 (08:05 -0800)]
improve scan for unused vars

18 months agochange dv to duv, wv to wvt=s
Steve Hancock [Wed, 13 Dec 2023 16:34:17 +0000 (08:34 -0800)]
change dv to duv, wv to wvt=s

The old names were a little confusing because they were very similar but
one took an arg and the other did not.
  dump-variables     -> dump-unusual-variables  (dv->duv)
  warn-variables=s   -> warn-variable-types     (wv->wvt)

18 months agofix minor issues found with -wv
Steve Hancock [Tue, 12 Dec 2023 16:20:06 +0000 (08:20 -0800)]
fix minor issues found with -wv

18 months agofix some minor issues found with -dv
Steve Hancock [Tue, 12 Dec 2023 00:58:56 +0000 (16:58 -0800)]
fix some minor issues found with -dv

18 months agoupdate examples
Steve Hancock [Mon, 11 Dec 2023 15:57:09 +0000 (07:57 -0800)]
update examples

18 months agoexclude all dump- parameters from random testing
Steve Hancock [Mon, 11 Dec 2023 15:37:48 +0000 (07:37 -0800)]
exclude all dump- parameters from random testing

18 months agoeliminate all issues identified with -wv
Steve Hancock [Mon, 11 Dec 2023 01:34:00 +0000 (17:34 -0800)]
eliminate all issues identified with -wv

18 months agoupdate docs
Steve Hancock [Mon, 11 Dec 2023 01:33:51 +0000 (17:33 -0800)]
update docs

18 months agosort package error messages by line number 20230912.06
Steve Hancock [Sat, 9 Dec 2023 16:33:04 +0000 (08:33 -0800)]
sort package error messages by line number

18 months agoupdate docs
Steve Hancock [Sat, 9 Dec 2023 16:32:49 +0000 (08:32 -0800)]
update docs

18 months agobump version to .06
Steve Hancock [Sat, 9 Dec 2023 15:33:53 +0000 (07:33 -0800)]
bump version to .06

18 months agoupdate docs
Steve Hancock [Sat, 9 Dec 2023 00:56:03 +0000 (16:56 -0800)]
update docs

18 months agoadd docs for -dv and -wv
Steve Hancock [Sat, 9 Dec 2023 00:26:27 +0000 (16:26 -0800)]
add docs for -dv and -wv

18 months agominor changes to -dv and -wv options
Steve Hancock [Sat, 9 Dec 2023 00:24:52 +0000 (16:24 -0800)]
minor changes to -dv and -wv options

18 months agonear final coding of --warn-variables and --dump-variables
Steve Hancock [Thu, 7 Dec 2023 01:11:33 +0000 (17:11 -0800)]
near final coding of --warn-variables and --dump-variables

these work but still need documentation

18 months agocleanup -wvu code
Steve Hancock [Wed, 6 Dec 2023 02:53:07 +0000 (18:53 -0800)]
cleanup -wvu code

18 months agoadd -wvuxl
Steve Hancock [Tue, 5 Dec 2023 03:56:25 +0000 (19:56 -0800)]
add -wvuxl

18 months agoclean up -wvu coding
Steve Hancock [Tue, 5 Dec 2023 00:13:59 +0000 (16:13 -0800)]
clean up -wvu coding

18 months agoupdate -wvu option
Steve Hancock [Mon, 4 Dec 2023 05:20:25 +0000 (21:20 -0800)]
update -wvu option

18 months agoadd -wvu
Steve Hancock [Sat, 2 Dec 2023 03:44:56 +0000 (19:44 -0800)]
add -wvu

18 months agofix search for git home
Steve Hancock [Sat, 2 Dec 2023 02:23:19 +0000 (18:23 -0800)]
fix search for git home

18 months agoadd comment
Steve Hancock [Mon, 27 Nov 2023 16:15:50 +0000 (08:15 -0800)]
add comment

18 months agoremove unused call args
Steve Hancock [Sun, 26 Nov 2023 15:40:17 +0000 (07:40 -0800)]
remove unused call args

18 months agoadd utility blinkers.pl
Steve Hancock [Sat, 25 Nov 2023 15:18:24 +0000 (07:18 -0800)]
add utility blinkers.pl

18 months agoremove unused code
Steve Hancock [Sat, 25 Nov 2023 15:17:38 +0000 (07:17 -0800)]
remove unused code

18 months agofix b1463
Steve Hancock [Sat, 25 Nov 2023 14:18:08 +0000 (06:18 -0800)]
fix b1463

18 months agodo not use --show-options in random testing
Steve Hancock [Sat, 25 Nov 2023 14:17:13 +0000 (06:17 -0800)]
do not use --show-options in random testing

18 months agoadd note to docs about word-wrapping comments (see git#127)
Steve Hancock [Thu, 23 Nov 2023 14:57:02 +0000 (06:57 -0800)]
add note to docs about word-wrapping comments (see git#127)

18 months agofix b1462
Steve Hancock [Tue, 21 Nov 2023 15:18:45 +0000 (07:18 -0800)]
fix b1462

18 months agosimplify logfile switches
Steve Hancock [Mon, 20 Nov 2023 15:42:50 +0000 (07:42 -0800)]
simplify logfile switches

18 months agoadd internal error checks
Steve Hancock [Fri, 17 Nov 2023 00:42:13 +0000 (16:42 -0800)]
add internal error checks

19 months agodo not include -cti (an alias) among random parameters in testing
Steve Hancock [Thu, 16 Nov 2023 15:46:52 +0000 (07:46 -0800)]
do not include -cti (an alias) among random parameters in testing

19 months agoupdate comments
Steve Hancock [Thu, 16 Nov 2023 15:46:28 +0000 (07:46 -0800)]
update comments

19 months agoremove unused code; fix some comments
Steve Hancock [Sun, 12 Nov 2023 16:09:02 +0000 (08:09 -0800)]
remove unused code; fix some comments

19 months agore-order some if tests for improved efficiency
Steve Hancock [Fri, 10 Nov 2023 16:47:01 +0000 (08:47 -0800)]
re-order some if tests for improved efficiency

this simple change in order saves 0.25% run time

19 months agosimplify coding for 'this_batch'
Steve Hancock [Fri, 10 Nov 2023 03:24:05 +0000 (19:24 -0800)]
simplify coding for 'this_batch'

19 months agorevise sub set_vertical_tightness_flags
Steve Hancock [Wed, 8 Nov 2023 19:09:07 +0000 (11:09 -0800)]
revise sub set_vertical_tightness_flags

19 months agoskip needless flush calls
Steve Hancock [Tue, 7 Nov 2023 13:47:03 +0000 (05:47 -0800)]
skip needless flush calls

19 months agosimplify several split calls
Steve Hancock [Mon, 6 Nov 2023 15:43:20 +0000 (07:43 -0800)]
simplify several split calls

19 months agobump version to .05 20230912.05
Steve Hancock [Sun, 5 Nov 2023 23:31:29 +0000 (15:31 -0800)]
bump version to .05

19 months agofix split
Steve Hancock [Sun, 5 Nov 2023 23:31:06 +0000 (15:31 -0800)]
fix split

19 months agofix issue c302
Steve Hancock [Sun, 5 Nov 2023 22:29:51 +0000 (14:29 -0800)]
fix issue c302

19 months agoadd integer option range checks before processing
Steve Hancock [Sun, 5 Nov 2023 02:13:14 +0000 (19:13 -0700)]
add integer option range checks before processing

Previously, integer ranges were checked and fixed after processing started.

19 months agocheck for negative -i and -ci
Steve Hancock [Thu, 2 Nov 2023 01:56:14 +0000 (18:56 -0700)]
check for negative -i and -ci

19 months agomore efficient data structures for token tree navigation, part 2
Steve Hancock [Tue, 31 Oct 2023 17:35:36 +0000 (10:35 -0700)]
more efficient data structures for token tree navigation, part 2

19 months agomore efficient data structures for token tree navigation, part 1
Steve Hancock [Mon, 30 Oct 2023 13:27:29 +0000 (06:27 -0700)]
more efficient data structures for token tree navigation, part 1

This eliminates a lot of double indexing

19 months agocheck size of files arriving from stdin
Steve Hancock [Sun, 29 Oct 2023 01:22:53 +0000 (18:22 -0700)]
check size of files arriving from stdin

19 months agouse more efficient tokenizer checks for special cases
Steve Hancock [Fri, 27 Oct 2023 17:18:31 +0000 (10:18 -0700)]
use more efficient tokenizer checks for special cases

19 months agouse more efficient check for negative levels
Steve Hancock [Fri, 27 Oct 2023 17:18:10 +0000 (10:18 -0700)]
use more efficient check for negative levels

19 months agocheck for negative --starting-indentation-level
Steve Hancock [Fri, 27 Oct 2023 17:17:41 +0000 (10:17 -0700)]
check for negative --starting-indentation-level

19 months agoimprove guessing rule for division vs pattern (c243)
Steve Hancock [Thu, 26 Oct 2023 16:12:48 +0000 (09:12 -0700)]
improve guessing rule for division vs pattern (c243)

perl counts a newline as a space when guessing

19 months agoadd internal tokenizer consistency check
Steve Hancock [Thu, 26 Oct 2023 14:42:50 +0000 (07:42 -0700)]
add internal tokenizer consistency check

19 months agooptimization
Steve Hancock [Wed, 25 Oct 2023 14:51:01 +0000 (07:51 -0700)]
optimization

19 months agoupdate max_arguments
Steve Hancock [Wed, 25 Oct 2023 14:45:13 +0000 (07:45 -0700)]
update max_arguments

19 months agoreformat some long arg lists
Steve Hancock [Wed, 25 Oct 2023 14:44:56 +0000 (07:44 -0700)]
reformat some long arg lists

19 months agoreformat some long arg lists
Steve Hancock [Tue, 24 Oct 2023 19:22:48 +0000 (12:22 -0700)]
reformat some long arg lists

19 months agorewrite several arg lists as hashes for clarity
Steve Hancock [Tue, 24 Oct 2023 15:04:44 +0000 (08:04 -0700)]
rewrite several arg lists as hashes for clarity

19 months agocheck for and warn on non-ascii characters in perltidy modules
Steve Hancock [Mon, 23 Oct 2023 14:55:54 +0000 (07:55 -0700)]
check for and warn on non-ascii characters in perltidy modules

These are undesirable. For example, even 1 non-ascii char forces a very slow
check for utf-8 every time perltidy reformats itself, which is often.

19 months agotokenize non-operator '&^' as type identifier
Steve Hancock [Mon, 23 Oct 2023 14:48:52 +0000 (07:48 -0700)]
tokenize non-operator '&^' as type identifier

perl takes this to be a call to a sub '^'

19 months agoimprove efficiency
Steve Hancock [Mon, 23 Oct 2023 13:33:41 +0000 (06:33 -0700)]
improve efficiency

19 months agorewrite and simplify sub count_sub_args
Steve Hancock [Sat, 21 Oct 2023 18:32:00 +0000 (11:32 -0700)]
rewrite and simplify sub count_sub_args

the count is now displayed as '*' if an arg is itself a list

19 months agounpack args of non time-critical subs
Steve Hancock [Wed, 18 Oct 2023 14:28:11 +0000 (07:28 -0700)]
unpack args of non time-critical subs

20 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

20 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

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

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

20 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

20 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

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

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

20 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

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

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

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

20 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

20 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

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

20 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

20 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

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

20 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

20 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

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

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

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

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

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

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

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