Cleaning up harbour code

Moderator: Rathinagiri

Post Reply
HGAutomator
Posts: 195
Joined: Thu Jul 16, 2020 5:42 pm
DBs Used: DBF

Cleaning up harbour code

Post by HGAutomator »

Hi,

Is there an existing utility to clean up some older code? You know, like identifying unused variables, and maybe re-indenting, that sort of thing?


Regards,
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: Cleaning up harbour code

Post by srvet_claudio »

Hi,
try with:

c:\hmg.3.4.4\build.bat filename.prg -w3 -es2
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Cleaning up harbour code

Post by danielmaximiliano »

en tiempo de compilacion generando un log se obtiene las variables sin usar, esto esta descripto aqui https://raw.githubusercontent.com/harbo ... ldnews.txt
puedes buscar en el navegador "Added detection of unused variable assigments"
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
HGAutomator
Posts: 195
Joined: Thu Jul 16, 2020 5:42 pm
DBs Used: DBF

Re: Cleaning up harbour code

Post by HGAutomator »

Thanks, srvet.
srvet_claudio wrote: Tue Sep 01, 2020 2:36 pm Hi,
try with:

c:\hmg.3.4.4\build.bat filename.prg -w3 -es2
Post Reply