Surfaced by SonarQube (api.spikersoft.com), rule csharpsquid:S2368, severity BLOCKER (MAINTAINABILITY). Public APIs taking multidimensional/jagged arrays are error-prone and hard to consume.
Make the method private, or replace the jagged/multidim parameter with a clearer type (e.g. a collection of a small struct/record, or a flattened representation with explicit dimensions).
Surfaced by SonarQube (`api.spikersoft.com`), rule `csharpsquid:S2368`, severity BLOCKER (MAINTAINABILITY). Public APIs taking multidimensional/jagged arrays are error-prone and hard to consume.
## Locations
- `SpikerSoft.Data/Mongos/Map/Trail/TrailGeometry.cs:25`
- `SpikerSoft.Data/Mongos/Map/Trail/TrailGeometry.cs:34`
## Fix
Make the method `private`, or replace the jagged/multidim parameter with a clearer type (e.g. a collection of a small struct/record, or a flattened representation with explicit dimensions).
_Rule: https://rules.sonarsource.com/csharp/RSPEC-2368/_
Resolved in spikersoft-backend PR #12 (merged to master). TrailGeometry.Create/CreateMultiLine params changed from jagged arrays to IReadOnlyList<...>; the 3 call sites use collection-expression literals so no caller changes were needed. Closing.
Resolved in spikersoft-backend PR #12 (merged to `master`). `TrailGeometry.Create`/`CreateMultiLine` params changed from jagged arrays to `IReadOnlyList<...>`; the 3 call sites use collection-expression literals so no caller changes were needed. Closing.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Surfaced by SonarQube (
api.spikersoft.com), rulecsharpsquid:S2368, severity BLOCKER (MAINTAINABILITY). Public APIs taking multidimensional/jagged arrays are error-prone and hard to consume.Locations
SpikerSoft.Data/Mongos/Map/Trail/TrailGeometry.cs:25SpikerSoft.Data/Mongos/Map/Trail/TrailGeometry.cs:34Fix
Make the method
private, or replace the jagged/multidim parameter with a clearer type (e.g. a collection of a small struct/record, or a flattened representation with explicit dimensions).Rule: https://rules.sonarsource.com/csharp/RSPEC-2368/
Resolved in spikersoft-backend PR #12 (merged to
master).TrailGeometry.Create/CreateMultiLineparams changed from jagged arrays toIReadOnlyList<...>; the 3 call sites use collection-expression literals so no caller changes were needed. Closing.