Closed RuslanGaliullin closed 8 months ago
There might be strict requirements for the files for which the metric could be counted It works absolutely fine for repo=yegor256/tojos
@RuslanGaliullin can you please show a large part of the log? I can't figure out why you only see this line, but don't see the error output of the pmd.sh
:
Failed to collect pmd.sh for /dataset/github/zhoutaoo/SpringCloud/auth/authentication-server/src/main/java/com/springboot/cloud/auth/authentication/service/NewMvcRequestMatcher_equals_1.java
@yegor256, attaching more log. There is no error message, thats why it confused me, even in the first failure
4 scripts collected 9 metrics (sum=1525.327) for ResourceService_removeResource_1.java (345759/364784), in 5s
cyclomatic_complexity.py
Failed to collect pmd.sh for /dataset/github/zhoutaoo/SpringCloud/auth/authentication-server/src/main/java/com/springboot/cloud/auth/authentication/config/BusConfig_resourceMessageConverter_9.java
cloc.sh
multimetric.sh
4 scripts collected 9 metrics (sum=1373.757) for BusConfig_resourceMessageConverter_9.java (345756/364784), in 5s
cyclomatic_complexity.py
Failed to collect pmd.sh for /dataset/github/zhoutaoo/SpringCloud/auth/authentication-server/src/main/java/com/springboot/cloud/auth/authentication/service/NewMvcRequestMatcher_equals_1.java
cloc.sh
multimetric.sh
4 scripts collected 9 metrics (sum=4813.286) for NewMvcRequestMatcher_equals_1.java (345758/364784), in 6s
cyclomatic_complexity.py
Failed to collect pmd.sh for /dataset/github/zhoutaoo/SpringCloud/auth/authentication-server/src/main/java/com/springboot/cloud/auth/authentication/service/impl/GroupService_queryGroupsByUsername_0.java
cloc.sh
multimetric.sh
4 scripts collected 9 metrics
@RuslanGaliullin the problem is the absence of pmd
on your machine. Try make install
first.
I want to collect CC and CoCo metrics for each method separately. I wrote my own filter which transforms into files of this kind:
So files with no packages with only
class ClassName_MethodName_Number { MethodDeclaration + MethodBody }
.For starting container change Dockerfile:
But for vast majority of my processed method-files pmd.sh throws error. It occurs once and then fails for the rest files.
platform - Ubuntu 22.04
What could be the reason for this?