More detailed data from the output for 'Syntax check'
Posted: Mon Nov 08, 2021 1:15 am
Sometimes I like to know how much code there is in a given project and how much new code I've added in a day's coding. It would be useful to have a fast and easy way to obtain the total number of lines in a project, the number of pure code lines, and the number of code lines plus comments. And perhaps also the number of code statements.
The 'Syntax check' option in the 'Compiler' menu shows the number of lines in the project being checked, but this includes blank lines and comment lines. Comment lines involve some degree of work so it can be useful to see the number of them, but knowing the number of blank lines generally isn't useful data.
This is an example of what the output from 'Syntax check' might currently show:-
[10:49:57] [COMPILER] Syntax check finished (1000 lines)
This is an example of what I'd like to see from it:-
[10:49:57] [COMPILER] Syntax check finished (1000 lines total) (700 lines code only) (100 lines comment only) (900 statements)
The 'Syntax check' option in the 'Compiler' menu shows the number of lines in the project being checked, but this includes blank lines and comment lines. Comment lines involve some degree of work so it can be useful to see the number of them, but knowing the number of blank lines generally isn't useful data.
This is an example of what the output from 'Syntax check' might currently show:-
[10:49:57] [COMPILER] Syntax check finished (1000 lines)
This is an example of what I'd like to see from it:-
[10:49:57] [COMPILER] Syntax check finished (1000 lines total) (700 lines code only) (100 lines comment only) (900 statements)