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-inheritance and no-multiple-inheritance rules #8

Closed nfeignon closed 7 years ago

nfeignon commented 7 years ago

In response to the Augur bounties : "Prohibit use of inheritance" and "Prohibit use of multiple inheritance". This commit looks for a ContractStatement. When it finds one, it reports an error if the "is" array has more than 1 element if we want to prohibit multiple inheritance or if it's empty when we want to prohibit inheritance globally.

Let me know if there's anything to fix :)

nfeignon commented 7 years ago

Pull request updated with the requested changes :)