Skip to content

Commit

Permalink
improve fmt and lint config
Browse files Browse the repository at this point in the history
Signed-off-by: Jun Kimura <[email protected]>
  • Loading branch information
bluele committed May 16, 2024
1 parent a9f6521 commit 312d14e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
1 change: 0 additions & 1 deletion .solhintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
contracts/proto
tests/foundry
9 changes: 2 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,11 @@ build:

.PHONY: fmt
fmt:
@$(FORGE) fmt $(FORGE_FMT_OPTS) \
./contracts/apps \
./contracts/clients \
./contracts/core \
./contracts/helpers \
./tests/foundry/src
@$(FORGE) fmt $(FORGE_FMT_OPTS)

.PHONY: lint
lint:
@npx solhint 'contracts/{apps,clients,core}/**/*.sol' 'tests/foundry/src/**/*.sol'
@npx solhint 'contracts/**/*.sol'
@$(MAKE) FORGE_FMT_OPTS=--check fmt

.PHONY: test
Expand Down
6 changes: 6 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,11 @@ gas_reports = ["*"]
optimizer = true
optimizer_runs = 9_999_999

[fmt]
ignore = [
'./contracts/proto/**/*.sol',
'./tests/**/*.sol'
]

[profile.no_optimization]
optimizer = false

0 comments on commit 312d14e

Please sign in to comment.