federicobond / solcheck

A Solidity linter written in JS
GNU General Public License v3.0
32 stars 7 forks source link

Support nested folder structures #10

Closed maurelian closed 7 years ago

maurelian commented 7 years ago

Running on github.com/weifund/weifund-contracts, which has a very nested folder structure, I get:

$ solcheck src/contracts/*
fs.js:681
  return binding.read(fd, buffer, offset, length, position);
                 ^

Error: EISDIR: illegal operation on a directory, read
    at Object.fs.readSync (fs.js:681:18)
    at tryReadSync (fs.js:542:20)
    at Object.fs.readFileSync (fs.js:585:19)
    at /Users/primary/.nvm/versions/node/v8.2.1/lib/node_modules/solcheck/lib/index.js:34:33
    at f (/Users/primary/.nvm/versions/node/v8.2.1/lib/node_modules/solcheck/node_modules/once/once.js:25:25)
    at Glob.<anonymous> (/Users/primary/.nvm/versions/node/v8.2.1/lib/node_modules/solcheck/node_modules/glob/glob.js:151:7)
    at emitOne (events.js:115:13)
    at Glob.emit (events.js:210:7)
    at Glob._finish (/Users/primary/.nvm/versions/node/v8.2.1/lib/node_modules/solcheck/node_modules/glob/glob.js:197:8)
    at done (/Users/primary/.nvm/versions/node/v8.2.1/lib/node_modules/solcheck/node_modules/glob/glob.js:182:14)