Adjust 'fromSource' to hold only on '.cs' files

This commit is contained in:
Tamas Vajk
2021-04-22 14:17:16 +02:00
parent b36d35bf1e
commit ed42c878b0

View File

@@ -192,7 +192,7 @@ class File extends Container, @file {
override string getURL() { result = "file://" + this.getAbsolutePath() + ":0:0:0:0" }
/** Holds if this file contains source code. */
predicate fromSource() { this.getNumberOfLinesOfCode() > 0 }
predicate fromSource() { files(this, _, _, "cs", _) }
/** Holds if this file is a library. */
predicate fromLibrary() {