Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 064b10a commit b9d15baCopy full SHA for b9d15ba
1 file changed
ruby/ql/src/utils/modeleditor/ModelEditor.qll
@@ -132,7 +132,10 @@ string methodClassification(Call method) {
132
}
133
134
class TestFile extends File {
135
- TestFile() { this.getRelativePath().regexpMatch(".*(test|spec).+") }
+ TestFile() {
136
+ this.getRelativePath().regexpMatch(".*(test|spec).+") and
137
+ not this.getAbsolutePath().matches("%/ql/test/%") // allows our test cases to work
138
+ }
139
140
141
/**
0 commit comments