Hello Checkstyle Team,
I'm working on
applying rules for loggers used in the codebase. While doing so I'm
unable to find the starting line number for the first parameter of the
logger. Descriptor always returns the line number it is ending with.
I
want to add the rule to start the logger's first parameter from its
method call (i.e. 14) but I couldn't find any way to check that since
the first param line number returns 17 in the below case.
int loggerLineNumber = method.getStartLineNumber();
int firstParamLineNumber = method.getParameterList(DetailAST::getFirstChild).getLineNo();
I wanted to compare these 2 values to set the rule. But that's not happening.
Please help me out. I have already spent enough time on it.
Thanks & Regards,
Arjun