Modify

Opened 13 years ago

Closed 13 years ago

#1974 closed Feature Request (Rejected)

Tidy autoit source auto include and global comment

Reported by: arustad@… Owned by: Jos
Milestone: Component: SciTE4AutoIt
Version: Severity: None
Keywords: Tidy Cc:

Description

I think it would be nice if the tidy tool would add a comment next the the include where it would list what functions are being used by the script that are in the include.

And also if it would comment undenieth global functions what functions that use that global variable. Maybe also have tidy, optionally autoprefix local and global variables with l or g respectfully.

Attachments (0)

Change History (4)

comment:1 Changed 13 years ago by anonymous

Example of what tidy could maybe do.

---before--
#Include <Date.au3>

Global $sDate

echodate()

Func echodate()
Local $X = 1000
$sDate = _Now()
ConsoleWrite(@LF & $sDate)
Sleep($X)
$sDate = _Now()
ConsoleWrite(@LF & $sDate)
EndFunc ;==>echodate

---after tidy---

#Include <Date.au3>; _now,

Global $gsDate

echodate()

Func echodate()

Local $lX = 1000
$gsDate = _Now()
ConsoleWrite(@LF & $gsDate)
Sleep($lX)
$gsDate = _Now()
ConsoleWrite(@LF & $gsDate)

EndFunc ;==>echodate

comment:2 Changed 13 years ago by TicketCleanup

  • Version 3.3.6.1 deleted

Automatic ticket cleanup.

comment:3 Changed 13 years ago by Jos

  • Component changed from AutoIt to SciTE4AutoIt
  • Keywords Tidy added
  • Owner set to Jos

I can imagine this could be done in the Documentation option, but I am not planning to have Tidy add this kind of information to a script as that would mean multiple Iterations.
Have you looked /GD option?

Last edited 13 years ago by Jos (previous) (diff)

comment:4 Changed 13 years ago by Jos

  • Resolution set to Rejected
  • Status changed from new to closed

No response so guess not needed anymore.
Closing as rejected.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain Jos.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.