https://github.com/basilfx/cloc2sloc
Convert cloc output to SLOCCount compatible output.
https://github.com/basilfx/cloc2sloc
Last synced: 10 months ago
JSON representation
Convert cloc output to SLOCCount compatible output.
- Host: GitHub
- URL: https://github.com/basilfx/cloc2sloc
- Owner: basilfx
- License: mit
- Created: 2015-08-12T09:36:14.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-15T19:50:37.000Z (almost 11 years ago)
- Last Synced: 2025-03-03T14:48:00.862Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 98.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# cloc2sloc
Convert cloc.xml files into sloc files.
[](https://travis-ci.org/basilfx/cloc2sloc)
## Getting Started
Install the module with: `npm install [-g] cloc2sloc`. The run this tool as follows:
```
cloc --xml --by-line --report-file=cloc.xml /path/to/folder
cloc2sloc --input=cloc.xml --output=sloccount.sc
```
## Links
* [Cloc](http://cloc.sourceforge.net/)
* [SLOCCount](http://www.dwheeler.com/sloccount/)
* [Jenkins SLOCCount Plugin](https://github.com/jenkinsci/sloccount-plugin)
## Contributing
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [grunt](https://github.com/cowboy/grunt).
## License
Copyright (c) 2012 Sebastian Springer
Copyright (c) 2015 Bas Stottelaar
Licensed under the MIT license.