Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

docs: add Flake8, PHPMD, PHPCS to template & reference (#428)#429

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
123 changes: 123 additions & 0 deletionsdocs/reference/configuration.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2850,6 +2850,47 @@ ESLint is a static code analysis tool for JavaScript files.

ESLint is a static code analysis tool for JavaScript files.

### Flake8

Flake8 is a static code analysis tool for Python files.

#### Enable Flake8

<Tabs groupId="config-setting">
<TabItem value="web-ui" label="Web UI">
<table>
<tbody>
<tr>
<td><strong>Location</strong></td>
<td>Review &gt; Tools &gt; Flake8 &gt; Enable</td>
</tr>
<tr>
<td><strong>Default</strong></td>
<td>true</td>
</tr>
</tbody></table>
</TabItem>
<TabItem value="yaml" label=".coderabbit.yaml" default>
<table>
<tbody>
<tr>
<td><strong>Field</strong></td>
<td>`reviews.tools.flake8.enabled`</td>
</tr>
<tr>
<td><strong>Datatype</strong></td>
<td>boolean</td>
</tr>
<tr>
<td><strong>Default</strong></td>
<td>true</td>
</tr>
</tbody></table>
</TabItem>
</Tabs>

Flake8 is a static code analysis tool for Python files.

### GitHub Checks

GitHub Checks integration configuration.
Expand DownExpand Up@@ -3708,6 +3749,88 @@ Enable PMD.

Optional path to the PMD configuration file relative to the repository.

### PHPMD

PHPMD is a static code analysis tool for PHP files.

#### Enable PHPMD

<Tabs groupId="config-setting">
<TabItem value="web-ui" label="Web UI">
<table>
<tbody>
<tr>
<td><strong>Location</strong></td>
<td>Review &gt; Tools &gt; Enable PHPMD</td>
</tr>
<tr>
<td><strong>Default</strong></td>
<td>true</td>
</tr>
</tbody></table>
</TabItem>
<TabItem value="yaml" label=".coderabbit.yaml" default>
<table>
<tbody>
<tr>
<td><strong>Field</strong></td>
<td>`reviews.tools.phpmd.enabled`</td>
</tr>
<tr>
<td><strong>Datatype</strong></td>
<td>boolean</td>
</tr>
<tr>
<td><strong>Default</strong></td>
<td>true</td>
</tr>
</tbody></table>
</TabItem>
</Tabs>

PHPMD is a static code analysis tool for PHP files.

### PHPCS

PHPCS is a static code analysis and coding-standard checker for PHP (plus JS/CSS) files.

#### Enable PHPCS

<Tabs groupId="config-setting">
<TabItem value="web-ui" label="Web UI">
<table>
<tbody>
<tr>
<td><strong>Location</strong></td>
<td>Review &gt; Tools &gt; Enable PHPCS</td>
</tr>
<tr>
<td><strong>Default</strong></td>
<td>true</td>
</tr>
</tbody></table>
</TabItem>
<TabItem value="yaml" label=".coderabbit.yaml" default>
<table>
<tbody>
<tr>
<td><strong>Field</strong></td>
<td>`reviews.tools.phpcs.enabled`</td>
</tr>
<tr>
<td><strong>Datatype</strong></td>
<td>boolean</td>
</tr>
<tr>
<td><strong>Default</strong></td>
<td>true</td>
</tr>
</tbody></table>
</TabItem>
</Tabs>

PHPCS is a static code analysis tool for PHP, JavaScript and CSS files.

### Prisma Schema Linting

Configuration for Prisma Schema linting to ensure schema file quality
Expand Down
6 changes: 6 additions & 0 deletionsdocs/reference/yaml-template.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -107,6 +107,8 @@ reviews:
config_file: ""
eslint:
enabled: true
flake8:
enabled: true
rubocop:
enabled: true
buf:
Expand All@@ -118,6 +120,10 @@ reviews:
pmd:
enabled: true
config_file: ""
phpmd:
enabled: true
phpcs:
enabled: true
cppcheck:
enabled: true
semgrep:
Expand Down
3 changes: 3 additions & 0 deletionssidebars.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -182,13 +182,16 @@ const sidebars: SidebarsConfig = {
"tools/cppcheck",
"tools/detekt",
"tools/eslint",
"tools/flake8",
"tools/gitleaks",
"tools/golangci-lint",
"tools/hadolint",
"tools/languagetool",
"tools/luacheck",
"tools/markdownlint",
"tools/oxlint",
"tools/phpcs",
"tools/phpmd",
"tools/phpstan",
"tools/pipeline-remediation",
"tools/pmd",
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp