8000 Add GitLab formatter by kostiantyn-priv · Pull Request #766 · prospector-dev/prospector · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add GitLab formatter #766

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 19, 2025

Conversation

kostiantyn-priv
Copy link
Contributor

Description

Add GitLab formatter

Related Issue

#765

Motivation and Context

When running prospector on GitLab CI/CD, it is not possible to use its report as is, because GitLab uses the "CodeClimate report format", which is not supported.

How Has This Been Tested?

I tested these changes and got the expected result.
image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • My change requires a change to the dependencies
  • I have updated the dependencies accordingly
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@sbrunner sbrunner requested a review from Copilot May 17, 2025 13:35
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new GitLab formatter to output prospector findings in the GitLab Code Quality report format.

  • Introduces a new formatter class (GitlabFormatter) in prospector/formatters/gitlab.py
  • Registers the new formatter in the init.py file for available formatters
  • Updates the documentation to include usage instructions for the gitlab formatter

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
prospector/formatters/gitlab.py Adds the GitlabFormatter implementation for GitLab Code Quality
prospector/formatters/init.py Registers the gitlab formatter
docs/usage.rst Updates the documentation table to reference the gitlab formatter

@sbrunner
Copy link
Member

Thanks for your contribution :-)

@sbrunner sbrunner merged commit 39ebe25 into prospector-dev:master May 19, 2025
7 checks passed
@kostiantyn-priv kostiantyn-priv deleted the add-gitlab-formatter branch May 19, 2025 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0