Skip to content

Commit

Permalink
Kotlin: Support CODEQL_PATH_TRANSFORMER
Browse files Browse the repository at this point in the history
  • Loading branch information
igfoo committed Jan 3, 2025
1 parent b60c860 commit dedb0cb
Show file tree
Hide file tree
Showing 2 changed files with 5 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

0 comments on commit dedb0cb

Please sign in to comment.