Skip to content

Commit

Permalink
Merge pull request #222 from HaxeCheckstyle/neko.lib
Browse files Browse the repository at this point in the history
neko.lib
  • Loading branch information
adireddy committed Mar 29, 2016
2 parents c49688b + ebdaf90 commit be178b0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion haxelib.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"adireddy"
],
"releasenote": "new release",
"version": "2.1.0",
"version": "2.1.1",
"url": "https://github.com/adireddy/haxe-checkstyle",
"dependencies": {

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
12 changes: 4 additions & 8 deletions src/checkstyle/Checker.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
}
}
Expand Down Expand Up @@ -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;
Expand Down
9 changes: 4 additions & 5 deletions src/checkstyle/checks/Check.hx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import haxeparser.Data;

#if debug
import haxe.CallStack;
import neko.Lib;
#end

using checkstyle.utils.ArrayUtils;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit be178b0

Please sign in to comment.