2018-10-24 21:04:34 +02:00
|
|
|
# loc
|
|
|
|
|
2024-02-14 17:25:13 -03:00
|
|
|
> Count lines of code. Written in Rust.
|
2019-06-05 08:55:54 +01:00
|
|
|
> More information: <https://github.com/cgag/loc>.
|
2018-10-24 21:04:34 +02:00
|
|
|
|
|
|
|
- Print lines of code in the current directory:
|
|
|
|
|
|
|
|
`loc`
|
|
|
|
|
|
|
|
- Print lines of code in the target directory:
|
|
|
|
|
|
|
|
`loc {{path/to/directory}}`
|
|
|
|
|
|
|
|
- Print lines of code with stats for individual files:
|
|
|
|
|
|
|
|
`loc --files`
|
|
|
|
|
|
|
|
- Print lines of code without .gitignore (etc.) files (e.g. two -u flags will additionally count hidden files and dirs):
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`loc {{[-u|--unrestricted]}}`
|