Skip to content
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

Missing Gitlab report/renderer in latest version. #977

Closed
6 tasks done
koenhendriks opened this issue Aug 26, 2022 · 0 comments · Fixed by #978
Closed
6 tasks done

Missing Gitlab report/renderer in latest version. #977

koenhendriks opened this issue Aug 26, 2022 · 0 comments · Fixed by #978
Milestone

Comments

@koenhendriks
Copy link
Contributor

  • PHPMD version: 2.12.0
  • PHP Version: 8.1
  • Installation type: composer
  • Operating System / Distribution & Version: macOS Monetery 12.4

According to the documentation on phpmd.org and looking at PR #957 there should be support for gitlab as renderer.
Screenshot 2022-08-26 at 11 57 40

Current Behavior

When latest PHPMD is run it fails to find the gitlab report class with the following error:
Can't find the custom report class: gitlab

Expected Behavior

PHPMD runs successfully and reports a json like output created in #957

Steps To Reproduce:

  1. Add latest (2.12.0) PHPMD to project with composer: composer require --dev phpmd/phpmd
  2. Run phpmd with any rule using gitlab as reporter: ./vendor/bin/phpmd app gitlab cleancode
  3. Phpmd fails with error that it cant find gitlab report class.
./vendor/bin/phpmd app gitlab cleancode
Can't find the custom report class: gitlab
  1. (optional) Manually check the vendor/phpmd/phpmd/src/main/php/PHPMD/Renderer directory and see that GitlabRenderer.php file is missing.

Checks before submitting

  • Be sure that there isn't already an issue about this. See: Issues list
  • Be sure that there isn't already a pull request about this. See: Pull requests
  • I have added every step to reproduce the bug.
  • If possible I added relevant code examples.
  • This issue is about 1 bug and nothing more.
  • The issue has a descriptive title. For example: "JSON rendering failed on Windows for filenames with space".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants