X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=TODO;h=4b6341fb51992fa4cf760ec5a44240cd6e886e68;hb=8aa69fbac36a21cad0a1c0d5b3452a546d427d7f;hp=9c3ef3052cb0701db7d2f409c411ab8650177c28;hpb=ed1fffa086693c62340599065543ee1d5c09ee8f;p=perltidy.git diff --git a/TODO b/TODO index 9c3ef30..4b6341f 100644 --- a/TODO +++ b/TODO @@ -1,17 +1,25 @@ Perltidy TODO List - This is a "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. All + of these are of interest, but there is no particular schedule for + implementing them. Improved Vertical Alignment There are many opportunities for improving vertical alignment. improved ?: formatting - An indentation level should be associated with ?: statements. This will + An indentation level should be associated with ?: statements. This would make nested ?: statements more readable. - Recursive file processing - A -r flag might be nice. + 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: + + return $ship->chargeWeapons("phaser-canon") + if $encounter->description eq 'klingon' + and $ship->firepower >= $encounter->firepower + and $location->status ne 'neutral'; Documentation A FAQ is needed to explain some of the more subtle formatting issues, @@ -26,3 +34,12 @@ 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. +