Skip to content

Instantly share code, notes, and snippets.

@mig82
Created March 17, 2021 15:28
Show Gist options
  • Save mig82/77a9eb74d879998c832e490690cf1d76 to your computer and use it in GitHub Desktop.
Save mig82/77a9eb74d879998c832e490690cf1d76 to your computer and use it in GitHub Desktop.
Use CLOC to count lines of code in a Visualizer project.
echo jssrc > cloc_exclude_list
echo models >> cloc_exclude_list
echo studioactions >> cloc_exclude_list
echo modules/kony_sdk.js >> cloc_exclude_list
echo modules/require/moment.min.js >> cloc_exclude_list
cloc . \
--exclude-list-file=cloc_exclude_list \
--ignore-whitespace \
--include-ext=js \
--by-file \
--not-match-f='.*ControllerActions.js$'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment