Passing a multi-line collection expression as argument in C# 12 triggers SA1118:
// ⚠️ SA1118 The parameter spans multiple lines
foo.Bar(
[
"foo",
"bar",
"baz"
]);
Specifying the elements on the same line does not trigger the warning:
foo.Bar(["foo", "bar", "baz"]);
This is on version 1.2.0-beta.507.