qulice icon indicating copy to clipboard operation
qulice copied to clipboard

RegexpSinglelineCheck is broken

Open olegmoz opened this issue 4 years ago • 2 comments

I've got a Java class with string literal "/**/". For some reason RegexpSinglelineCheck rule violation is reported for it with the following message:

This kind of comment is not allowed. (RegexpSinglelineCheck)

It also impossible to disable the rule using @checkstyle RegexpSinglelineCheck (X lines) in JavaDoc. "/**/" string literal does not has anything to do with RegEx and is not a comment, so it should not cause any errors.

Version of Qulice Maven Plugin is 0.18.19

olegmoz avatar Sep 18 '20 15:09 olegmoz

I have this

/**
     * Ctor.
     *
     * @param line    Line position.
     * @param column  Column position.
     * @param message Error message.
     */
    public ParseError(
        final Integer line,
        final Integer column,
        final String message
    ) {

and got @param tag description should start with capital letter (RegexpSinglelineCheck) for the first two params, the third one is ok.

as I see that something is wrong, so I tried to use

// @checkstyle RegexpSinglelineJava (50 lines)

/**
   * Ctor.
   *
   * @param line    Line position.
   * @param column  Column position.
   * @param message Error message.
   */

but the problem still pops up when running the build

I'm using version 0.22.0 on Java 17

elbraulio avatar Oct 12 '22 20:10 elbraulio

I downgraded to 0.19.5 and worked fine

elbraulio avatar Oct 13 '22 00:10 elbraulio