Skip to content

A tool that, when executed inside a folder, creates a profile of all the code inside that directory and its sub-directories. (Right now it only works with .py files. The Result is a .txt file with the total number of lines of code (with and without counting empty lines)

License

Notifications You must be signed in to change notification settings

RaffaeleFiorillo/CodeLinesCounter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LinesCounter

Ever wondered how big your coding masterpiece has become, but dread the thought of manually counting lines? Fear not, because LinesCounter is here to save the day! 🚀

LinesCounter is a nifty command-line tool meticulously crafted to help you gauge the size of your project's codebase, without breaking a sweat. Whether you're neck-deep in Python, sailing through C#, soaring with JavaScript, etc. LinesCounter effortlessly counts lines of code, making your life as a developer a whole lot easier. With just a few clicks and even less seconds, it swoops through your project directory and sub-directories, crunches the numbers, and presents you with an insightful report.

Features

  • Counts lines of code in files of specified types (e.g: .py, .cs, .js) within a given directory and all its sub-directories.
  • Counts both total lines number and non-empty lines number for each file and whole project.
  • Generates a detailed report in a user-friendly format.
  • Saves the information in a file named Lines_of_Code_Report.txt.

How to Use

  1. Download LinesCounter.exe (Windows) or LinesCounter.py (Windows, Linux, Mac, ...) and the LinesCounter-config.txt file;
  2. Place them in the root folder of your project;
  3. Open the LinesCounter-config.txt and change the configuratoin according to your needs;
  4. Execute the tool: 4-a. (Using LinesCounter.exe) double click on it; 4-b. (Using LinesCounter.py) open terminal/comand prompt and execute it;
  5. Once the process is complete, check the Lines_of_Code_Report.txt file in the same directory for the detailed report, including total lines of code and total non-empty lines of code.

Improvements

LinesCounter is designed for simplicity and ease of use, providing a quick way to assess the size and complexity of your codebase. Feel free to customize and enhance the tool to suit your specific needs. If you encounter any issues or have suggestions for improvements, please feel free to contribute to the project. Happy coding!

About

A tool that, when executed inside a folder, creates a profile of all the code inside that directory and its sub-directories. (Right now it only works with .py files. The Result is a .txt file with the total number of lines of code (with and without counting empty lines)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages