Generates a Code Count that can be read by Jenkins (xml format)

This action will run cloc to generate a SLOC report that the Jenkins SLOCCount plugin can read.
See and for more information.

Supported platforms ios, mac
Author @intere

1 Example

   exclude_dir: "ThirdParty,Resources",
   output_directory: "reports",
   source_directory: "MyCoolApp"


Key Description Default
binary_path Where the cloc binary lives on your system (full path including 'cloc') /usr/local/bin/cloc
exclude_dir Comma separated list of directories to exclude
output_directory Where to put the generated report file build
source_directory Where to look for the source code (relative to the project root folder) ''
xml Should we generate an XML File (if false, it will generate a plain text file)? true

* = default value is dependent on the user's system

To show the documentation in your terminal, run

fastlane action cloc

View source code

Back to actions