---
title: "pest/coding-style set"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

Pest's Rector plugin's `coding-style` set: the Pun lint rules its Rector rules map to, and nothing else.

```toml
[lint]
sets = ["pest/coding-style"]
```

A rule merged from several Rector rules runs only the rewrites of this set's Rector rules, unless a [preset](/docs/configuration/presets#lint-presets) also turns it on. Rector rules that are format rules in Pun run under `[format]` instead. Laravel, Pest, and PHPUnit rules also need their [extension](/docs/configuration/pun-toml#extensions).

## Rules (58)

| Rule | Rector rules | Status |
| --- | --- | --- |
| [`lint/pest/no-before-all-in-describe`](/docs/rules/lint/pest/no-before-all-in-describe) | `ConvertBeforeAllInDescribeRector` | Ported |
| [`lint/pest/no-invalid-repeat`](/docs/rules/lint/pest/no-invalid-repeat) | `FixInvalidRepeatValueRector` | Ported |
| [`lint/pest/no-negated-boolean-matcher`](/docs/rules/lint/pest/no-negated-boolean-matcher) | `ToBeTrueNotFalseRector` | Ported |
| [`lint/pest/no-only`](/docs/rules/lint/pest/no-only) | `RemoveOnlyRector` | Ported |
| [`lint/pest/no-redundant-type-expectation`](/docs/rules/lint/pest/no-redundant-type-expectation) | `RemoveRedundantLiteralTypeExpectationRector` | Ported |
| [`lint/pest/no-redundant-uses`](/docs/rules/lint/pest/no-redundant-uses) | `RemoveRedundantPestUsesRector` | Ported |
| [`lint/pest/no-static-test-closure`](/docs/rules/lint/pest/no-static-test-closure) | `RemoveStaticTestClosureRector` | Ported |
| [`lint/pest/prefer-chained-expect`](/docs/rules/lint/pest/prefer-chained-expect) | `ChainExpectCallsRector` | Ported |
| [`lint/pest/prefer-defer`](/docs/rules/lint/pest/prefer-defer) | `TapToDeferRector` | Ported |
| [`lint/pest/prefer-each-modifier`](/docs/rules/lint/pest/prefer-each-modifier) | `UseEachModifierRector` | Ported |
| [`lint/pest/prefer-expect`](/docs/rules/lint/pest/prefer-expect) | `ConvertAssertToExpectRector` | Ported |
| [`lint/pest/prefer-extend`](/docs/rules/lint/pest/prefer-extend) | `UsesToExtendRector` | Ported |
| [`lint/pest/prefer-filesystem-matchers`](/docs/rules/lint/pest/prefer-filesystem-matchers) | `SimplifyFilesystemMatchersRector` | Ported |
| [`lint/pest/prefer-not-modifier`](/docs/rules/lint/pest/prefer-not-modifier) | `SimplifyExpectNotRector` | Ported |
| [`lint/pest/prefer-sequence`](/docs/rules/lint/pest/prefer-sequence) | `UseSequenceMatcherRector` | Ported |
| [`lint/pest/prefer-simpler-expectation`](/docs/rules/lint/pest/prefer-simpler-expectation) | `SimplifyComparisonExpectationsRector` | Ported |
| [`lint/pest/prefer-specific-expectations`](/docs/rules/lint/pest/prefer-specific-expectations) | `SimplifyToLiteralBooleanRector` | Ported |
| [`lint/pest/prefer-strict-equality-matchers`](/docs/rules/lint/pest/prefer-strict-equality-matchers) | `UseStrictEqualityMatchersRector` | Ported |
| [`lint/pest/prefer-to-be-alpha`](/docs/rules/lint/pest/prefer-to-be-alpha) | `UseToBeAlphaRector` | Ported |
| [`lint/pest/prefer-to-be-alpha-numeric`](/docs/rules/lint/pest/prefer-to-be-alpha-numeric) | `UseToBeAlphaNumericRector` | Ported |
| [`lint/pest/prefer-to-be-between`](/docs/rules/lint/pest/prefer-to-be-between) | `UseToBeBetweenRector` | Ported |
| [`lint/pest/prefer-to-be-digits`](/docs/rules/lint/pest/prefer-to-be-digits) | `UseToBeDigitsRector` | Ported |
| [`lint/pest/prefer-to-be-directory`](/docs/rules/lint/pest/prefer-to-be-directory) | `UseToBeDirectoryRector` | Ported |
| [`lint/pest/prefer-to-be-empty`](/docs/rules/lint/pest/prefer-to-be-empty) | `UseToBeEmptyRector` | Ported |
| [`lint/pest/prefer-to-be-file`](/docs/rules/lint/pest/prefer-to-be-file) | `UseToBeFileRector` | Ported |
| [`lint/pest/prefer-to-be-in`](/docs/rules/lint/pest/prefer-to-be-in) | `UseToBeInRector` | Ported |
| [`lint/pest/prefer-to-be-infinite`](/docs/rules/lint/pest/prefer-to-be-infinite) | `UseToBeInfiniteRector` | Ported |
| [`lint/pest/prefer-to-be-instance-of`](/docs/rules/lint/pest/prefer-to-be-instance-of) | `UseInstanceOfMatcherRector` | Ported |
| [`lint/pest/prefer-to-be-json`](/docs/rules/lint/pest/prefer-to-be-json) | `UseToBeJsonRector` | Ported |
| [`lint/pest/prefer-to-be-list`](/docs/rules/lint/pest/prefer-to-be-list) | `UseToBeListRector` | Ported |
| [`lint/pest/prefer-to-be-lowercase`](/docs/rules/lint/pest/prefer-to-be-lowercase) | `UseToBeLowercaseRector` | Ported |
| [`lint/pest/prefer-to-be-nan`](/docs/rules/lint/pest/prefer-to-be-nan) | `UseToBeNanRector` | Ported |
| [`lint/pest/prefer-to-be-truthy-falsy`](/docs/rules/lint/pest/prefer-to-be-truthy-falsy) | `SimplifyToBeTruthyFalsyRector` | Ported |
| [`lint/pest/prefer-to-be-uppercase`](/docs/rules/lint/pest/prefer-to-be-uppercase) | `UseToBeUppercaseRector` | Ported |
| [`lint/pest/prefer-to-be-url`](/docs/rules/lint/pest/prefer-to-be-url) | `UseToBeUrlRector` | Ported |
| [`lint/pest/prefer-to-be-uuid`](/docs/rules/lint/pest/prefer-to-be-uuid) | `UseToBeUuidRector` | Ported |
| [`lint/pest/prefer-to-contain`](/docs/rules/lint/pest/prefer-to-contain) | `UseToContainRector` | Ported |
| [`lint/pest/prefer-to-contain-equal`](/docs/rules/lint/pest/prefer-to-contain-equal) | `UseToContainEqualRector` | Ported |
| [`lint/pest/prefer-to-contain-only-instances-of`](/docs/rules/lint/pest/prefer-to-contain-only-instances-of) | `UseToContainOnlyInstancesOfRector` | Ported |
| [`lint/pest/prefer-to-end-with`](/docs/rules/lint/pest/prefer-to-end-with) | `UseToEndWithRector` | Ported |
| [`lint/pest/prefer-to-equal-canonicalizing`](/docs/rules/lint/pest/prefer-to-equal-canonicalizing) | `UseToEqualCanonicalizingRector` | Ported |
| [`lint/pest/prefer-to-equal-with-delta`](/docs/rules/lint/pest/prefer-to-equal-with-delta) | `UseToEqualWithDeltaRector` | Ported |
| [`lint/pest/prefer-to-have-count`](/docs/rules/lint/pest/prefer-to-have-count) | `UseToHaveCountRector` | Ported |
| [`lint/pest/prefer-to-have-key`](/docs/rules/lint/pest/prefer-to-have-key) | `UseToHaveKeyRector` | Ported |
| [`lint/pest/prefer-to-have-keys`](/docs/rules/lint/pest/prefer-to-have-keys) | `UseToHaveKeysRector` | Ported |
| [`lint/pest/prefer-to-have-length`](/docs/rules/lint/pest/prefer-to-have-length) | `UseToHaveLengthRector` | Ported |
| [`lint/pest/prefer-to-have-method-on-class`](/docs/rules/lint/pest/prefer-to-have-method-on-class) | `ToHaveMethodOnClassRector` | Ported |
| [`lint/pest/prefer-to-have-properties`](/docs/rules/lint/pest/prefer-to-have-properties) | `UseToHavePropertiesRector` | Ported |
| [`lint/pest/prefer-to-have-property`](/docs/rules/lint/pest/prefer-to-have-property) | `UseToHavePropertyRector` | Ported |
| [`lint/pest/prefer-to-have-same-size`](/docs/rules/lint/pest/prefer-to-have-same-size) | `UseToHaveSameSizeRector` | Ported |
| [`lint/pest/prefer-to-match`](/docs/rules/lint/pest/prefer-to-match) | `UseToMatchRector` | Ported |
| [`lint/pest/prefer-to-match-array`](/docs/rules/lint/pest/prefer-to-match-array) | `UseToMatchArrayRector` | Ported |
| [`lint/pest/prefer-to-match-object`](/docs/rules/lint/pest/prefer-to-match-object) | `UseToMatchObjectRector` | Ported |
| [`lint/pest/prefer-to-start-with`](/docs/rules/lint/pest/prefer-to-start-with) | `UseToStartWithRector` | Ported |
| [`lint/pest/prefer-to-throw`](/docs/rules/lint/pest/prefer-to-throw) | `ConvertExpectExceptionToThrowRector`, `UseToThrowRector` | Ported |
| [`lint/pest/prefer-type-matchers`](/docs/rules/lint/pest/prefer-type-matchers) | `UseTypeMatchersRector` | Ported |
| [`lint/pest/require-type-matcher-first`](/docs/rules/lint/pest/require-type-matcher-first) | `EnsureTypeChecksFirstRector` | Ported |
| [`lint/security/no-debug-calls`](/docs/rules/lint/security/no-debug-calls) | `RemoveDebugExpectationsRector` | Ported |
