X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=TODO;h=bb1f87437ca0513e9afcfbb5b1c5b2de608bbf2b;hb=5c180637bf79ffc2af10f6654d308ce39e2f1f67;hp=8eaabd68ac248c0196261ad30995240f6ae16a8a;hpb=7272c75ca797879bc1a6bb26ad0f82b89255104a;p=perltidy.git diff --git a/TODO b/TODO index 8eaabd6..bb1f874 100644 --- a/TODO +++ b/TODO @@ -1,30 +1,30 @@ Perltidy TODO List - This is a partial "wish-list" of features to add and things to do. All - of these are of interest, but there is no particular schedule for - implementing them. + This is a partial "wish-list" of features to add and things to do. - Improved Vertical Alignment - There are many opportunities for improving vertical alignment. + -b does not work through the Tidy module + The use of -b in the following does not work: + + use Perl::Tidy (); + use File::Spec; - improved ?: formatting - An indentation level should be associated with ?: statements. This would - make nested ?: statements more readable. + my $file = File::Spec->catfile( $dir, + $filename ); - improved internal if/unless formatting - Consider giving internal if/unless statements an additional level of - indentation. This would avoid running out of indentation levels. - Suggested by Jeff Armstorng. For example, we would like the 'ands' in - the following statement to be indented more than the if: + Perl::Tidy::perltidy( + source => $file, + argv => '-b', + perltidyrc => $perltidyrc, + ); - return $ship->chargeWeapons("phaser-canon") - if $encounter->description eq 'klingon' - and $ship->firepower >= $encounter->firepower - and $location->status ne 'neutral'; + A temporary workaround is: - enable -ole under Windows - This only works under unix (or cygwin) at present. It doesn't work for - Windows versions, such as Active State, because they change line endings - that they don't like. + Perl::Tidy::perltidy( + argv => "-b $file", + perltidyrc => $perltidyrc, + ); + + Improved Vertical Alignment + There are still many opportunities for improving vertical alignment. Documentation A FAQ is needed to explain some of the more subtle formatting issues, @@ -39,12 +39,8 @@ Perltidy TODO List multi-line quotes. Then code needs to be written to scan for and markup identifiers. - Automatic style detection - It would be nice to write a program to read a sample of perl code and - write an approximate .perltidyrc file for that style. - Things which have been suggested but will not be done Recursive file processing - A -r flag might be nice, but this is probably best handled by an - exterior shell script. + A -r flag might be nice, but this is best handled by an exterior shell + script.