1 => "XP/.Net",
2 => "Win2003",
51 => "NT3.51",
- }
+ },
}->{$id}->{$minor};
# If $os is undefined, the above code is out of date. Suggested updates
last_nonblank_i => $last_nonblank_i,
rpretoken_map => $rtoken_map,
rpretoken_type => $rtoken_type,
- input_line => $input_line
+ input_line => $input_line,
}
);
return 1;
last_nonblank_i => $last_nonblank_i,
rpretoken_map => $rtoken_map,
rpretoken_type => $rtoken_type,
- input_line => $input_line
+ input_line => $input_line,
}
);
if ( $i_tok == 0 ) {
type => $type,
rtokens => $rtokens,
rtoken_map => $rtoken_map,
- max_token_index => $max_token_index
+ max_token_index => $max_token_index,
}
);
$id_scan_state = EMPTY_STRING;
rtodo => \@todo,
rmax_move => \%max_move,
short_pad => $short_pad,
- group_level => $group_level
+ group_level => $group_level,
}
);
return;
tok_m => $tok_m,
pat => $pat,
pat_m => $pat_m,
- pad => $pad
+ pad => $pad,
}
);
if ($match_code) {
-# perltidyrc file for perltidy
-# Note that this is not named .perltidyrc because that would interfere
-# with testing. This has to be requested with -pro=perltidyrc
+# perltidyrc file for perltidy itself
+# Note:
+# - This is not named .perltidyrc because that could interfere
+# with testing. This has to be requested with -pro=perltidyrc
+# - Formatting without these parameters remains stable, so it is not
+# necessary to format with these parameters every time. But it should
+# be done before a commit.
# warnings
--warning-output
--warn-missing-else
--warn-variable-types='*'
-# add sub names to closing brace
+# add comment with sub name to closing sub brace
--closing-side-comments
--closing-side-comment-list='sub'
+
+# add trailing commas to last item of a bare hash list
+--want-trailing-commas='h'
+--add-trailing-commas