diff --git a/haxelib.json b/haxelib.json index a652778c..22288091 100644 --- a/haxelib.json +++ b/haxelib.json @@ -17,7 +17,7 @@ "adireddy" ], "releasenote": "new release", - "version": "2.1.0", + "version": "2.1.1", "url": "https://github.com/adireddy/haxe-checkstyle", "dependencies": { diff --git a/package.json b/package.json index 2d041fe3..da054b28 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "checkstyle", - "version": "2.1.0", + "version": "2.1.1", "description": "Automated code analysis ideal for projects that want to enforce a coding standard.", "repository": { "type": "git", diff --git a/src/checkstyle/Checker.hx b/src/checkstyle/Checker.hx index e4e55080..50cbd4c1 100644 --- a/src/checkstyle/Checker.hx +++ b/src/checkstyle/Checker.hx @@ -9,10 +9,6 @@ import haxeparser.HaxeLexer; import haxeparser.Data.Token; import sys.io.File; -#if debug -import neko.Lib; -#end - import checkstyle.checks.Category; import checkstyle.token.TokenTree; import checkstyle.token.TokenTreeBuilder; @@ -126,8 +122,8 @@ class Checker { } catch (e:Dynamic) { #if debug - Lib.println(e); - Lib.println("Stacktrace: " + CallStack.toString(CallStack.exceptionStack())); + Sys.println(e); + Sys.println("Stacktrace: " + CallStack.toString(CallStack.exceptionStack())); #end } } @@ -156,8 +152,8 @@ class Checker { } catch (e:Dynamic) { #if debug - Lib.println(e); - Lib.println("Stacktrace: " + CallStack.toString(CallStack.exceptionStack())); + Sys.println(e); + Sys.println("Stacktrace: " + CallStack.toString(CallStack.exceptionStack())); #end } return null; diff --git a/src/checkstyle/checks/Check.hx b/src/checkstyle/checks/Check.hx index 7fb85747..c0e95659 100644 --- a/src/checkstyle/checks/Check.hx +++ b/src/checkstyle/checks/Check.hx @@ -7,7 +7,6 @@ import haxeparser.Data; #if debug import haxe.CallStack; -import neko.Lib; #end using checkstyle.utils.ArrayUtils; @@ -42,10 +41,10 @@ class Check { actualRun(); } catch (e:String) { -#if debug - Lib.println(e); - Lib.println("Stacktrace: " + CallStack.toString(CallStack.exceptionStack())); -#end + #if debug + Sys.println(e); + Sys.println("Stacktrace: " + CallStack.toString(CallStack.exceptionStack())); + #end } } return messages;