-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
haxe-checkstyle failures #52
Comments
second hint (because check detection logic might be a bit complex): check detection calls |
I just checked and this is still a problem. |
I've changed one of the tests like so: @Test
public function testDetectSeparatorWrap() {
var check = new SeparatorWrapCheck();
var detectedChecks:Array<CheckConfig> = DetectCodingStyle.detectCodingStyle([check], [buildCheckFile(SAMPLE_CODING_STYLE)]);
Assert.areEqual(1, detectedChecks.length);
Assert.areEqual("SeparatorWrap", detectedChecks[0].type);
var props = cast detectedChecks[0].props;
Sys.println(props); // {}
Sys.println(check.option); // eol
Sys.println(props.option); // null
Assert.areEqual(WrapCheckBaseOption.EOL, props.option);
} So the expected value is on the original instance of I've noticed that
|
Yes the tests pass after changing that to Anyway, genjvm is within the spec here, but to be honest I'm not sure why we can't just make |
I guess I should have read the docs more carefully instead of going with what worked when writing that function.
|
fixed in HaxeCheckstyle/haxe-checkstyle#498 note: I rearranged build files a bit, there is now a |
Alright, thanks for the info! I also realized that I would have to add this I would only consider this if all targets already worked like that, but I don't think that's the case. You probably just got lucky that it works on the targets you were using. |
@AlexHaxe's hint:
The text was updated successfully, but these errors were encountered: