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

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
boyuanx committed Nov 7, 2023
1 parent 2b0fbed commit cbf237e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main-push-pull.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: Run tests
env:
NODE_ENV: ${{ secrets.NODE_ENV }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}

on:
push:
Expand Down Expand Up @@ -123,11 +126,11 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.10'
architecture: 'x64'

- name: Install Slither
run: pip3 install slither-analyzer

- name: Slither Static Analysis
run: slither . --config-file slither.json
run: slither . --config-file slither.json
4 changes: 2 additions & 2 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"*.(md|js|json|sol)": "npm run format",
"*.ts": "npm run lint-ts -- --fix"
"*.sol": ["npm run format-sol", "npm run lint-sol"],
"*.ts": ["npm run format-ts", "npm run lint-ts -- --fix"]
}
3 changes: 2 additions & 1 deletion .solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"not-rely-on-time": "off",
"compiler-version": "off",
"no-empty-blocks": "off",
"func-name-mixedcase": "off"
"func-name-mixedcase": "off",
"immutable-vars-naming": "off"
}
}
6 changes: 3 additions & 3 deletions slither.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"detectors_to_exclude": "solc-version",
"exclude_informational": false,
"exclude_low": false,
"exclude_medium": false,
"exclude_informational": true,
"exclude_low": true,
"exclude_medium": true,
"exclude_high": false,
"disable_color": false,
"filter_paths": "node_modules",
Expand Down

0 comments on commit cbf237e

Please sign in to comment.