Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Commit

Permalink
Enable basic linting (#116)
Browse files Browse the repository at this point in the history
* Enable basic linting

* add config for mythrill
  • Loading branch information
dnkolegov authored Jun 23, 2023
1 parent ce2ec9f commit 7ccc729
Show file tree
Hide file tree
Showing 11 changed files with 3,357 additions and 1,321 deletions.
9 changes: 9 additions & 0 deletions .solhint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "solhint:recommended",
"rules": {
"compiler-version": ["error", "0.8.18"],
"func-visibility": ["warn", { "ignoreConstructors": true }],
"prettier/prettier": "error",
"no-global-import": "off"
}
}
14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
NETWORK ?= localnet

check:
slither . --config-file ./slither.config.json

lint:
solhint 'src/**/*.sol'

check-gateway:
docker run --rm -v $(shell pwd):/app -w /app mythril/myth:latest -v4 analyze --solc-json remappings.json ./src/Gateway.sol --solv 0.8.19

check-subnet:
docker run --rm -v $(shell pwd):/app -w /app mythril/myth:latest -v4 analyze --solc-json remappings.json ./src/SubnetActor.sol --solv 0.8.19

deploy-ipc:
./ops/deploy.sh $(NETWORK)

.PHONY: deploy-ipc
.PHONY: deploy-ipc check lint check-subnet check-gateway
Loading

0 comments on commit 7ccc729

Please sign in to comment.