]>
git.donarmstrong.com Git - perltidy.git/log
Steve Hancock [Mon, 24 Jul 2023 19:12:46 +0000 (12:12 -0700)]
rewrite sub process_filter_layer
Steve Hancock [Sun, 23 Jul 2023 00:01:27 +0000 (17:01 -0700)]
add ability to write to SCALAR and ARRAY refs
this is needed for a future update
Steve Hancock [Fri, 21 Jul 2023 16:55:03 +0000 (09:55 -0700)]
simplify some i/o logic; eliminate one call to LineSink
Steve Hancock [Thu, 20 Jul 2023 22:38:27 +0000 (15:38 -0700)]
update docs
Steve Hancock [Thu, 20 Jul 2023 22:24:39 +0000 (15:24 -0700)]
add another error check for -line-range-tidy
Steve Hancock [Tue, 18 Jul 2023 15:24:58 +0000 (08:24 -0700)]
add parameter --line-range-tidy=n1:n2 (see git #122)
Steve Hancock [Mon, 17 Jul 2023 22:05:52 +0000 (15:05 -0700)]
simplify code for line-endings
Steve Hancock [Fri, 14 Jul 2023 14:19:44 +0000 (07:19 -0700)]
avoid PerlCritic complaint
Steve Hancock [Thu, 13 Jul 2023 23:49:07 +0000 (16:49 -0700)]
eliminate final use of Perl::Tidy::LineSource
Steve Hancock [Thu, 13 Jul 2023 22:06:03 +0000 (15:06 -0700)]
eliminate a call to Perl::Tidy::LineSource for efficiency
Steve Hancock [Thu, 13 Jul 2023 16:36:49 +0000 (09:36 -0700)]
add error checks
Steve Hancock [Wed, 12 Jul 2023 17:50:26 +0000 (10:50 -0700)]
ignore code-skipping sections when guessing indentation
This could happen if a script started with a code-skipping section
Steve Hancock [Wed, 12 Jul 2023 03:17:41 +0000 (20:17 -0700)]
fix b1458
Steve Hancock [Wed, 12 Jul 2023 01:04:04 +0000 (18:04 -0700)]
eliminate use of Perl::Tidy::LineBuffer
this improves efficiency and will simplify error checking
Steve Hancock [Sat, 8 Jul 2023 03:04:52 +0000 (20:04 -0700)]
fix c231
Steve Hancock [Fri, 7 Jul 2023 14:51:27 +0000 (07:51 -0700)]
fix issue b1457
Steve Hancock [Fri, 7 Jul 2023 14:06:04 +0000 (07:06 -0700)]
add syntax check at '){', issue c230
Steve Hancock [Fri, 7 Jul 2023 00:12:07 +0000 (17:12 -0700)]
update docs
Steve Hancock [Tue, 4 Jul 2023 00:47:00 +0000 (17:47 -0700)]
fix typo
Steve Hancock [Tue, 4 Jul 2023 00:46:23 +0000 (17:46 -0700)]
add -s option to convergence test utility
Steve Hancock [Fri, 30 Jun 2023 22:38:02 +0000 (15:38 -0700)]
update to v20230701
Steve Hancock [Tue, 27 Jun 2023 03:46:21 +0000 (20:46 -0700)]
bump version to .04
Steve Hancock [Mon, 26 Jun 2023 18:41:42 +0000 (11:41 -0700)]
fix b1456
Steve Hancock [Mon, 26 Jun 2023 16:42:40 +0000 (09:42 -0700)]
change param name -ipcsl to -ipc
This simplifies documentation
Steve Hancock [Mon, 26 Jun 2023 01:47:34 +0000 (18:47 -0700)]
add option -ipscl
Steve Hancock [Fri, 23 Jun 2023 00:44:41 +0000 (17:44 -0700)]
fix spelling, add some comments, remove a bad html link
Steve Hancock [Thu, 22 Jun 2023 14:00:29 +0000 (07:00 -0700)]
Activate perlcritic policy Variables::ProhibitPackageVars
Steve Hancock [Wed, 21 Jun 2023 21:37:48 +0000 (14:37 -0700)]
change default from -xbtl=kt to -xbtl=k
Steve Hancock [Sun, 18 Jun 2023 22:53:19 +0000 (15:53 -0700)]
add note on multiple encodings in a file
Steve Hancock [Thu, 15 Jun 2023 16:19:07 +0000 (09:19 -0700)]
fix issue b1455
Steve Hancock [Thu, 15 Jun 2023 13:54:15 +0000 (06:54 -0700)]
fix debug message
Steve Hancock [Thu, 15 Jun 2023 13:48:30 +0000 (06:48 -0700)]
avoid poor alignment of lines with different ci (issue c225)
Steve Hancock [Wed, 14 Jun 2023 18:45:30 +0000 (11:45 -0700)]
fix doc
Steve Hancock [Wed, 14 Jun 2023 18:24:17 +0000 (11:24 -0700)]
Do not align opening braces across ci level changes (c224)
Steve Hancock [Wed, 14 Jun 2023 18:23:07 +0000 (11:23 -0700)]
update docs for -xbt and -xbtl
Steve Hancock [Mon, 12 Jun 2023 02:21:44 +0000 (19:21 -0700)]
remove any space between isolated '$' and '{' (c221)
Steve Hancock [Sun, 11 Jun 2023 21:56:29 +0000 (14:56 -0700)]
avoid testing files known to produce errors
Steve Hancock [Sun, 11 Jun 2023 19:07:50 +0000 (12:07 -0700)]
fix semicolon count; minor code cleanups
Steve Hancock [Sat, 10 Jun 2023 22:12:44 +0000 (15:12 -0700)]
bump vertion to
20230309 .03
Steve Hancock [Sat, 10 Jun 2023 02:55:08 +0000 (19:55 -0700)]
add parameters -xbt, -xbtl; see issue git #121
Steve Hancock [Tue, 6 Jun 2023 01:20:31 +0000 (18:20 -0700)]
simplify and improve efficiency of sub set_ci
Steve Hancock [Tue, 6 Jun 2023 01:20:16 +0000 (18:20 -0700)]
increase max_mccabe
Steve Hancock [Mon, 5 Jun 2023 01:50:54 +0000 (18:50 -0700)]
fix undef when -dbs applied to script without subs
Steve Hancock [Sun, 4 Jun 2023 23:51:06 +0000 (16:51 -0700)]
simplify coding to use available comma counts
Steve Hancock [Mon, 29 May 2023 13:14:27 +0000 (06:14 -0700)]
improve formatting of sort/map/grep blocks
Steve Hancock [Sun, 28 May 2023 00:36:25 +0000 (17:36 -0700)]
minor optimization
Steve Hancock [Sun, 28 May 2023 00:36:05 +0000 (17:36 -0700)]
add a clarifying comment
Steve Hancock [Fri, 26 May 2023 22:05:50 +0000 (15:05 -0700)]
optimization
Steve Hancock [Fri, 26 May 2023 17:50:44 +0000 (10:50 -0700)]
optimizations
Steve Hancock [Fri, 26 May 2023 17:50:30 +0000 (10:50 -0700)]
fix spelling
Steve Hancock [Thu, 25 May 2023 20:14:24 +0000 (13:14 -0700)]
fix ci of a comment in a ternary expression
Steve Hancock [Thu, 25 May 2023 20:13:50 +0000 (13:13 -0700)]
update docs
Steve Hancock [Wed, 24 May 2023 17:06:49 +0000 (10:06 -0700)]
Optimizations, mostly avoiding needless calls
Steve Hancock [Wed, 24 May 2023 16:36:59 +0000 (09:36 -0700)]
reformat
Steve Hancock [Wed, 24 May 2023 16:36:39 +0000 (09:36 -0700)]
update docs
Steve Hancock [Mon, 22 May 2023 19:50:33 +0000 (12:50 -0700)]
optimization of sub tokenizer_wrapup_no_ci
Steve Hancock [Mon, 22 May 2023 19:50:19 +0000 (12:50 -0700)]
update docs
Steve Hancock [Sat, 20 May 2023 02:12:39 +0000 (19:12 -0700)]
update docs
Steve Hancock [Sat, 20 May 2023 00:33:12 +0000 (17:33 -0700)]
add doc on ci update
Steve Hancock [Fri, 19 May 2023 16:27:00 +0000 (09:27 -0700)]
optimization of some new code
Steve Hancock [Fri, 19 May 2023 02:59:30 +0000 (19:59 -0700)]
activate sub set_ci
Steve Hancock [Wed, 17 May 2023 14:21:48 +0000 (07:21 -0700)]
add option to skip ci calc in tokenizer
This will be the future default
Steve Hancock [Tue, 16 May 2023 21:32:03 +0000 (14:32 -0700)]
recent updates to sub set_ci
all open issues with sub set_ci have been resolved
Steve Hancock [Wed, 10 May 2023 20:42:38 +0000 (13:42 -0700)]
minor fixes for sub set_ci
Steve Hancock [Sun, 7 May 2023 13:52:19 +0000 (06:52 -0700)]
minor fixes for sub set_ci
Steve Hancock [Fri, 5 May 2023 13:52:21 +0000 (06:52 -0700)]
minor fixes to sub set_ci
Steve Hancock [Sun, 30 Apr 2023 22:29:22 +0000 (15:29 -0700)]
improve indentation of comments within deeply nested ternaries
Steve Hancock [Sat, 29 Apr 2023 04:21:02 +0000 (21:21 -0700)]
streamline sub set_ci
Steve Hancock [Fri, 28 Apr 2023 02:24:46 +0000 (19:24 -0700)]
improve and optimize sub set_ci
Steve Hancock [Wed, 26 Apr 2023 12:45:38 +0000 (05:45 -0700)]
Insure correct marking of a brace following a format stmt
This does not change formatting but insures that braces
are correctly marked. This fixes issue c202/t032.
Steve Hancock [Wed, 26 Apr 2023 12:39:53 +0000 (05:39 -0700)]
add sub set_ci
This will be the new method for computing ci after testing.
Steve Hancock [Thu, 13 Apr 2023 03:37:37 +0000 (20:37 -0700)]
update for issue git #118
Steve Hancock [Wed, 5 Apr 2023 00:04:03 +0000 (17:04 -0700)]
some tokenizer clean-ups, part 15
Steve Hancock [Tue, 4 Apr 2023 21:23:09 +0000 (14:23 -0700)]
some tokenizer clean-ups, part 14
Steve Hancock [Tue, 4 Apr 2023 18:37:21 +0000 (11:37 -0700)]
some tokenizer clean-ups, part 13
Steve Hancock [Mon, 3 Apr 2023 04:18:21 +0000 (21:18 -0700)]
update markup language filter
Steve Hancock [Sun, 2 Apr 2023 23:34:44 +0000 (16:34 -0700)]
remove unused code
Steve Hancock [Sun, 2 Apr 2023 14:31:34 +0000 (07:31 -0700)]
improve html detection
Add code to guard against reformatting a file written in a markup language
Steve Hancock [Thu, 30 Mar 2023 23:41:42 +0000 (16:41 -0700)]
fix c208, misparse of '$1x$2'
This was found in some obfuscated perl code.
Steve Hancock [Thu, 30 Mar 2023 21:46:22 +0000 (14:46 -0700)]
some tokenizer clean-ups, part 12
Steve Hancock [Thu, 30 Mar 2023 03:03:18 +0000 (20:03 -0700)]
some tokenizer clean-ups, part 11
Steve Hancock [Thu, 30 Mar 2023 00:13:22 +0000 (17:13 -0700)]
some tokenizer clean-ups, part 10
Steve Hancock [Wed, 29 Mar 2023 21:40:55 +0000 (14:40 -0700)]
some tokenizer clean-ups, part 9
Steve Hancock [Wed, 29 Mar 2023 20:15:13 +0000 (13:15 -0700)]
some tokenizer clean-ups, part 8
Steve Hancock [Wed, 29 Mar 2023 00:07:13 +0000 (17:07 -0700)]
some tokenizer clean-ups, part 7
Steve Hancock [Tue, 28 Mar 2023 13:57:42 +0000 (06:57 -0700)]
some tokenizer clean-ups, part 6
Steve Hancock [Mon, 27 Mar 2023 13:38:19 +0000 (06:38 -0700)]
some tokenizer clean-ups, part 5
Steve Hancock [Sun, 26 Mar 2023 02:38:24 +0000 (19:38 -0700)]
some tokenizer clean-ups, part 4
Steve Hancock [Sat, 25 Mar 2023 01:52:51 +0000 (18:52 -0700)]
bump version to .02
Steve Hancock [Sat, 25 Mar 2023 01:40:04 +0000 (18:40 -0700)]
update for issue c206
Steve Hancock [Sat, 25 Mar 2023 01:34:17 +0000 (18:34 -0700)]
param --valign-if-unless, -viu, added for git #116
Steve Hancock [Thu, 23 Mar 2023 18:34:01 +0000 (11:34 -0700)]
some tokenizer clean-ups, part 3
Steve Hancock [Wed, 22 Mar 2023 20:41:51 +0000 (13:41 -0700)]
some tokenizer clean-ups, part 2
Steve Hancock [Wed, 22 Mar 2023 14:41:55 +0000 (07:41 -0700)]
simplify diagnostics object
Previously, the diagnostics object made a call back to the tokenizer to get
the input line number. Now the line number arrives as an optional arg.
Steve Hancock [Tue, 21 Mar 2023 16:39:55 +0000 (09:39 -0700)]
some tokenizer clean-ups, part 1
remove unused sub; switch from $tokenizer_self to $self
Steve Hancock [Mon, 20 Mar 2023 02:37:26 +0000 (19:37 -0700)]
remove unused DIAGNOSTICS parameter, fix comments
Steve Hancock [Sun, 19 Mar 2023 00:31:59 +0000 (17:31 -0700)]
Improve efficiency of counting and removing leading spaces
Steve Hancock [Sat, 18 Mar 2023 00:30:18 +0000 (17:30 -0700)]
replace regex with index function for efficiency
The index functions are about 3x faster in this critical section.
Steve Hancock [Fri, 17 Mar 2023 14:01:33 +0000 (07:01 -0700)]
eliminate sub length_tag
This eliminates a large amount of sub call overhead.
Steve Hancock [Thu, 16 Mar 2023 00:27:34 +0000 (17:27 -0700)]
output file verbatim for certain lexical sub names
Lexical (my) subs which use the builtin names of certain quote-like
operators may cause problems in this version of perltidy. For example
'my sub s {...}' may cause parsing errors. If something like this is
encountered, then formatting will not be attempted; the file will be
output verbatim.