Отформатировать списки параметров по код-стайлу

Больше двух параметров — каждый на отдельной строке (закрывающая
скобка в конце последнего); два и меньше — в одну строку. Правило
добавлено в docs/spec/Код-стайл-Дейл.md; применено к 628 сигнатурам
в 253 файлах.
This commit is contained in:
Rustam Khalimov
2026-09-11 13:22:56 +03:00
parent 410194b0cb
commit 492950bdd0
255 changed files with 2672 additions and 668 deletions
@@ -68,7 +68,10 @@ public static class AmountParser
var occupied = new List<(int Start, int End)>();
// Свободен ли диапазон (не пересекается с уже занятым конструкцией выше) — прототип _free L106107.
static bool IsFree(List<(int Start, int End)> spans, int start, int end)
static bool IsFree(
List<(int Start, int End)> spans,
int start,
int end)
{
foreach ((int os, int oe) in spans)
{
@@ -81,7 +84,12 @@ public static class AmountParser
return true;
}
void Add(double? from, double? to, string? cur, int start, int end)
void Add(
double? from,
double? to,
string? cur,
int start,
int end)
{
if (cur is not null && (from is not null || to is not null) && IsFree(occupied, start, end))
{