mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Adjust 'fromSource' to hold only on '.cs' files
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user