Skip to content

Eizeed/plc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project line counter

How to use:

plc -p [PATH] -e [FILE EXTENSION] [OPTIONS]

Default behavior

  • hidden directories are ignored
  • comments and documentation are ignored
  • default extension is '.rs'
  • default path is directory where it was called

Path

-p --path

example

plc -p /home/user/some_project
check files in provided directory.

File Extension

-e --extension

example

plc -e .rs .py .lua
check all files with given extensions.

Options

  • -v --verbose log the flow of app
  • -a --hidden check files in hidden directories
  • -d --docs count documentation
  • -c --comments count comments
  • -f --fixme count FIXME comments as another instance
  • -t --todo count TODO comments as another instance
  • -r --ratio give ratio of comments, docs and actual code. -c and -d will affect ratio. If those flags are used, ratio will include them. Otherwise if no flags are used, it will always show 100% for loc
  • -j --json convert output to json
RUST SPECIFIC
  • -u --units count structures, functions, impl blocks and declarative macros. If -u is provided with any other extension it will be ignored and set to false.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published