duaraghav8 / solium-plugin-security

The Official Security Plugin for Ethlint (formerly Solium)
http://npmjs.com/package/solium-plugin-security
MIT License
44 stars 12 forks source link

Add no-void-returns rule #13

Closed nfeignon closed 6 years ago

nfeignon commented 6 years ago

This adds a no-void-returns rule. It raises an error if a function prototype does not have a return type eg.

function foo () returns (string) {} // OK function foo () {} // NOK

Idea from https://github.com/AugurProject/augur-bounties/issues/5#issuecomment-343762184

tinybike commented 6 years ago

Implemented before I even had the chance to add it to the official bounties list... I'm impressed :grin: