You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the code-climate report generated with -f codeclimate has an issue: The entry for location/path per issue must be set relative to the repository root. Currently this is set as an absolute path.
I might have some time this Friday (or maybe next one) to look into this. I think an additional option for the formatter might be a good idea. Something like relativePathBase and then we can just use Path::makeRelative() when its set. If you like, you can also create a PR, if you want to contribute the fix yourself.
Hi,
the code-climate report generated with
-f codeclimate
has an issue: The entry forlocation/path
per issue must be set relative to the repository root. Currently this is set as an absolute path.This is a problem for GitLab CI which sets an URL in its interface relative to this path in the repository. This is also stated in the GitLab CI documentation: https://docs.gitlab.com/ee/ci/testing/code_quality.html#implementing-a-custom-tool
F.e.:
which generates a URL in GitLab like https://gitlab.com/group/example/-/blob/9013bc9744e99436767e0ef57d0fbcf6a7f5//builds/group/example/src/GreetingService.php#L9
Possible solution: Cut everything from the path up to the working directory of deptrac or determine path based on
paths
in the deptrac config/option.The text was updated successfully, but these errors were encountered: