[Gambas-user] Size of Gambas projects? How to obtain it by script? too many local variables?

Jussi Lahtinen jussi.lahtinen at gmail.com
Thu Nov 28 22:30:54 CET 2019


This shell command will give you line count, but it gives different number.
I guess it counts also empty lines and IDE doesn't.
find . -type f \( -name "*.module" -o -name "*.class" \) -print0 | xargs -0
wc --lines

I have never look at how IDE does that.


Jussi

On Thu, Nov 28, 2019 at 4:04 PM ub2 at gmx.ch <ub2 at gmx.ch> wrote:

> Hi Jussi and mailinglist
>
>
> Answering your questioin: My "project high score" ist 27000.
>
>
> Regarding this "too big projects" topic, I'm with two open questions you
> or somebody else might have an answer in no time.
>
> 1) Is there a way to obtain follwing infos
> - IDE --> Project properties --> Statistics --> Lines of code
> - IDE --> Project properties --> Statistics --> Executable size
> with a Gambas script crawling trough an array of project-paths ?
> (I'd like to get a feeling/warning when I have to stop for "clean up"
> before coding new features)
>
> 2) I wrote a Public Sub running into a "too many local variables" error.
> Is there a way to raise this limit?
> (I'll rewrite it promised. But I'd still like to use in the meantime)
>
>
> Thanks to all.
>
>
> ub2
>
> Am 28.11.19 um 14:17 schrieb Jussi Lahtinen:
> > As the topic says, what is your biggest Gambas project?
> > I'm interested in how big projects Gambas is used.
> >
> > IDE --> Project properties --> Statistics --> Lines of code
> >
> > I know lines of code is quite bad metric, but it gives some picture.
> > My typical project is very small, but my biggest is 52 316 lines.
> >
> > IDE is about 82 000 lines.
> >
> >
> > Jussi
> >
> >
> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20191128/fbf35547/attachment-0001.html>


More information about the User mailing list