This Go program is a simple tool designed to recursively scan directories, identify source code files, and count the number of comment lines, empty lines, and code lines in each file type. It supports multiple file extensions and handles both single-line and multi-line comments.
- Recursive Directory Scanning: The program will search through all subdirectories starting from the provided root directory.
- Source Code Analysis: It differentiates between comments, empty lines, and code lines.
- Multi-Language Support: By recognizing different file extensions, it can handle various programming languages.
- Go 1.16 or later installed.
- Clone the repository or download the source code.
- Navigate to the directory where the source code is located.
You can run the program using the following command:
go run linen.go
Or Install it using the scipt:
go build -o linen
chmod +x ./util/installer.sh (only once)
./util/installer.sh
linen (from anywhere)
Un-Installation Process:
chmod +x (only once)
./util/uninstaller.sh
- Extended Comment Parsing: Enhance the comment detection logic to support more programming languages and comment styles.
- Concurrency: Implement concurrent file processing to improve performance in large projects. - Done
- Visualization: Improved visualization in terminal and possible usage of html for in browser inspection
This project is licensed under the MIT License - see the LICENSE file for details.