l3r8yJ / oop-cop

The static analysis tool and a Maven plugin that will help you model your objects, classes, methods properly by rejecting your non-perfect code.
https://www.l3r8y.ru/oop-cop/
MIT License
9 stars 5 forks source link

Utility classes check does not fail the build if Utility classes are in project #157

Closed h1alexbel closed 4 months ago

h1alexbel commented 4 months ago

In readme we have section describing how we analyzing "Utility classes" and failing the build if code has them.

However this code is still valid with the latest version of oop-cop:

final class HttpHelper {
  static String buildPath(final String name) {
    ...
  }
}

when I invoke the plugin I expect to see something like this:

...
'HttpHelper.java' is a utilityClass, its prohibited, here is why: ... (UtilityClassCheck)
BUILD FAILURE

But for now its all clean.

zoeself commented 4 months ago

@h1alexbel thank you for reporting this. I'll assign someone to take care of it soon.

zoeself commented 4 months ago

@l3r8yJ I couldn't find any assignee for this task. This is either because there are no contributors with role DEV available or because the project does not have enough funds.

Please, make sure there is at least one available contributor with the required role and the project can afford to pay them.