Skip to content

Support CodeClimate issues in check --output-format#3071

Open
re-xyr wants to merge 1 commit intofacebook:mainfrom
re-xyr:main
Open

Support CodeClimate issues in check --output-format#3071
re-xyr wants to merge 1 commit intofacebook:mainfrom
re-xyr:main

Conversation

@re-xyr
Copy link
Copy Markdown

@re-xyr re-xyr commented Apr 8, 2026

Summary

Add a new option codeclimate for pyrefly check --output-format, which outputs a JSON array of CodeClimate issues. This is useful primarily for GitLab CI/CD to pick up a Code Quality Report artifact.

Fixes #3049

Test Plan

A scrut test for this option was added.

@meta-cla
Copy link
Copy Markdown

meta-cla bot commented Apr 8, 2026

Hi @re-xyr!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@github-actions github-actions bot added the size/l label Apr 8, 2026
@meta-cla meta-cla bot added the cla signed label Apr 8, 2026
@meta-cla
Copy link
Copy Markdown

meta-cla bot commented Apr 8, 2026

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

Copy link
Copy Markdown
Contributor

@connernilsen connernilsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @re-xyr, thanks for making this. One minor change I'll make on our end is to rename OutputFormat::Codeclimate to OutputFormat::CodeClimate. Let me know if that can't be done for some reason and we can follow up to change the naming scheme.

@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync bot commented Apr 15, 2026

@connernilsen has imported this pull request. If you are a Meta employee, you can view this in D101040112.

@connernilsen connernilsen self-assigned this Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add GitLab Code-Quality report format

2 participants