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

TODO #14

Open duaraghav8 opened 7 years ago

duaraghav8 commented 7 years ago

Types of refinement to be done

vibern0 commented 6 years ago

I've found that there's actually some tests failing. Is it tests error or the linter?

duaraghav8 commented 6 years ago

Tests could fail due to various reasons, the primary one being if you're running solium on windows. Could you paste the output of test failures

vibern0 commented 6 years ago

I'm running on linux mint, please.

The errors are actually tests that fail.

1) [RULE] no-abstract-func: Rejections
       should reject contracts that use abstract functions:

      AssertionError: expected 0 to be 1
      + expected - actual

      -0
      +1

      at Assertion.fail (node_modules/should/cjs/should.js:275:17)
      at Assertion.value (node_modules/should/cjs/should.js:356:19)
      at Context.<anonymous> (test/no-abstract-func.js:57:34)

  2) [RULE] no-void-returns: Rejections
       should reject functions that have a void return:

      AssertionError: expected 0 to be 1
      + expected - actual

      -0
      +1

      at Assertion.fail (node_modules/should/cjs/should.js:275:17)
      at Assertion.value (node_modules/should/cjs/should.js:356:19)
      at Context.<anonymous> (test/no-void-returns.js:48:34)

  3) Checking package.json
       should enforce fixed versions on certain dependencies:
     AssertionError: expected false to be true
      at Assertion.fail (node_modules/should/cjs/should.js:275:17)
      at Assertion.value (node_modules/should/cjs/should.js:356:19)
      at fixedDevDeps.forEach.fdd (test/packagejson.js:24:59)
      at Array.forEach (<anonymous>)
      at Context.done (test/packagejson.js:23:22)