## 2020 10 01.02
+ - Fix git #44, fix exit status for assert-tidy/untidy. The exit status was
+ always 0 for --assert-tidy if the user had turned off all error messages with
+ the -quiet. This has been fixed.
+
- Add flag -mfs=n, --maximum-file-size-mb=n. This parameter is provided to
avoid causing system problems by accidentally attempting to format an
extremely large data file. The default is n=10. The command to increase
=item B<-q>, B<--quiet>
-Deactivate error messages and syntax checking (for running under
-an editor).
+Deactivate error messages (for running under an editor).
For example, if you use a vi-style editor, such as vim, you may execute
perltidy as a filter from within the editor using something like
The test for this is made by comparing an MD5 hash value for the input and
output code streams. This flag has no other effect on the functioning of
perltidy. This might be useful for certain code maintenance operations.
+Note: you will not see this message if you have error messages turned off with the
+-quiet flag.
=item B<-asu>, B<--assert-untidy>
$logger_object->interrupt_logfile();
$logger_object->warning( $diff_msg . "\n" );
$logger_object->resume_logfile();
- $Warn_count++;
+ $Warn_count++; # insure correct exit if -q flag is set
}
}
if ( $rOpts->{'assert-untidy'} ) {
$logger_object->warning(
"assertion failure: '--assert-untidy' is set but output equals input\n"
);
- $Warn_count++;
+ $Warn_count++; # insure correct exit if -q flag is set
}
}
if ( $next_nonblank_token eq '(' ) {
# For something like:
- # : prototype($$)
+ # : prototype($$)
# we should let do_scan_sub see it so that it can see
# the prototype. All other attributes get parsed as a
# quoted string.
max_token_index => $max_token_index
);
- # If successful, mark as type 'q' to be consistent with other
- # attributes. Note that type 'w' would also work.
+ # If successful, mark as type 'q' to be consistent with other
+ # attributes. Note that type 'w' would also work.
if ( $i > $i_beg ) {
- $type = 'q';
+ $type = 'q';
next;
}
- # If not successful, fall through and parse as a quote.
+ # If not successful, continue and parse as a quote.
}
# All other attribute lists must be parsed as quotes
sub initialize_subname {
$package_saved = "";
$subname_saved = "";
+ return;
}
use constant {
my $id_scan_state = $input_hash{id_scan_state};
my $max_token_index = $input_hash{max_token_index};
- # Determine the CALL TYPE
+ # Determine the CALL TYPE
# 1=sub
# 2=(
# 3=prototype
$proto = $1;
$attrs = $2;
- # Append the prototype to the starting token if it is 'sub' or
- # 'prototype'. This is not necessary but for compatibility with previous
- # versions when the -csc flag is used:
+ # Append the prototype to the starting token if it is 'sub' or
+ # 'prototype'. This is not necessary but for compatibility with previous
+ # versions when the -csc flag is used:
if ( $proto && ( $match || $call_type == PROTOTYPE_CALL ) ) {
$tok .= $proto;
}
=over 4
+=item b<Update for git #44, fix exit status for assert-tidy/untidy>
+
+The exit status was always 0 for --assert-tidy if the user had turned off error
+messages with -quiet. This has been fixed.
+
=item b<Fixed problem parsing extruded signature>
A parsing error was encountered in a test parsing the following extruded