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

code-quality set

Simpler equivalents and likely bugs.

[lint]
sets = ["code-quality"]

Ecosystem and target-version gates still apply. Planned rules do not run.

Enabled rules (224)

Rule Configuration Status
lint/arrays/no-implicit-array-creation "error" Ported
lint/classes/no-explicit-constructor-call "error" Ported
lint/classes/no-static-constructor-call "error" Ported
lint/classes/no-unset-on-property "error" Ported
lint/classes/prefer-new-self "error" Ported
lint/classes/prefer-self-in-final "error" Ported
lint/classes/require-class-matches-file "error" Ported
lint/comments/no-unused-ignore "error" Ported
lint/complexity/no-and-assignment "error" Ported
lint/complexity/no-compact "error" Ported
lint/complexity/no-concat-assign-new-item "error" Ported
lint/complexity/no-constant-via-variable "error" Ported
lint/complexity/no-dirname-dir-concat "error" Ported
lint/complexity/no-duplicate-match-arm "error" Ported
lint/complexity/no-iterator-to-array-in-foreach "error" Ported
lint/complexity/no-negated-boolean-literal "error" Ported
lint/complexity/no-negated-group "error" Ported
lint/complexity/no-negated-instanceof-ternary "error" Ported
lint/complexity/no-phpdoc-class-case-mismatch "error" Ported
lint/complexity/no-redundant-isset "error" Ported
lint/complexity/no-redundant-literal-return "error" Ported
lint/complexity/no-redundant-null-check "error" Ported
lint/complexity/no-redundant-nullsafe "error" Ported
lint/complexity/no-redundant-write-visibility "error" Ported
lint/complexity/no-single-case-switch "error" Ported
lint/complexity/no-single-item-in-array "error" Ported
lint/complexity/no-sole-value-sprintf "error" Ported
lint/complexity/no-unused-label "error" Ported
lint/complexity/no-useless-array-values "error" Ported
lint/complexity/prefer-absolute-include "error" Ported
lint/complexity/prefer-array-literal "error" Ported
lint/complexity/prefer-coalesce-over-empty-ternary "error" Ported
lint/complexity/prefer-empty-array-compare "error" Ported
lint/complexity/prefer-explicit-array-comparison "error" Ported
lint/complexity/prefer-func-num-args "error" Ported
lint/complexity/prefer-if-statement "error" Ported
lint/complexity/prefer-in-array "error" Ported
lint/complexity/prefer-inline-array-return "error" Ported
lint/complexity/prefer-instance-method "error" Ported
lint/complexity/prefer-min-max "error" Ported
lint/complexity/prefer-not-in-array "error" Ported
lint/complexity/prefer-null-coalesce "error" Ported
lint/complexity/prefer-property-default "error" Ported
lint/complexity/prefer-property-exists "error" Ported
lint/complexity/prefer-simple-condition "error" Ported
lint/complexity/require-attribute-argument-order "error" Ported
lint/complexity/require-consistent-return "error" Ported
lint/complexity/require-is-a-allow-string "error" Ported
lint/complexity/require-named-argument-order "error" Ported
lint/complexity/require-previous-exception "error" Ported
lint/control-flow/no-assign-in-condition "error" Ported
lint/control-flow/no-else-after-return "error" Ported
lint/control-flow/no-empty-catch "error" Ported
lint/control-flow/no-for-init-overwrite "error" Ported
lint/control-flow/no-loop-variable-overwrite "error" Ported
lint/control-flow/no-unsafe-finally "error" Ported
lint/control-flow/prefer-bool-return "error" Ported
lint/control-flow/prefer-combined-isset "error" Ported
lint/control-flow/prefer-combined-unset "error" Ported
lint/control-flow/prefer-yield-from "error" Ported
lint/dead-code/no-implode-ternary "error" Ported
lint/dead-code/no-unused-global "error" Ported
lint/dead-code/no-unused-static "error" Ported
lint/dead-code/no-useless-ternary "error" Ported
lint/functions/no-assign-in-argument "error" Ported
lint/functions/no-extra-arguments "error" Ported
lint/functions/no-missing-format-argument "error" Ported
lint/functions/no-required-after-optional "error" Ported
lint/functions/no-swapped-explode-arguments "error" Ported
lint/functions/no-unreachable-default-argument-value "error" Ported
lint/functions/require-array-filter-callback "error" Ported
lint/laravel/no-app-array-access "error" Ported
lint/laravel/no-collection-aliases "error" Ported
lint/laravel/no-default-authorize "error" Planned
lint/laravel/no-implicit-model-query "error" Ported
lint/laravel/no-negated-blank-filled "error" Ported
lint/laravel/no-negated-contains "error" Ported
lint/laravel/no-negated-filter "error" Ported
lint/laravel/no-negated-when "error" Ported
lint/laravel/no-request-all "error" Ported
lint/laravel/no-useless-value-call "error" Ported
lint/laravel/no-useless-with-call "error" Ported
lint/laravel/prefer-anonymous-migration "error" Ported
lint/laravel/prefer-array-validation-rules "error" Ported
lint/laravel/prefer-back-helper "error" Ported
lint/laravel/prefer-collection-all "error" Ported
lint/laravel/prefer-collection-is-empty "error" Planned
lint/laravel/prefer-date-facade "error" Ported
lint/laravel/prefer-dedicated-status-assertion "error" Ported
lint/laravel/prefer-default-argument "error" Ported
lint/laravel/prefer-dispatch-helper "error" Ported
lint/laravel/prefer-env-helper "error" Ported
lint/laravel/prefer-environment-check "error" Ported
lint/laravel/prefer-exception-class-string "error" Ported
lint/laravel/prefer-explicit-json-call "error" Ported
lint/laravel/prefer-fake-helper "error" Ported
lint/laravel/prefer-file-facade-delete "error" Planned
lint/laravel/prefer-latest-oldest "error" Ported
lint/laravel/prefer-nullsafe "error" Ported
lint/laravel/prefer-pivot-class "error" Planned
lint/laravel/prefer-protected-model-methods "error" Ported
lint/laravel/prefer-request-facade "error" Ported
lint/laravel/prefer-request-server "error" Ported
lint/laravel/prefer-resolve-helper "error" Ported
lint/laravel/prefer-session-facade "error" Ported
lint/laravel/prefer-sleep-facade "error" Ported
lint/laravel/prefer-str-starts-with "error" Ported
lint/laravel/prefer-to-route-helper "error" Ported
lint/laravel/prefer-today "error" Ported
lint/laravel/prefer-travel-to "error" Ported
lint/laravel/prefer-typed-assert-closure "error" Ported
lint/operators/no-and-or-keywords "error" Ported
lint/operators/no-error-suppression "error" Ported
lint/operators/no-loose-equality "error" Ported
lint/performance/prefer-explode-over-preg-split "error" Ported
lint/phpunit/add-depended-test-return-type "error" Ported
lint/phpunit/add-instanceof-assert "error" Ported
lint/phpunit/add-instanceof-assert-for-argument "error" Ported
lint/phpunit/add-mock-intersection-param "error" Ported
lint/phpunit/add-mock-intersection-type "error" Ported
lint/phpunit/add-param-type-depends "error" Ported
lint/phpunit/add-stub-intersection-type "error" Ported
lint/phpunit/add-will-return-callback-false-fallback "error" Planned
lint/phpunit/add-will-return-callback-param-type "error" Ported
lint/phpunit/no-assert-internal-type "error" Ported
lint/phpunit/no-assert-same-type-mismatch "error" Ported
lint/phpunit/no-at-matcher "error" Ported
lint/phpunit/no-bare-mock-assign "error" Ported
lint/phpunit/no-bare-mock-builder "error" Ported
lint/phpunit/no-empty-test "error" Ported
lint/phpunit/no-entity-mock "error" Ported
lint/phpunit/no-expected-exception-annotation "error" Ported
lint/phpunit/no-expects-any "error" Ported
lint/phpunit/no-flipped-assertion "error" Ported
lint/phpunit/no-float-delta-parameter "error" Ported
lint/phpunit/no-mock-intersection-property "error" Ported
lint/phpunit/no-negated-assertion "error" Ported
lint/phpunit/no-setup-override-attribute "error" Ported
lint/phpunit/no-stub-with-expectations "error" Ported
lint/phpunit/no-test-constructor "error" Ported
lint/phpunit/no-unused-mock "error" Ported
lint/phpunit/no-unused-mock-property "error" Ported
lint/phpunit/no-value-object-mock "error" Ported
lint/phpunit/prefer-assert "error" Ported
lint/phpunit/prefer-assert-array-has-key "error" Ported
lint/phpunit/prefer-assert-count "error" Ported
lint/phpunit/prefer-assert-instanceof "error" Ported
lint/phpunit/prefer-assert-instanceof-over-empty "error" Ported
lint/phpunit/prefer-assert-instances-of "error" Ported
lint/phpunit/prefer-assert-null-true-false "error" Ported
lint/phpunit/prefer-assert-same "error" Ported
lint/phpunit/prefer-assert-string-contains "error" Ported
lint/phpunit/prefer-assert-true-false "error" Ported
lint/phpunit/prefer-comparison-assertion "error" Ported
lint/phpunit/prefer-create-mock "error" Ported
lint/phpunit/prefer-create-stub "error" Ported
lint/phpunit/prefer-create-stub-argument "error" Ported
lint/phpunit/prefer-create-stub-expression "error" Ported
lint/phpunit/prefer-create-stub-in-coalesce "error" Ported
lint/phpunit/prefer-data-provider "error" Ported
lint/phpunit/prefer-dedicated-assertion "error" Ported
lint/phpunit/prefer-expect-exception "error" Ported
lint/phpunit/prefer-inline-create-stub "error" Ported
lint/phpunit/prefer-local-over-setup-property "error" Ported
lint/phpunit/prefer-mock-intersection-return "error" Ported
lint/phpunit/prefer-namespaced "error" Ported
lint/phpunit/prefer-narrow-will-return-callback "error" Ported
lint/phpunit/prefer-narrow-with-consecutive "error" Ported
lint/phpunit/prefer-new-assertion-names "error" Ported
lint/phpunit/prefer-property-assertions "error" Ported
lint/phpunit/prefer-short-will-return "error" Ported
lint/phpunit/prefer-simple-callback-assert "error" Ported
lint/phpunit/prefer-simple-mock-expectation "error" Ported
lint/phpunit/prefer-simple-with-matcher "error" Ported
lint/phpunit/prefer-specific-assertions "error" Ported
lint/phpunit/prefer-specific-true-false-assertion "error" Ported
lint/phpunit/prefer-specific-will-method "error" Ported
lint/phpunit/prefer-standalone-asserts-over-callback "error" Ported
lint/phpunit/prefer-stub-var "error" Ported
lint/phpunit/prefer-test-attribute "error" Ported
lint/phpunit/prefer-test-prefix "error" Ported
lint/phpunit/prefer-this-call "error" Ported
lint/phpunit/prefer-will-return-callback "error" Ported
lint/phpunit/prefer-with-is-instance-of "error" Ported
lint/phpunit/prefer-yield-data-provider "error" Ported
lint/phpunit/require-assertion-style "error" Ported
lint/phpunit/require-data-provider-newlines "error" Ported
lint/phpunit/require-exact-test-argument-type "error" Ported
lint/phpunit/require-final-test-case "error" Ported
lint/phpunit/require-iterable-data-provider "error" Ported
lint/phpunit/require-mock-expects "error" Ported
lint/phpunit/require-static-data-provider "error" Ported
lint/phpunit/require-strict-types-in-tests "error" Ported
lint/phpunit/require-string-assert-argument "error" Ported
lint/phpunit/require-test-annotation-style "error" Ported
lint/refactor/no-negated-condition "error" Ported
lint/security/add-sensitive-parameter "error" Ported
lint/security/no-eval "error" Ported
lint/security/no-ffi "error" Ported
lint/security/no-global "error" Ported
lint/security/no-homoglyph-names "error" Ported
lint/security/no-insecure-comparison "error" Ported
lint/security/no-literal-password "error" Ported
lint/security/no-request-variable "error" Ported
lint/security/no-tainted-data "error" Ported
lint/security/require-preg-quote-delimiter "error" Ported
lint/statements/add-safe-strict-types "error" Ported
lint/statements/require-strict-types "error" Ported
lint/strings/no-non-printable-character "error" Ported
lint/style/no-array-push "error" Ported
lint/style/no-assign-in-ternary-branch "error" Ported
lint/style/no-call-user-func "error" Ported
lint/style/no-empty "error" Ported
lint/style/prefer-cast-over-settype "error" Ported
lint/style/prefer-compound-assignment "error" Ported
lint/style/prefer-early-return "error" Ported
lint/style/prefer-early-return-over-prepared-value "error" Ported
lint/style/prefer-empty-string-compare "error" Ported
lint/tags/no-invalid-open-tag "error" Ported
lint/types/no-loose-comparison "error" Ported
lint/types/no-nullsafe-on-non-null "error" Ported
lint/types/prefer-explicit-null-instanceof "error" Ported
lint/types/prefer-identical-same-type "error" Ported
lint/types/prefer-instanceof "error" Ported

Rules left off (456)

Last updated on

Was this page helpful?