Skip to content

Commit

Permalink
Add solidity linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ly0va committed Nov 17, 2020
1 parent ca428e7 commit 33acd76
Show file tree
Hide file tree
Showing 43 changed files with 1,579 additions and 741 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@ jobs:

- name: lints
run: |
zk db setup # So database will be created for compilation.
# lint non-rust code
yarn check:ts
yarn check:md
yarn lint:md
yarn check:sol
yarn lint:sol
# So database will be created for compilation.
zk db setup
zk dummy-prover ensure-disabled
cargo fmt --all -- --check
# For some reason, `cargo clippy` currently doesn't work in sqlx offline mod. So, we're checking it in online mode.
Expand Down
File renamed without changes.
8 changes: 8 additions & 0 deletions .prettier-sol.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"printWidth": 80,
"tabWidth": 4,
"useTabs": false,
"singleQuote": false,
"bracketSpacing": false,
"explicitTypes": "always"
}
File renamed without changes.
3 changes: 3 additions & 0 deletions .solhint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "solhint:recommended"
}
Loading

0 comments on commit 33acd76

Please sign in to comment.