- What language is this for?
C# - Which rule?
S2368: Public methods should not have multidimensional array parameters - Are you using
SonarQube Community Edition Version 10.0 (build 68432)
I have noticed this rule is triggered by the following extension method, which I implemented specifically to work with matrices:
public static void MatrixForEach<T>(this T[,] dataMatrix, Action<T, int, int> action) {
// code
}
I’m not sure whether it would be sensible / worth the effort to make this rule ignore specifically the this
parameter of extensions methods.