Skip to content

Commit b92adf5

Browse files
committed
add function count
`lineNumber` should probably be `lineCount` (number suggests an ordinal, e.g. third line)
1 parent 4fa36b7 commit b92adf5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/analyse.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ module.exports = function analyse (fileRef){
3232
path : fileRef,
3333
escapedPath : fileRef.replace(/\\/g, '\\'), // windows use
3434
complexity : report.aggregate.cyclomatic,
35-
lineNumber : report.aggregate.sloc.logical,
35+
lineCount : report.aggregate.sloc.logical,
36+
functionCount : report.functions.length,
3637
maintainability : Math.round(report.aggregate.halstead.effort),
3738
halstead : {
3839
length : report.aggregate.halstead.length,
@@ -46,4 +47,4 @@ module.exports = function analyse (fileRef){
4647

4748
;
4849

49-
};
50+
};

0 commit comments

Comments
 (0)