Skip to content

chore: add minimal solhint config#13

Merged
igorroncevic merged 7 commits into
mainfrom
pr-03-solhint
May 11, 2026
Merged

chore: add minimal solhint config#13
igorroncevic merged 7 commits into
mainfrom
pr-03-solhint

Conversation

@igorroncevic
Copy link
Copy Markdown
Contributor

@igorroncevic igorroncevic commented May 6, 2026

Description

Add a small Solhint setup that uses the local Solhint dependency.

Context

The root Solhint config extends solhint:recommended and only adds the intentional rules. The script and test folders have small override configs for their own style.

Out of Scope

This PR does not add Slither, Justfile commands, CI, or hooks.

Testing Instructions

  • Merge PR chore: add local dependencies #11 first.
  • Run npm install --prefix dev.
  • Run dev/node_modules/.bin/solhint --max-warnings 0 'src/**/*.sol'.
  • Run dev/node_modules/.bin/solhint --max-warnings 0 'script/**/*.sol'.
  • Run dev/node_modules/.bin/solhint --max-warnings 0 'test/**/*.t.sol'.

This was referenced May 6, 2026
@igorroncevic igorroncevic marked this pull request as ready for review May 6, 2026 20:37
@igorroncevic igorroncevic requested a review from a team as a code owner May 6, 2026 20:37
Copy link
Copy Markdown

@kaze-cow kaze-cow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of coding standards enforcement good to see.

Copy link
Copy Markdown
Contributor

@fedgiac fedgiac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, mostly minor comments.
Approving is blocked because there are changes belonging to PR 2 and I expect this to change once upstream PRs are merged.

Comment thread script/.solhint.json Outdated
Comment thread test/.solhint.json Outdated
Comment thread test/.solhint.json Outdated
Comment thread script/.solhint.json Outdated
Comment thread .solhint.json
Comment thread README.md Outdated
@igorroncevic igorroncevic requested review from anxolin and fedgiac May 8, 2026 11:46
@fedgiac
Copy link
Copy Markdown
Contributor

fedgiac commented May 8, 2026

Looks good! Can be merged once the previous PR is merged.

Copy link
Copy Markdown
Contributor

@anxolin anxolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks mostly ok, but a few comments. The PR description says "and only adds the intentional rules", but I believe your config is not adding but replacing the rules

Comment thread README.md Outdated
Comment thread README.md
Comment thread README.md
Comment thread README.md
Comment thread dev/package.json Outdated
Comment thread script/.solhint.json
Comment thread test/.solhint.json
@socket-security
Copy link
Copy Markdown

socket-security Bot commented May 11, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​solhint@​6.0.3 ⏵ 6.2.19710010088100

View full report

Copy link
Copy Markdown
Contributor

@fedgiac fedgiac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very small comments but the rest is good, approving in advance since I don't think my comment need much discussion.

Comment thread .gitignore Outdated
Comment thread README.md
Co-authored-by: Federico Giacon <58218759+fedgiac@users.noreply.github.com>
@igorroncevic igorroncevic merged commit 8aa7c32 into main May 11, 2026
2 of 4 checks passed
@igorroncevic igorroncevic deleted the pr-03-solhint branch May 11, 2026 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants