Datatype |
@@ -3792,9 +3788,13 @@ PHPCS is a static code analysis and coding-standard checker for PHP (plus JS/CSS
-PHPCS is a static code analysis tool for PHP, JavaScript and CSS files.
+PHPMD is a static code analysis tool for PHP files.
-#### Config File
+### PHPCS
+
+PHPCS is a static code analysis and coding-standard checker for PHP (plus JS/CSS) files.
+
+#### Enable PHPCS
@@ -3802,11 +3802,11 @@ PHPCS is a static code analysis tool for PHP, JavaScript and CSS files.
Location |
- Review > Tools > PMD > Config File |
+ Review > Tools > Enable PHPCS |
Default |
- _No default_ |
+ true |
@@ -3815,21 +3815,21 @@ PHPCS is a static code analysis tool for PHP, JavaScript and CSS files.
Field |
- `reviews.tools.pmd.config_file` |
+ `reviews.tools.phpcs.enabled` |
Datatype |
- string |
+ boolean |
Default |
- _No default_ |
+ true |
-Optional path to the PMD configuration file relative to the repository.
+PHPCS is a static code analysis tool for PHP, JavaScript and CSS files.
### Prisma Schema Linting
diff --git a/docs/tools/flake8.md b/docs/tools/flake8.md
index af38dc42..9819c80c 100644
--- a/docs/tools/flake8.md
+++ b/docs/tools/flake8.md
@@ -26,7 +26,7 @@ Flake8 can detect many issues, including:
- Undefined names / variables
- Cyclomatic-complexity over threshold (default 10)
- Error-prone constructs (e.g., comparison to literal True / False)
-- Select / ignore rule filtering (--select, --extend-ignore)
+- Select / ignore rule filtering (`--select`, `--extend-ignore`)
- Extensible plugin ecosystem and custom rule support
## Links
From de4d61fd8e5f32facbd9054707340d57a148bc64 Mon Sep 17 00:00:00 2001
From: electricplayer <40640596+electricplayer@users.noreply.github.com>
Date: Tue, 8 Jul 2025 15:04:10 -0500
Subject: [PATCH 3/4] docs: remove duplicate flake8
---
docs/tools/flake8.md | 37 -------------------------------------
1 file changed, 37 deletions(-)
delete mode 100644 docs/tools/flake8.md
diff --git a/docs/tools/flake8.md b/docs/tools/flake8.md
deleted file mode 100644
index 9819c80c..00000000
--- a/docs/tools/flake8.md
+++ /dev/null
@@ -1,37 +0,0 @@
----
-title: Flake8
-sidebar_label: Flake8
-description: CodeRabbit's guide to Flake8.
----
-
-```mdx-code-block
-import ProPlanNotice from '@site/src/components/ProPlanNotice.mdx';
-
-
-```
-
-[Flake8](https://flake8.pycqa.org/en/latest/) is a static code analysis tool for Python that wraps PyFlakes (error detection), pycodestyle (PEP 8 style rules) and McCabe (cyclomatic-complexity measurement) to catch a wide range of issues in a single pass.
-
-## Supported Files
-
-Flake8 runs on files with the following extension:
-
-- `*.py`
-
-## Features
-Flake8 can detect many issues, including:
-
-- PEP 8 style-guide violations
-- Unused or re-defined variables and imports
-- Undefined names / variables
-- Cyclomatic-complexity over threshold (default 10)
-- Error-prone constructs (e.g., comparison to literal True / False)
-- Select / ignore rule filtering (`--select`, `--extend-ignore`)
-- Extensible plugin ecosystem and custom rule support
-
-## Links
-
-- [Flake8 Official Website](https://flake8.pycqa.org/en/latest/)
-- [Flake8 PyPI Page](https://pypi.org/project/flake8/)
-- [Flake8 GitHub Repository](https://github.com/PyCQA/flake8)
-- [User Guide](https://flake8.pycqa.org/en/latest/)
\ No newline at end of file
From d194640fd607c8de0fb9b2dda7b5c998f9839cee Mon Sep 17 00:00:00 2001
From: electricplayer <40640596+electricplayer@users.noreply.github.com>
Date: Tue, 8 Jul 2025 15:06:43 -0500
Subject: [PATCH 4/4] expose Flake8, PHPMD & PHPCS in sidebar
---
sidebars.ts | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sidebars.ts b/sidebars.ts
index 5b42e112..3cc53ff0 100644
--- a/sidebars.ts
+++ b/sidebars.ts
@@ -182,6 +182,7 @@ const sidebars: SidebarsConfig = {
"tools/cppcheck",
"tools/detekt",
"tools/eslint",
+ "tools/flake8",
"tools/gitleaks",
"tools/golangci-lint",
"tools/hadolint",
@@ -189,6 +190,8 @@ const sidebars: SidebarsConfig = {
"tools/luacheck",
"tools/markdownlint",
"tools/oxlint",
+ "tools/phpcs",
+ "tools/phpmd",
"tools/phpstan",
"tools/pipeline-remediation",
"tools/pmd",
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy