“An open curly brace should be located at the end of a line”
I like to format code like this, but S1105 complains about the ) {
for the record even though it is fine with the ) {
for the method.
public record ExampleRecord(
AReallyLongClassNameThatNecessitatesSplittingOntoMultipleLines a,
AnotherReallyLongClassNameThatNecessitatesSplittingOntoMultipleLines b
) {
public AReallyLongClassNameThatNecessitatesSplittingOntoMultipleLines abc(
AReallyLongClassNameThatNecessitatesSplittingOntoMultipleLines b,
AnotherReallyLongClassNameThatNecessitatesSplittingOntoMultipleLines c
) {
return b;
}
}
It seems like it should either complain about both or neither. I’d prefer neither.
SonarSource 7.4.0.60471
SonarQube * 9.7.1 (build 62043)
Java 17.0.4