Open pombredanne opened 5 years ago
@pombredanne scans (license and copyrights) return line ranges for the text matched. When you say to include number of lines do you mean to add it for the whole file like here?
When you say to include number of lines do you mean to add it for the whole file like here?
yes, and we have some code to port and start from for this here https://github.com/nexB/scancode-toolkit-contrib/blob/develop/src/sourcecode/metrics.py
@itssingh will you like to work on it? or I can work upon it.
@itssingh will you like to work on it? or I can work upon it.
working on it:)
Since scans (license and copyrights) typically return line ranges, it would be useful to return the number of lines if a file is a text file.