Skip to content

Commit

Permalink
new release
Browse files Browse the repository at this point in the history
  • Loading branch information
adireddy committed Sep 5, 2017
1 parent c5837bc commit cad45b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions haxelib.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"contributors": [
"adireddy"
],
"releasenote": "#354",
"version": "2.1.15",
"releasenote": "added enforceReturnTypeForAnonymous option to ReturnCheck #357",
"version": "2.1.16",
"url": "https://github.com/HaxeCheckstyle/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.15",
"version": "2.1.16",
"description": "Automated code analysis ideal for projects that want to enforce a coding standard.",
"repository": {
"type": "git",
Expand Down
5 changes: 2 additions & 3 deletions src/checkstyle/checks/type/ReturnCheck.hx
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,9 @@ class ReturnCheck extends Check {

function warnReturnTypeMissing(name:String, pos:Position) {
if (name == null) {
if (!enforceReturnTypeForAnonymous) {
return;
if (enforceReturnTypeForAnonymous) {
logPos("Return type not specified for anonymous method", pos);
}
logPos("Return type not specified for anonymous method", pos);
}
else logPos('Return type not specified for method "${name}"', pos);
}
Expand Down

0 comments on commit cad45b4

Please sign in to comment.