Skip to content

List physical lines of code for each directory, by file extension

License

Notifications You must be signed in to change notification settings

DexterHaslem/floc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FLOC

This is a simple tool to output physical lines of code by extension time for all files in a directory, recursively.

Usage

FLOC has 3 command line parameters, which need to be in the go format of -name=value:

  • -dir - sets starting directory to report.
  • -filter - comma separated list of file extensions to report, eg -filter=go,ts. Optional
  • -ignore - comma separated list of paths or filenames to ignore, eg -ignore=node_modules,.git. Optional

Output

The output (stdout) is JSON and looks something like this

{
  "byDir": {
    ".": {
      "go": 53
    },
    "foo\\bar": {
      "ts": 27
    },
    "foo\\baz": {
          "go": 111
        },
  },
  "total": {
    "go": 164,
    "ts": 27
  }
}

About

List physical lines of code for each directory, by file extension

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages