Skip to content

Commit

Permalink
removed WhitespaceCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHaxe committed Mar 19, 2016
1 parent 6fb4590 commit 92e8701
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 550 deletions.
24 changes: 0 additions & 24 deletions resources/default-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -560,30 +560,6 @@
},
"type": "VariableInitialisation"
},
{
"props": {
"mode": "around",
"tokens": [
"=>"
],
"contexts": [
"Object",
"Function",
"Field",
"Switch",
"Switch",
"Array",
"Block",
"Class",
"Interface",
"Typedef",
"Abstract",
"Enum"
],
"severity": "IGNORE"
},
"type": "Whitespace"
},
{
"props": {
"tokens": [
Expand Down
18 changes: 16 additions & 2 deletions src/checkstyle/checks/whitespace/OperatorWhitespaceCheck.hx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package checkstyle.checks.whitespace;
import checkstyle.Checker.LinePos;
import checkstyle.token.TokenTree;
import checkstyle.utils.TokenTreeCheckUtils;
import checkstyle.checks.whitespace.WhitespaceCheck.WhitespacePolicy;
import checkstyle.checks.whitespace.WhitespaceCheck.WhitespaceUnaryPolicy;
import haxeparser.Data;
import haxe.macro.Expr;

Expand Down Expand Up @@ -215,4 +213,20 @@ class OperatorWhitespaceCheck extends Check {
}
logPos('OperatorWhitespace policy "$policy" violated by "${TokenDefPrinter.print(tok.tok)}"', tok.pos);
}
}

@:enum
abstract WhitespacePolicy(String) {
var BEFORE = "before";
var AFTER = "after";
var AROUND = "around";
var NONE = "none";
var IGNORE = "ignore";
}

@:enum
abstract WhitespaceUnaryPolicy(String) {
var INNER = "inner";
var NONE = "none";
var IGNORE = "ignore";
}
268 changes: 0 additions & 268 deletions src/checkstyle/checks/whitespace/WhitespaceCheck.hx

This file was deleted.

Loading

0 comments on commit 92e8701

Please sign in to comment.