Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
2ef045ce
Commit
2ef045ce
authored
Aug 08, 2023
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contracts-bedrock: forge fmt setup
parent
b32317eb
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
473 additions
and
1115 deletions
+473
-1115
.eslintignore
packages/contracts-bedrock/.eslintignore
+0
-1
.npmignore
packages/contracts-bedrock/.npmignore
+1
-0
.prettierignore
packages/contracts-bedrock/.prettierignore
+0
-18
.prettierrc.js
packages/contracts-bedrock/.prettierrc.js
+0
-3
.solhint.json
packages/contracts-bedrock/.solhint.json
+0
-23
.solhintignore
packages/contracts-bedrock/.solhintignore
+0
-8
foundry.toml
packages/contracts-bedrock/foundry.toml
+6
-0
package.json
packages/contracts-bedrock/package.json
+2
-4
pnpm-lock.yaml
pnpm-lock.yaml
+464
-1058
No files found.
packages/contracts-bedrock/.eslintignore
View file @
2ef045ce
...
...
@@ -5,6 +5,5 @@ lib
artifacts
forge-artifacts
cache
typechain
coverage*
deployments
packages/contracts-bedrock/.npmignore
View file @
2ef045ce
scripts
test
.envrc
packages/contracts-bedrock/.prettierignore
deleted
100644 → 0
View file @
b32317eb
# Deps and test files
lib
# build output
artifacts
forge-artifacts
cache
typechain
coverage*
deployments
# Other autogenerated files
gasReporterOutput.json
slither.db.json
# MIPS.sol has special VM formatting, not like other contracts.
# Prettier also fails to handle YUL functions with multiple return variables.
contracts/cannon/MIPS.sol
packages/contracts-bedrock/.prettierrc.js
deleted
100644 → 0
View file @
b32317eb
module
.
exports
=
{
...
require
(
'
../../.prettierrc.js
'
),
}
packages/contracts-bedrock/.solhint.json
deleted
100644 → 0
View file @
b32317eb
{
"extends"
:
"solhint:recommended"
,
"plugins"
:
[
"prettier"
],
"rules"
:
{
"prettier/prettier"
:
"error"
,
"compiler-version"
:
"off"
,
"code-complexity"
:
[
"warn"
,
5
],
"max-line-length"
:
[
"error"
,
100
],
"func-param-name-mixedcase"
:
"error"
,
"func-name-mixedcase"
:
"off"
,
"modifier-name-mixedcase"
:
"error"
,
"ordering"
:
"warn"
,
"avoid-low-level-calls"
:
"off"
,
"no-inline-assembly"
:
"off"
,
"no-empty-blocks"
:
"off"
,
"not-rely-on-time"
:
"off"
,
"event-name-camelcase"
:
"off"
,
"reason-string"
:
"off"
,
"avoid-tx-origin"
:
"off"
,
"var-name-mixedcase"
:
"off"
,
"func-visibility"
:
[
"warn"
,
{
"ignoreConstructors"
:
true
}]
}
}
packages/contracts-bedrock/.solhintignore
deleted
100644 → 0
View file @
b32317eb
# Deps and test files
node_modules
lib
contracts/test/*.t.sol
contracts/vendor/*.sol
# MIPS.sol has special VM formatting, not like other contracts.
contracts/cannon/MIPS.sol
packages/contracts-bedrock/foundry.toml
View file @
2ef045ce
...
...
@@ -29,5 +29,11 @@ fs_permissions = [
{
'access'='write'
,
'path'='./semver-lock.json'
}
,
]
[fmt]
line_length
=
120
multiline_func_header
=
"all"
bracket_spacing
=
true
wrap_comments
=
true
[profile.ci]
fuzz_runs
=
512
packages/contracts-bedrock/package.json
View file @
2ef045ce
...
...
@@ -31,18 +31,16 @@
"preinstall"
:
"npx only-allow pnpm"
,
"lint:ts:check"
:
"eslint . --max-warnings=0"
,
"lint:forge-tests:check"
:
"ts-node scripts/forge-test-names.ts"
,
"lint:contracts:check"
:
"pnpm
solhint -f table 'src/**/!(WETH9|DisputeTypes|MIPS|RLPReader|EAS|SchemaRegistry|IEAS|ISchemaRegistry|SchemaResolver|EIP712Verifier|ISchemaResolver).sol' && pnpm prettier --check 'src/**/!(WETH9|DisputeTypes|MIPS|RLPReader|EAS|SchemaRegistry|IEAS|ISchemaRegistry|SchemaResolver|EIP712Verifier|ISchemaResolver).sol' && pnpm lint:forge-tests:check
"
,
"lint:contracts:check"
:
"pnpm
lint:fix && git diff --exit-code
"
,
"lint:check"
:
"pnpm lint:contracts:check && pnpm lint:ts:check"
,
"lint:ts:fix"
:
"eslint --fix ."
,
"lint:contracts:fix"
:
"
pnpm solhint --fix 'src/**/!(WETH9|DisputeTypes|MIPS|RLPReader|EAS|SchemaRegistry|IEAS|ISchemaRegistry|SchemaResolver|EIP712Verifier|ISchemaResolver).sol' && pnpm prettier --write 'src/**/!(WETH9|DisputeTypes|MIPS|RLPReader|EAS|SchemaRegistry|IEAS|ISchemaRegistry|SchemaResolver|EIP712Verifier|ISchemaResolver).sol'
"
,
"lint:contracts:fix"
:
"
forge fmt
"
,
"lint:fix"
:
"pnpm lint:contracts:fix && pnpm lint:ts:fix"
,
"lint"
:
"pnpm lint:fix && pnpm lint:check"
},
"devDependencies"
:
{
"@typescript-eslint/eslint-plugin"
:
"^5.60.1"
,
"@typescript-eslint/parser"
:
"^5.60.1"
,
"solhint"
:
"^3.4.1"
,
"solhint-plugin-prettier"
:
"^0.0.5"
,
"ts-node"
:
"^10.9.1"
,
"typescript"
:
"^5.1.6"
}
...
...
pnpm-lock.yaml
View file @
2ef045ce
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment