0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Copilot code review と Linter の統合

Last updated at Posted at 2025-11-21

要約

  • Copilot code review に Linter が統合された
  • 2025/11/21 時点では ESLint, PMD が設定可能
  • Settings > Rules > Rulesets > Manage static analysis tools in Copilot code review で設定

公式リリース

昨日(2025/11/20)、以下のリリースが公開

Copilot code review now surfaces actionable feedback from linters, so the small stuff is never missed—and you can customize which linters are used via repository rulesets. This feature is available in public preview for paid GitHub users.

Copilot code review が、Linter からの実用的なフィードバックを表示するようになりました。これにより、細かな見落としがなくなり、リポジトリの Rulesets を通じて使用する Linter をカスタマイズできます。この機能は、GitHubの有料ユーザー向けにパブリックプレビューで利用可能です。

In addition to CodeQL quality detections enabled at GitHub Universe 2025, you can now get results from the following static analysis tools in Copilot code review:

  • ESLint highlights issues for JavaScript and TypeScript projects.
  • PMD scans for problems in Java, Apex, and other supported languages.

GitHub Universe 2025で有効化された CodeQL による品質検出に加え、Copilot code review で以下の静的解析ツールの結果を得られるようになりました。

  • ESLint:JavaScriptおよびTypeScriptプロジェクトの問題点をハイライトします。
  • PMD:Java、Apex、その他サポートされている言語の問題をスキャンします。

PMD がサポートしている言語について

https://github.com/pmd/pmd

Currently, PMD supports Java, JavaScript, Salesforce.com Apex and Visualforce, Kotlin, Swift, Modelica, PL/SQL, Apache Velocity, JSP, WSDL, Maven POM, HTML, XML and XSL. Scala is supported, but there are currently no Scala rules available.

現在、PMDは Java、JavaScript、Salesforce.com Apex および Visualforce、Kotlin、Swift、Modelica、PL/SQL、Apache Velocity、JSP、WSDL、Maven POM、HTML、XML、XSL をサポートしています。Scalaもサポートされていますが、現在利用可能なScalaのルールはありません。

設定手順

以下に動画・文章での紹介があります。

  1. Go to Settings > Rules > Rulesets in a repository where you have admin access.
  2. Add or edit a ruleset and select the new “Manage static analysis tools in Copilot code review” rule.
  3. Select which static analysis tools you want Copilot code review to include: ESLint, PMD, and/or CodeQL. Note that CodeQL is enabled by default, and can now be disabled via the rule.
  4. Save the rule and open a new pull request to see Copilot code review run with your new linter setup.
  1. 管理者権限を持つリポジトリで、「Settings」>「Rules」>「Rulesets」に移動します。
  2. Rulesets を追加または編集し、新しい「Manage static analysis tools in Copilot code review」ルールを選択します。
  3. Copilot code review に含めたい静的解析ツール(ESLint、PMD、および/またはCodeQL)を選択します。CodeQLはデフォルトで有効になっていますが、このルールを通じて無効化できるようになりました。
  4. Rule を保存し、新しいプルリクエストを開くと、新しい Linter 設定で Copilot code review が実行されるのを確認できます。

所感

  • GitHub Actions → Copilot code review に Linter を移行することで利用枠に余裕が持たせられそう
    • Copilot code review の自動実行が強制できないプランの場合は厳しいか
  • 今後は SAST 等も統合されていくのだろうか
    • 静的解析は Copilot code review が一通りやってくれるようになる?
  • 実行タイミングを考えると、開発時のフィードバック用途には向かなさそう
    • ローカルで都度確認可能なように、従来のツール設定が結局必要になってくる
    • Coding Agent 前提の開発体制だとまた変わってくる?
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?