matthiasblaesing opened a new issue, #6836: URL: https://github.com/apache/netbeans/issues/6836
### Discussed in https://github.com/apache/netbeans/discussions/6777 <div type='discussions-op-text'> <sup>Originally posted by **PavelTurk** December 2, 2023</sup> ### Description Currently NB doesn't provide any project statistics. At the same time IntelliJ has [this one](https://plugins.jetbrains.com/plugin/4509-statistic) with 1,915,900 Downloads (I don't know if it's true). So, I suggest to add such feature to NB: - must separate files by type (java, xml, css etc) - must allow to exclude files/directories (node_modules, for example) - must provide easy access to biggest/smallest files I would suggest to do this feature this way. Right click -> Project Statistics or main menu Source/Tools -> Project Statistics After that there must be window with tabs. The first tab is general, all others are by file type - java, xml, etc. General tab contains the following table, with all column header sorting: ``` file file total blank comment code Language count size lines lines lines lines ------------------------------------------------------------------------------- Java 100 200KB 1200 300 400 500 XML 20 100KB 600 100 200 300 ------------------------------------------------------------------------------- Total: 120 300KB 1800 400 600 800 ``` Java tab contains the following table, with all column header sorting: ``` file total blank comment code Language size lines lines lines lines ----------------------------------------------------------------------- ClassA 10KB 100 20 30 50 ClassB 20KB 200 40 60 100 ...... ----------------------------------------------------------------------- Total: 200KB 1200 300 400 500 ``` To make it more interesting it is possible to give percents, for example ``` ClassB 20KB 200 40(20%) 60(30%) 100(50%) ``` ### Why in NetBeans? 1. Although there are different tools outside NB such as maven/gradle reporting plugins, [cloc](https://github.com/AlDanial/cloc) etc it is always better to have it inside IDE - it is both more convenient and gives more opportunities. For example - project -> right click -> statistics show biggest files, double click to open the file. 2. Such feature is very popular - cloc has 17k stars; IntelliJ statistics plugin 1,915,900 Downloads with v.1 release in 2009 and v.4.2.7 released in 2023; this [question about NB statistic support](https://stackoverflow.com/questions/10661636/how-to-count-lines-in-a-netbeans-project) on SO has 42k view and 35 upvotes. </div> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
