https://github.com/ucx15/slocc
command line program to count Source lines of code in a directory.(currently only Python 3.x)
https://github.com/ucx15/slocc
cpp lines-of-code sloccount
Last synced: 29 days ago
JSON representation
command line program to count Source lines of code in a directory.(currently only Python 3.x)
- Host: GitHub
- URL: https://github.com/ucx15/slocc
- Owner: ucx15
- License: mit
- Created: 2023-04-08T18:23:38.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-08T18:27:31.000Z (about 3 years ago)
- Last Synced: 2025-02-26T22:20:25.436Z (over 1 year ago)
- Topics: cpp, lines-of-code, sloccount
- Language: C++
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: License.md
Awesome Lists containing this project
README
# Source Lines of Code
## Description
**slocc** _(Source Lines of Code in C++)_ is a command line program which can be used to count Source lines of code in a given directory made in C++.
Currently, it only supports **PYTHON** but
in coming days, I will add support for other languages also.
I made it because I didn't like the [cloc](https://github.com/AlDanial/cloc) project, and wanted to try something I made as a tool in my other projects.
## Build
```
$ g++ Src/main.cpp -std=c++20 -O2 -o slocc.exe
```
## Usage
```
$ ./slocc [options] [path]
```
## Examples
```
$ ./slocc Test/
Checking: Test/
Parsing 3 Files
__________________________________________________
Lines cmnts Blanks SLOC File
__________________________________________________
1000 94 243 665 Test/a_orig.py
1000 94 243 665 Test/a_orig2.py
1000 94 243 665 Test/a_orig3.py
__________________________________________________
3000 282 729 1995 TOTAL
__________________________________________________
Took 2.2738 ms @ (3958131 lines/s)
```
## Author
[ucx15](https://github.com/ucx15/)