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

How can I suppress a check? #105

Closed volodya-lombrozo closed 8 months ago

volodya-lombrozo commented 8 months ago

I've got one of the following messages:

Class 'RuleLineHitter' has bad naming, class ends with '-er' suffix

Suppose In general I want to use this check, however in some cases (like this one, I presented above) I want to have an ability to disable the check. Like the following:

@SuppressWarnings("OOP.ErSuffix")
public final class RuleLineHitter implements Rule {
}

Do you have something like this?

zoeself commented 8 months ago

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

volodya-lombrozo commented 8 months ago

@l3r8yJ Could you help here, please?

zoeself commented 8 months ago

@l3r8yJ this is your task now, please go ahead. Deadline (when this ticket should be closed) is 2024-01-09T14:00:13.924364.

Estimation here is 60 minutes, that's how much you will be paid.

Remember, you don't have to solve everything in this ticket - you can solve it partially and leave todo markers in the code, which will become future tasks.

If you have any questions don't ask me, I'm not a technical person. Open new tickets instead.

If you don't have time or simply don't want to work on this, you can always resign.

l3r8yJ commented 8 months ago

@volodya-lombrozo this is still in development, I'll let you know when we add this suppression, see #38

l3r8yJ commented 8 months ago

@volodya-lombrozo released, now it's @SuppressWarnings("OOP.ErSuffixCheck"), plugin version 0.2.6, more info in readme

zoeself commented 8 months ago

@l3r8yJ thank you for resolving this ticket. I've just added it to your active invoice. You can always check all your invoices and more on the Contributor Dashboard.