PHPackages                             frozzare/wp-cli-lint - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. frozzare/wp-cli-lint

ActiveWp-cli-package[Utility &amp; Helpers](/categories/utility)

frozzare/wp-cli-lint
====================

WP-CLI command for linting your code

19302PHP

Since Dec 2Pushed 6y ago2 watchersCompare

[ Source](https://github.com/wpup/wp-cli-lint)[ Packagist](https://packagist.org/packages/frozzare/wp-cli-lint)[ RSS](/packages/frozzare-wp-cli-lint/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

wp-cli-lint
===========

[](#wp-cli-lint)

[![Build Status](https://camo.githubusercontent.com/41f24d9ff6c8e6f24c45262647c05cc98f6d8a11ae9bd2e8541e9a8f5391daae/68747470733a2f2f7472617669732d63692e6f72672f66726f7a7a6172652f77702d636c692d6c696e742e737667)](https://travis-ci.org/frozzare/wp-cli-lint)[![No Maintenance Intended](https://camo.githubusercontent.com/d904056147052e22d8e1c7f46bb50293ed2aeb4c43ead9a2d0cf7a48b46d0562/687474703a2f2f756e6d61696e7461696e65642e746563682f62616467652e737667)](http://unmaintained.tech/)

Lint your WordPress code using WP CLI.

Installation
------------

[](#installation)

If you're using WP-CLI v0.23.0 or later, you can install this package with:

```
wp package install frozzare/wp-cli-lint

```

Alternatively, you can require this file in your global config file or add it to your project.

Example of `~/.wp-cli/config.yml`:

```
require:
  - /path/to/wp-cli-lint/src/class-lint-command.php
```

For other methods, please refer to WP-CLI's [Community Packages](https://github.com/wp-cli/wp-cli/wiki/Community-Packages) wiki.

Usage
-----

[](#usage)

Running the command without any options will lint your code in the current directory with `WordPress-Core` standard. The lint command will try to find a ruleset in the same directory you are linting or in the `ABSPATH` or in Bedrocks base directory.

Example:

```
wp lint
wp lint path/to/code

```

### Config

[](#config)

You can add the path to the `phpcs` bin to use in WP CLI's config file and/or the standard that should be used.

Example of `~/.wp-cli/config.yml`:

```
lint:
  phpcs: /path/to/phpcs
  standard: WordPress-Extra
```

### Options

[](#options)

#### `[]`

[](#directory)

The directory to lint code in. **Default: 'Current directory'**

#### `[--standard=]`

[](#--standardstandard)

The standard to use when running `phpcs`. **Default: 'WordPress-Core'**

### Examples

[](#examples)

```
wp lint
wp lint path/to/code --standard=WordPress-Extra

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 94.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/aacdbaebed26ea1ccdb7e37e2bfd2a572350e1d781d1c0b8830d444adb86104e?d=identicon)[frozzare](/maintainers/frozzare)

---

Top Contributors

[![frozzare](https://avatars.githubusercontent.com/u/14610?v=4)](https://github.com/frozzare "frozzare (34 commits)")[![danielbachhuber](https://avatars.githubusercontent.com/u/36432?v=4)](https://github.com/danielbachhuber "danielbachhuber (2 commits)")

### Embed Badge

![Health badge](/badges/frozzare-wp-cli-lint/health.svg)

```
[![Health](https://phpackages.com/badges/frozzare-wp-cli-lint/health.svg)](https://phpackages.com/packages/frozzare-wp-cli-lint)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
