Skip to content

Commit ed42c87

Browse files
committed
Adjust 'fromSource' to hold only on '.cs' files
1 parent b36d35b commit ed42c87

File tree

1 file changed

+1
-1
lines changed
  • csharp/ql/src/semmle/code/csharp

1 file changed

+1
-1
lines changed

csharp/ql/src/semmle/code/csharp/File.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class File extends Container, @file {
192192
override string getURL() { result = "file://" + this.getAbsolutePath() + ":0:0:0:0" }
193193

194194
/** Holds if this file contains source code. */
195-
predicate fromSource() { this.getNumberOfLinesOfCode() > 0 }
195+
predicate fromSource() { files(this, _, _, "cs", _) }
196196

197197
/** Holds if this file is a library. */
198198
predicate fromLibrary() {

0 commit comments

Comments
 (0)