Linelength seems not exact in stylecheck for if condition

38 views
Skip to first unread message

Nghia Tran

unread,
Aug 26, 2020, 6:16:12 AM8/26/20
to checkstyle
I have the problem with the line length in stylecheck.

The code of condition likes as below:

 1           if (Double.compare(Double.parseDouble(olderDataValue),
 2                          Double.parseDouble(newerDataValue)) != 0) {

It should be two separate lines and should be no any violation on line length.

But stylecheck complained the length of line is longer than 80 with actually length is 110.
Line is longer than 80 characters (found 110).  

Seems it considers above condition is oneline (not two) like
            if (Double.compare(Double.parseDouble(olderDataValue),Double.parseDouble(newerDataValue)) != 0) {

is it a bug in stylecheck?

andrey...@gmail.com

unread,
Aug 26, 2020, 6:38:50 AM8/26/20
to checkstyle

Hi, please submit an issue in  https://github.com/checkstyle/checkstyle/issues with appropriate format (example is provided in issue placeholder, also you can check an example -  https://github.com/checkstyle/checkstyle/issues/8018)

среда, 26 августа 2020 г. в 13:16:12 UTC+3, nghiat...@gmail.com:

Roman Ivanov

unread,
Aug 29, 2020, 1:59:19 AM8/29/20
to andrey...@gmail.com, checkstyle
Hi, 

You can share details in this mail thread but please share details in format https://github.com/checkstyle/checkstyle/blob/master/.github/ISSUE_TEMPLATE/bug_report.md
This format will guide you on how to share all details.

--
You received this message because you are subscribed to the Google Groups "checkstyle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to checkstyle+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/checkstyle/1fd14b90-9e95-490a-a558-75c777ccf95fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages