Skip to content

arif-muhammed/GitHub-Java-Analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“Œ Overview

GitHubJavaAnalyzer is a Java console application (Eclipse project) designed to analyze Java source code directly from a GitHub repository. The program clones a repository from a user-provided URL, extracts .java files containing classes, and generates detailed code metrics.

๐Ÿš€ Features

Clone any public GitHub repository by entering its URL

Automatically detect and filter .java class files

Perform code analysis to calculate:

๐Ÿ“– Javadoc comment lines

๐Ÿ’ฌ Other comment lines

๐Ÿ”น Pure code lines (excluding comments & empty lines)

๐Ÿ“Š LOC (total lines of code)

๐Ÿ”ง Number of functions/methods

๐Ÿ“‰ Comment Deviation Percentage

โš™๏ธ Requirements

Java 8 or higher

Git installed on the system

Eclipse IDE (recommended for development & testing)

๐Ÿ–ฅ๏ธ Usage

Run the program from Eclipse or terminal.

Enter the GitHub repository URL when prompted.

The program will clone the repository, extract .java files, and analyze them.

Results will be displayed in the console.

Example Output Class: ExampleClass.java Javadoc lines: 12 Other comments: 8 Code lines: 54 LOC: 75 Functions: 6 Comment Deviation: 15%

๐Ÿ”ฎ Future Improvements

Export analysis results to CSV/JSON for reporting

Support private repositories (with authentication)

Add graphical interface (GUI) for easier usage

๐Ÿค Contributing

Contributions, issues, and feature requests are welcome! Feel free to fork the repo and submit pull requests.

๐Ÿ“œ License

This project is licensed under the MIT License โ€“ free to use, modify, and distribute.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages