DescriptionThis project was created to perform source code analysis on the various Linux kernels. The project was written fairly quickly and can be expanded upon to include new language support and new metrics to report on.
Key FeaturesLanguage independent analysis Code normalization based on
... [More]
file's language Source code analysis based on file's language Capabilities to expand on metrics to report Source folders structure is maintained Multi-threaded operations for increased speed How to RunThe Java program is in an executable JAR file, which means it can be ran by executing it. The only problem is that currently there is no user interface which allows the data to be displayed after the analysis. The current implementation is to print to console a report on the root folder and the first level of sub folders. This means to actually get any results the JAR must be ran through terminal/console.
Example running the JAR in Linux's terminal:
java -jar static-source-anlaysis-0.1.jar >> output-file.txt
This will print the output into the output.txt file, which contains the results. In cases where you are running out of memory (should only happen on extremely big folders) increase the JVM's memory by using an alternative run command:
Example running the JAR with increased memory in Linux's terminal:
java -Xms256m -Xmx1024m -XX:-UseGCOverheadLimit -jar static-source-anlaysis-0.1.jar >> output-file.txt
The Xms specifies the starting memory and the Xmx specifies the max amount of memory, The later is what you need to alter depending on the hardware you have. [Less]