mirror of
https://github.com/github/codeql.git
synced 2026-02-12 05:01:06 +01:00
Reapply "Add integration test for paths and paths-ignore vs. Java buildless mode"
This reverts commit 9db11f73c5.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
paths:
|
||||
- include
|
||||
paths-ignore:
|
||||
- include/exclude
|
||||
@@ -0,0 +1 @@
|
||||
public class ShouldAppear2 { }
|
||||
@@ -0,0 +1 @@
|
||||
<tag></tag>
|
||||
@@ -0,0 +1 @@
|
||||
public class ShouldNotAppear3 { }
|
||||
@@ -0,0 +1 @@
|
||||
<tag></tag>
|
||||
@@ -0,0 +1 @@
|
||||
public class ShouldNotAppear1 { }
|
||||
@@ -0,0 +1 @@
|
||||
<tag></tag>
|
||||
@@ -0,0 +1,4 @@
|
||||
javaFiles
|
||||
| include/ShouldAppear2.java:0:0:0:0 | ShouldAppear2 |
|
||||
#select
|
||||
| include/ShouldAppear2.xml:0:0:0:0 | include/ShouldAppear2.xml |
|
||||
5
java/ql/integration-tests/java/buildless-paths/test.py
Normal file
5
java/ql/integration-tests/java/buildless-paths/test.py
Normal file
@@ -0,0 +1,5 @@
|
||||
import os
|
||||
import os.path
|
||||
|
||||
def test(codeql, java):
|
||||
codeql.database.create(build_mode = "none", codescanning_config = "codescanning-config.yml")
|
||||
6
java/ql/integration-tests/java/buildless-paths/test.ql
Normal file
6
java/ql/integration-tests/java/buildless-paths/test.ql
Normal file
@@ -0,0 +1,6 @@
|
||||
import java
|
||||
|
||||
query predicate javaFiles(File f) { f.isJavaSourceFile() }
|
||||
|
||||
from XmlFile f
|
||||
select f
|
||||
Reference in New Issue
Block a user