Skip to main content

module lang::php::util::CLOC

rascal-0.42.0
org.rascalmpl.php-analysis-0.3.3

Usage

import lang::php::util::CLOC;

Dependencies

import util::ShellExec;
import IO;
import String;
import List;
import lang::php::util::Corpus;
import lang::php::util::Utils;

data ClocResult

data ClocResult  
= clocResult(int files, int blankLines, int commentLines, int sourceLines)
| noResult()
;

function phpLinesOfCode

ClocResult phpLinesOfCode(loc l, loc clocPath)
Compute the source lines of code for a given location. This location
could be a single file or a directory.