Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

pest/coding-style set

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

[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 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.

Rules (58)

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

Last updated on

Was this page helpful?