# protofire/solhint

Solhint is an open-source project to provide a linting utility for Solidity code.

Repository: https://github.com/protofire/solhint
Canonical: https://ross.abutalabs.com/products/solhint
Homepage: https://protofire.github.io/solhint/
Language: JavaScript
License: MIT
License Family: permissive
Topics: solidity, linter, security-scanner, ethereum, ast, developer-tools, code-quality, smart-contracts, solhint, dapp
Last push: 2026-08-13T13:28:54+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 97, release rhythm 85, longevity 100
- inputs: {"age_days": 3243, "days_push": 20, "days_rel": 20, "gap_med": 48, "n_releases_24m": 14}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1126, forks 197 (observed 2026-08-28T04:03:41.271694+00:00)

## What it is
Solhint is an open-source linter for Solidity smart contracts that provides both security and style guide validations. It runs as an npm-distributed CLI with configurable rules, auto-fix, caching, and multiple report formatters.

## Use cases
- lint solidity smart contracts for style guide violations
- scan solidity code for security issues before deployment
- enforce consistent code style across a solidity codebase
- auto-fix linting problems in .sol files
- integrate solidity linting into CI pipelines
- check smart contract code quality in a dapp project

## When to choose
- you write Solidity contracts and want ESLint-like linting with security rules
- you need configurable, auto-fixable style enforcement for .sol files
- you want a lightweight static analysis tool for Ethereum smart contracts

## When to avoid
- you need full formal verification or deep vulnerability auditing of contracts
- you are linting languages other than Solidity
- you need runtime or on-chain analysis rather than static source checks

## Facets
- artifact type: cli-tool
- maturity: active
- function: linter, security, developer-tools, parser
- domain: developer-tools, security
- platform: cli, cross-platform
- tags: solidity, ethereum, smart-contracts, code-quality, static-analysis, ast, nodejs

## Member repositories
- protofire/solhint (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:41.271694+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:39:13.263067+00:00, confidence not recorded.
  - readme: https://github.com/protofire/solhint (fetched 2026-08-28T04:03:41.271694+00:00, sha 892637574258)
  - homepage: https://protofire.github.io/solhint/ (fetched 2026-08-29T12:43:47.499682+00:00, sha 527bf2ba475a)
  - registry_npm: https://registry.npmjs.org/solhint (fetched 2026-08-29T12:43:47.509576+00:00, sha b97b018c60e6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
