Skip to main content

rebase_codeclimate_paths

Function rebase_codeclimate_paths 

Source
pub fn rebase_codeclimate_paths(issues: &mut [CodeClimateIssue])
Expand description

Rebase every issue path onto the repository root.

CI platforms address files by repo-root-relative path: GitLab’s Code Quality widget matches location.path against the MR diff, and the review APIs reject a new_path that names no file in the diff. The CodeClimate builders emit analysis-root-relative paths, which only coincide with the repo root for a single-package repo.

The review and sticky-summary formats derive their paths from these issues, so rebasing here covers every CI surface but github-annotations, which renders from JSON and applies the same rebase itself.