cqfn / aibolit

Static Analyzer for Java Code with Machine Learning in Mind
https://pypi.org/project/aibolit/
51 stars 17 forks source link

Fix output (Yegor's issue) #612

Closed lyriccoder closed 4 years ago

lyriccoder commented 4 years ago

Please specify the following in the description:

  1. Fix #609
  2. Fixes output
lyriccoder commented 4 years ago

@yegor256 , fixed. Do u like it now?

$ aibolit check --folder D:\target\0001\fast
Version 1.2.6rc1 is available, but you are using 0.0.0
Show pattern with the largest contribution to Cognitive Complexity
D:\target\0001\fast\Configuration.java[1280]: Count If Return (P6: 3.20 1/1)
D:\target\0001\fast\Configuration.java[1690]: Count If Return (P6: 3.20 1/1)
D:\target\0001\fast\Configuration.java[1692]: Count If Return (P6: 3.20 1/1)
D:\target\0001\fast\Configuration.java[1842]: Count If Return (P6: 3.20 1/1)
D:\target\0001\fast\Configuration.java[1852]: Count If Return (P6: 3.20 1/1)
D:\target\0001\fast\Configuration.java[2050]: Count If Return (P6: 3.20 1/1)
D:\target\0001\fast\Configuration.java[2054]: Count If Return (P6: 3.20 1/1)
D:\target\0001\fast\Configuration.java[2090]: Count If Return (P6: 3.20 1/1)
D:\target\0001\fast\Configuration.java[2100]: Count If Return (P6: 3.20 1/1)
D:\target\0001\fast\Configuration.java[2272]: Count If Return (P6: 3.20 1/1)
D:\target\0001\fast\Configuration.java[2322]: Count If Return (P6: 3.20 1/1)
D:\target\0001\fast\Configuration.java[2601]: Count If Return (P6: 3.20 1/1)
D:\target\0001\fast\Configuration.java[2612]: Count If Return (P6: 3.20 1/1)
D:\target\0001\fast\Configuration.java[2693]: Count If Return (P6: 3.20 1/1)
D:\target\0001\fast\Configuration.java[2822]: Count If Return (P6: 3.20 1/1)
D:\target\0001\fast\Configuration.java[2846]: Count If Return (P6: 3.20 1/1)
D:\target\0001\fast\JndiRmiClientInterceptor.java[271]: Multiple try (P11: 7.40 1/1)
D:\target\0001\fast\JndiRmiClientInterceptor.java[365]: Multiple try (P11: 7.40 1/1)
D:\target\0001\fast\LottieImageAsset.java[10]: Non final class (P24: 1.70 1/1)
Total score: 4.10, files seen: 3, ncss 581
You can find all information about patterns here: https://github.com/cqfn/aibolit/blob/master/PATTERNS.md
yegor256 commented 4 years ago

@lyriccoder yes, looks good now

lyriccoder commented 4 years ago

@acheshkov @aravij could you please accept review before merging?

acheshkov commented 4 years ago

@rultor merge

rultor commented 4 years ago

@rultor merge

@acheshkov OK, I'll try to merge now. You can check the progress of the merge here

rultor commented 4 years ago

@rultor merge

@acheshkov Done! FYI, the full log is here (took me 46min)