Skip to content

Commit

Permalink
Merge pull request #104 from protofire/master
Browse files Browse the repository at this point in the history
Add solidity linter
  • Loading branch information
cag authored May 11, 2018
2 parents bd9079a + a9cc3f3 commit ab22bf9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.sol linguist-language=Solidity
13 changes: 13 additions & 0 deletions .solhint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": "default",
"rules": {
"bracket-align": "warn",
"code-complexity": "warn",
"const-name-snakecase": "warn",
"expression-indent": "warn",
"function-max-lines": "warn",
"indent": "warn",
"max-line-length": "warn",
"statement-indent": "warn"
}
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"networks": "truffle networks",
"test-norpc": "truffle test --network testing",
"test": "run-with-testrpc -l 20000000 'truffle test --network testing'",
"lint-contracts": "solhint contracts/**/*.sol",
"coverage": "solidity-coverage",
"injectnetinfo": "node scripts/inject_network_info.js",
"extractnetinfo": "node scripts/extract_network_info.js",
Expand All @@ -35,6 +36,7 @@
"lodash": "^4.17.4",
"npm-prepublish": "^1.2.3",
"run-with-testrpc": "^0.3.0",
"solhint": "^1.1.10",
"solidity-coverage": "^0.4.2",
"solmd": "github:cag/solmd",
"truffle": "^3.4.11"
Expand Down

0 comments on commit ab22bf9

Please sign in to comment.