Skip to content

Commit cad45b4

Browse files
committed
new release
1 parent c5837bc commit cad45b4

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

haxelib.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"contributors": [
1717
"adireddy"
1818
],
19-
"releasenote": "#354",
20-
"version": "2.1.15",
19+
"releasenote": "added enforceReturnTypeForAnonymous option to ReturnCheck #357",
20+
"version": "2.1.16",
2121
"url": "https://github.com/HaxeCheckstyle/haxe-checkstyle",
2222
"dependencies": {
2323

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "checkstyle",
3-
"version": "2.1.15",
3+
"version": "2.1.16",
44
"description": "Automated code analysis ideal for projects that want to enforce a coding standard.",
55
"repository": {
66
"type": "git",

src/checkstyle/checks/type/ReturnCheck.hx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,9 @@ class ReturnCheck extends Check {
108108

109109
function warnReturnTypeMissing(name:String, pos:Position) {
110110
if (name == null) {
111-
if (!enforceReturnTypeForAnonymous) {
112-
return;
111+
if (enforceReturnTypeForAnonymous) {
112+
logPos("Return type not specified for anonymous method", pos);
113113
}
114-
logPos("Return type not specified for anonymous method", pos);
115114
}
116115
else logPos('Return type not specified for method "${name}"', pos);
117116
}

0 commit comments

Comments
 (0)