dsp-api icon indicating copy to clipboard operation
dsp-api copied to clipboard

Codacy coverage information not enabled

Open benjamingeer opened this issue 6 years ago • 19 comments

It looks like #1021 didn't work:

screen shot 2018-10-31 at 19 40 48

benjamingeer avatar Oct 31 '18 18:10 benjamingeer

Also there doesn't seem to be any coverage information for this PR:

https://github.com/dhlab-basel/Knora/pull/1011

benjamingeer avatar Oct 31 '18 18:10 benjamingeer

It is, but it is here: https://app.codacy.com/project/dhlab-basel/Knora/dashboard

I don't know, why this PR points to your dashboard. Maybe you could try to remove the Knora project from your personal dashboard?

subotic avatar Oct 31 '18 20:10 subotic

It is, but it is here: https://app.codacy.com/project/dhlab-basel/Knora/dashboard

Is there something there about coverage for particular PRs? I can't find it. And when I follow the Codacy/PR Quality Review links directly from our other PRs on GitHub, I also don't find any coverage information.

Maybe you could try to remove the Knora project from your personal dashboard?

I can't find any way to do that...

benjamingeer avatar Oct 31 '18 21:10 benjamingeer

Here is a description on removing a project: https://support.codacy.com/hc/en-us/articles/207994835-How-do-I-transfer-remove-a-project-from-my-account-

subotic avatar Nov 01 '18 13:11 subotic

The options described there are “remove your project from Codacy” or “transfer your project to another of your organizations”. I guess the first option isn’t what we want. With the second option, I tried to transfer the Knora project to the dhlab-basel organisation, but it says “You need to choose at least one team.”

benjamingeer avatar Nov 01 '18 14:11 benjamingeer

15050e10-2cc9-4632-8574-cc1d085fba9e

benjamingeer avatar Nov 01 '18 14:11 benjamingeer

Yes, the first option would be the correct one.

subotic avatar Nov 01 '18 17:11 subotic

The project is already part of the dhlab-basel team dashboard. Codacy is a bit confusing. You can add the same project to different dashboards.

subotic avatar Nov 01 '18 17:11 subotic

or you can try to transfer it. lets see what happens ;-)

subotic avatar Nov 01 '18 17:11 subotic

OK, I took the first option. Now I see the project under dhlab-basel, but it still doesn't have coverage information. It says "You need to request someone with write permissions to setup coverage".

screen shot 2018-11-02 at 12 27 06

benjamingeer avatar Nov 02 '18 11:11 benjamingeer

Also, now I don't see a settings button anymore, so I can't change the code quality options, and Codacy is spamming my pull request with silly comments.

benjamingeer avatar Nov 02 '18 11:11 benjamingeer

and Codacy is spamming my pull request with silly comments

code review ;-)

I think I turned this on yesterday. I deactivated it now. Let's see if this will lower the verbosity of codacy.

As for the coverage, sometimes it shows and sometimes it doesn't. I'm not sure why.

subotic avatar Nov 02 '18 12:11 subotic

Let's see if this will lower the verbosity of codacy.

OK, but I still want to be able to change Codacy's settings:

  • allow calling .head on a collection and .get on an Option, because this is something I do a lot in tests
  • allow a method longer than 50 lines
  • allow a method with more than 8 parameters

Before I "removed Knora from Codacy", I was able to change these settings. But now I don't even have a settings button to click anymore. Could this be because I don't have sufficient permissions in Codacy?

benjamingeer avatar Nov 02 '18 12:11 benjamingeer

I gave you admin permissions. Now you should be able to change any settings :-)

subotic avatar Nov 02 '18 12:11 subotic

Great, now I can add a rule that all variable names must be exactly one character long. :)

benjamingeer avatar Nov 02 '18 12:11 benjamingeer

I see coverage now:

screenshot 2018-11-02 13 51 16

subotic avatar Nov 02 '18 12:11 subotic

:-)

subotic avatar Nov 02 '18 12:11 subotic

I see the coverage for the project, but I don't see it for my pull request:

https://app.codacy.com/app/dhlab-basel/Knora/pullRequest?prid=2444057

Maybe Codacy only provides coverage information for develop, not for other branches or for PRs?

benjamingeer avatar Nov 02 '18 12:11 benjamingeer

Yay, we got an A from Codacy :-)

subotic avatar Nov 02 '18 13:11 subotic