File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
src/checkstyle/checks/type Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments