discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

"lint" like support for OpenSCAD

K
ken@volksswitch.org
Thu, Feb 28, 2019 5:04 PM

I’m not a very disciplined coder in OpenSCAD.  I just sort of keep adding code and commenting out or deleting code until I get what I want.  It’s not a pretty process.

Now the program is behaving as I’d like but I don’t know how much detritus still exists in the code.

Has anyone written a program that would take an OpenSCAD file as input and would produce a report pointing out things like variables that never get used, modules that never get called, modules that are called with fewer parameters than the module expects (assuming that the new version of OpenSCAD doesn’t already identify this).  Probably other stuff as well that I’d know about if I was a more disciplined coder 😊

Thanks,

Ken

I’m not a very disciplined coder in OpenSCAD. I just sort of keep adding code and commenting out or deleting code until I get what I want. It’s not a pretty process. Now the program is behaving as I’d like but I don’t know how much detritus still exists in the code. Has anyone written a program that would take an OpenSCAD file as input and would produce a report pointing out things like variables that never get used, modules that never get called, modules that are called with fewer parameters than the module expects (assuming that the new version of OpenSCAD doesn’t already identify this). Probably other stuff as well that I’d know about if I was a more disciplined coder 😊 Thanks, Ken