Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5305429

Browse files
committed
Improve QL check for path match on netcore.app.ref in exluded assemblies
1 parent a00c2cc commit 5305429

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

csharp/ql/src/Stubs/AllStubsFromReference.ql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class AllExternalPublicDeclarations extends GeneratedDeclaration {
1212

1313
/** All framework assemblies. */
1414
class NonTargetAssembly extends ExcludedAssembly {
15-
NonTargetAssembly() {
16-
exists(this.getFile().getAbsolutePath().indexOf("Microsoft.NETCore.App.Ref"))
17-
}
15+
NonTargetAssembly() { this.getFile().getAbsolutePath().matches("%Microsoft.NETCore.App.Ref%") }
1816
}
1917

2018
from Assembly a

0 commit comments

Comments
 (0)