Skip to content

Commit

Permalink
contracts: solium and check command
Browse files Browse the repository at this point in the history
  • Loading branch information
dtebbs committed Dec 17, 2019
1 parent 3473e1e commit 32a8ef4
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
2 changes: 2 additions & 0 deletions zeth-contracts/.soliumignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
contracts/Migrations.sol
23 changes: 23 additions & 0 deletions zeth-contracts/.soliumrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"extends": "solium:recommended",
"plugins": [
"security"
],
"rules": {
"quotes": [
"error",
"double"
],
"indentation": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"security/no-inline-assembly": 0,
"max-len": [ "error", 82 ],
"operator-whitespace": 0
}
}
4 changes: 3 additions & 1 deletion zeth-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"compile": "truffle compile",
"deploy": "truffle deploy",
"test": "truffle test",
"debug": "truffle debug"
"debug": "truffle debug",
"check": "node_modules/solium/bin/solium.js --dir contracts"
},
"author": "Clearmatics Technologies LTD: Cryptography R&D Department",
"license": "LGPL-3.0+",
Expand All @@ -18,6 +19,7 @@
"ganache-cli": "^6.8.0-istanbul.0",
"openzeppelin-solidity": "^2.4.0",
"shell-escape": "^0.2.0",
"solium": "^1.2.5",
"strip-hex-prefix": "^1.0.0",
"web3": "^1.2.4"
}
Expand Down

0 comments on commit 32a8ef4

Please sign in to comment.