Skip to content

This is a small tool for counting lines of code, which can count the lines of code in a specified directory and support counting for specified programming languages. It automatically filters files based on the .gitignore file.

Notifications You must be signed in to change notification settings

Okysu/CodeLineCount

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

CodeLineCount

Description

This is a small tool for counting lines of code, which can count the lines of code in a specified directory and support counting for specified programming languages. It automatically filters files based on the .gitignore file.

Usage

First, you need to modify your code working directory,

code_file_list = build_file_list('your path')

Then, modify the file types you want to count,

patterns = ['*.py', '*.js', '*.html', '*.css', '*.go', "*.ts", "*.java"]

Finally, run the tool,

$ python3 main.py

About

This is a small tool for counting lines of code, which can count the lines of code in a specified directory and support counting for specified programming languages. It automatically filters files based on the .gitignore file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages