Skip to content
This repository was archived by the owner on Jan 18, 2023. It is now read-only.

Commit bc87035

Browse files
authored
Merge pull request #35 from SetProtocol/alex/linting
Enforce contract linting
2 parents 9d101ad + 2b5435c commit bc87035

File tree

10 files changed

+835
-11439
lines changed

10 files changed

+835
-11439
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@
1313
npm-debug.log*
1414
yarn-debug.log*
1515
yarn-error.log*
16+
17+
# IDE Configs
18+
.vscode/*

.solhint.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

.soliumignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
contracts/lib
3+
contracts/test
4+
contracts/Migrations.sol

.soliumrc.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"extends": "solium:all",
3+
"plugins": ["security"],
4+
"rules": {
5+
"operator-whitespace": 0,
6+
"mixedcase": 0,
7+
"no-experimental": 0,
8+
"lbrace": 0,
9+
"max-len": ["error", 100],
10+
"indentation": ["error", 4],
11+
"quotes": ["error", "double"],
12+
"arg-overflow": ["warning", 3],
13+
"security/enforce-explicit-visibility": ["error"],
14+
"security/no-block-members": 0,
15+
"security/no-named-returns": ["error"],
16+
"security/no-suicide-or-selfdestruct": ["error"],
17+
"security/no-var": ["error"]
18+
}
19+
}

0 commit comments

Comments
 (0)