Skip to content

Commit

Permalink
Merge pull request #18396 from igfoo/igfoo/path_transformer
Browse files Browse the repository at this point in the history
Kotlin: Add CODEQL_PATH_TRANSFORMER support
  • Loading branch information
igfoo authored Jan 13, 2025
2 parents c68b55b + 78b277b commit 6b182c5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public enum Var {
*/
SEMMLE_TRAP_IMPORTER,
SEMMLE_PRESERVE_SYMLINKS,
CODEQL_PATH_TRANSFORMER,
SEMMLE_PATH_TRANSFORMER,

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ public File canonicalFile(String path) {

private static final PathTransformer DEFAULT_TRANSFORMER;
static {
String layout = Env.systemEnv().get(Var.SEMMLE_PATH_TRANSFORMER);
String layout = Env.systemEnv().get(Var.CODEQL_PATH_TRANSFORMER);
if (layout == null) {
layout = Env.systemEnv().get(Var.SEMMLE_PATH_TRANSFORMER);
}
if (layout == null)
DEFAULT_TRANSFORMER = new NoopTransformer();
else
Expand Down
5 changes: 5 additions & 0 deletions java/ql/lib/change-notes/2025-01-03-path-transformer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
category: feature
---
* The Java and Kotlin extractors now support `CODEQL_PATH_TRANSFORMER`. `SEMMLE_PATH_TRANSFORMER` is still supported, but deprecated.

0 comments on commit 6b182c5

Please sign in to comment.