Skip to content

Commit eb7767b

Browse files
authored
Merge pull request #278 from hyperledger-labs/fix-lint-config
Improve fmt and lint config Signed-off-by: Jun Kimura <jun.kimura@datachain.jp>
2 parents a9f6521 + 312d14e commit eb7767b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.solhintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
contracts/proto
2-
tests/foundry

Makefile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,11 @@ build:
1414

1515
.PHONY: fmt
1616
fmt:
17-
@$(FORGE) fmt $(FORGE_FMT_OPTS) \
18-
./contracts/apps \
19-
./contracts/clients \
20-
./contracts/core \
21-
./contracts/helpers \
22-
./tests/foundry/src
17+
@$(FORGE) fmt $(FORGE_FMT_OPTS)
2318

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

2924
.PHONY: test

foundry.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,11 @@ gas_reports = ["*"]
77
optimizer = true
88
optimizer_runs = 9_999_999
99

10+
[fmt]
11+
ignore = [
12+
'./contracts/proto/**/*.sol',
13+
'./tests/**/*.sol'
14+
]
15+
1016
[profile.no_optimization]
1117
optimizer = false

0 commit comments

Comments
 (0)