From 383c5373995a20850adc9822ae0def5156c4c221 Mon Sep 17 00:00:00 2001 From: AlexHaxe Date: Fri, 29 Nov 2024 01:09:18 +0100 Subject: [PATCH] moved compiletime to init macro --- build/common.hxml | 3 ++- src/checkstyle/ChecksInfo.hx | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/common.hxml b/build/common.hxml index 065171a3..eb71cca0 100644 --- a/build/common.hxml +++ b/build/common.hxml @@ -2,4 +2,5 @@ -lib haxeparser -lib compiletime -lib hxargs --lib tokentree \ No newline at end of file +-lib tokentree +--macro CompileTime.importPackage("checkstyle.checks") diff --git a/src/checkstyle/ChecksInfo.hx b/src/checkstyle/ChecksInfo.hx index 395bc632..f2b61251 100644 --- a/src/checkstyle/ChecksInfo.hx +++ b/src/checkstyle/ChecksInfo.hx @@ -8,7 +8,6 @@ class ChecksInfo { public function new() { checkInfos = new Map(); - CompileTime.importPackage("checkstyle.checks"); var checksClasses = CompileTime.getAllClasses(Check); for (cl in checksClasses) {