Skip to content

Commit

Permalink
Add linter
Browse files Browse the repository at this point in the history
  • Loading branch information
travs committed Dec 12, 2019
1 parent c7f2059 commit 660c191
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .solhint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "solhint:recommended",
"rules": {
"max-line-length": ["error", 99],
"separate-by-one-line-in-contract": "error",
"two-lines-top-level-separator": "error",
"func-order": "error",
"reason-string": ["error"],
"constructor-syntax": "error",
"compiler-version": "0.5.13"
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ See [our contributing instructions](CONTRIBUTING.md).

### Security Issues

If you find a vulnerability that may affect live or testnet deployments, please send your report privately to [security@melonport.com](http://keyserver2.pgp.com/vkd/SubmitSearch.event?SearchCriteria=security%40melonport.com). Please **DO NOT** file a public issue.
If you find a vulnerability that may affect live or testnet deployments, please send your report privately to [security@meloncouncil.io](mailto:security@meloncouncil.io). Please **DO NOT** file a public issue.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@
"scripts": {
"deploy": "GANACHE_KEYS=./keys.json CONF=./deploy_in_testing.json node deploy/scripts/deploy-system.js ./deploy_in_testing.json ./deploy_out_testing.json",
"devchain": "ganache-cli --gasLimit 0x989680 --defaultBalanceEther 10000000000000 -m 'exhibit now news planet fame thank swear reform tilt accident bitter axis' --networkId=4 --acctKeys ./keys.json",
"lint": "solhint src/**/*.sol",
"test": "GANACHE_KEYS=./keys.json CONF=./deploy_in_testing.json yarn jest --runInBand --detectOpenHandles"
},
"devDependencies": {
"@0x/types": "^1.3.0",
"@0x/order-utils": "^8.4.0",
"@0x/types": "^1.3.0",
"@babel/core": "^7.1.6",
"@babel/preset-env": "^7.1.6",
"babel-jest": "^24.9.0",
Expand All @@ -39,6 +40,7 @@
"jest": "^24.1.0",
"jest-matcher-utils": "^24.9.0",
"request-promise": "^4.2.2",
"solhint": "^2.3.0",
"web3": "1.2.4",
"web3-eth-abi": "1.2.4",
"web3-utils": "1.2.4"
Expand Down

0 comments on commit 660c191

Please sign in to comment.