Skip to content

Commit

Permalink
WIP: contracts: enable solhint
Browse files Browse the repository at this point in the history
  • Loading branch information
dtebbs committed Dec 16, 2019
1 parent 62bb399 commit 5b60c1b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions zeth-contracts/.solhint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "solhint:default",
"rules": {
"max-line-length": ["error", 80],
"bracket-align": "error",
"separate-by-one-line-in-contract": "error"
}
}
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/solhint/solhint.js contracts/**/*.sol"
},
"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",
"solhint": "^2.3.0",
"strip-hex-prefix": "^1.0.0",
"web3": "^1.2.4"
}
Expand Down

0 comments on commit 5b60c1b

Please sign in to comment.