# Install solhint with Homebrew

Linter for Solidity code. Version 6.2.3 via Homebrew; verified 2026-06-20.

## Install

```sh
sudo av install brew:solhint
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install solhint
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:solhint
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/solhint>
- **Version:** 6.2.3
- **Source summary:** Linter for Solidity code
- **Homepage:** <https://protofire.github.io/solhint/>
- **Repository:** <https://github.com/protofire/solhint>
- **Upstream docs:** <https://github.com/protofire/solhint#readme>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/solhint/-/solhint-6.2.3.tgz>
- **Last updated:** 2026-06-20T18:31:21Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- solhint (cli)
- solhint (alias)

## Dependencies

- node

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 6.2.3
- Package-manager updated: 2026-06-20
- Local data: ok
- Upstream repository: https://protofire.github.io/solhint/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

Solhint is Protofire's open-source command-line linter for Solidity code, combining style-guide checks with security-oriented validations.

### Project history

The official README describes Solhint as an open-source project for linting Solidity code and providing both security and style-guide validations. Its package metadata publishes the `solhint` binary and points to the Protofire GitHub repository and documentation site.

The changelog shows active maintenance through the 5.x and 6.x lines, including cache support, hierarchical configuration, Node.js support updates, and new Solidity-specific rules.

### Adoption history

Solhint fits the npm-first JavaScript tooling culture around Ethereum projects but is also packaged by Homebrew in the supplied facts. That gives smart-contract developers both a global npm install path and an OS package-manager path for the same CLI.

### How it is used

The official README documents `npm install -g solhint`, `solhint --init` to create `.solhint.json`, and glob-based linting such as `solhint 'contracts/**/*.sol'`. It also supports comments, ignore files, cache mode, plugins, and configurable rule sets.

### Why package nerds care

Solhint matters because Solidity projects are unusually sensitive to compiler versions, style conventions, and auditability. A packaged linter gives CI systems, editors, and local shells a common executable for catching Solidity-specific mistakes before deployment.

### Timeline

- 2019: The official changelog records Solhint 2.0 alpha work.
- 2025: Solhint 5.2.0 adds cache support and multi-directory config support.
- 2025: Solhint 6.0.0 revises recommended rules and adds NatSpec enforcement.
- 2026: Solhint 6.2.3 is recorded in the official changelog and package metadata.

### Related projects

- Solhint is built for Solidity projects and references the Solidity style guide and smart-contract security validation practices. It complements compilers, formatters, and audit-oriented Ethereum developer tools.

### Sources

- Input package-manager facts: source_facts.package-manager
- Official README: https://github.com/protofire/solhint#readme
- Official changelog: https://github.com/protofire/solhint/blob/master/CHANGELOG.md
- Official documentation site: https://protofire.github.io/solhint
- Official package metadata: https://github.com/protofire/solhint/blob/master/package.json


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: .solhint.json
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** solhint
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [node](https://www.automicvault.com/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [foundry](https://www.automicvault.com/pkg/brew/foundry/) - Shares av.db curated category or tags: blockchain, cli, developer-tools, ethereum, smart-contracts.
- [solc-select](https://www.automicvault.com/pkg/brew/solc-select/) - Shares av.db curated category or tags: blockchain, cli, developer-tools, ethereum, smart-contracts.
- [truffle](https://www.automicvault.com/pkg/brew/truffle/) - Shares av.db curated category or tags: blockchain, cli, developer-tools, ethereum, smart-contracts.
- [aiken](https://www.automicvault.com/pkg/brew/aiken/) - Shares av.db curated category or tags: blockchain, cli, developer-tools, smart-contracts.
- [anchor](https://www.automicvault.com/pkg/brew/anchor/) - Shares av.db curated category or tags: blockchain, cli, developer-tools, smart-contracts.
- [clarinet](https://www.automicvault.com/pkg/brew/clarinet/) - Shares av.db curated category or tags: blockchain, cli, developer-tools, smart-contracts.
- [stellar-cli](https://www.automicvault.com/pkg/brew/stellar-cli/) - Shares av.db curated category or tags: blockchain, cli, developer-tools, smart-contracts.
- [sui](https://www.automicvault.com/pkg/brew/sui/) - Shares av.db curated category or tags: blockchain, cli, developer-tools, smart-contracts.
- [solhint](https://www.automicvault.com/pkg/npm/solhint/) - Same normalized package name appears in another local ecosystem. Shared terms: code, contracts, developer, developer-tools, ethereum.
- [solhint](https://www.automicvault.com/pkg/npm/solhint/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/solhint.yml](https://github.com/automic-vault/db/blob/main/combined/solhint.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
