Skip to content

willchapman/java-source-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Source Analyzer

Description

This is a simple project, an exercise in learning Go. It will traverse a directory and look for files with the .java extension and count the number of files, the number of non-comment lines and the number of comment lines and print the result.

Build

Assuming go is installed and working, typing the below will build the executable

go build

Running

Once built, the only required parameter is the directory to scan. Below is the usage documentation.

java-source-analyzer.exe: <options> source-directory
 Options are listed below                                     
  -output string                                              
        Chooses the output format (JSON,TEXT) (default "TEXT")

Feedback

Although unlikely, if anyone would like to submit some PRs with some improvements, for learning, it would be greatly appreciated.

About

Counts lines and comments in a source tree

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages