You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
False positive: vertical_parameter_alignment with specific function name #5037
Hi! Found a new false positive case of vertical_parameter_alignment. The problem is reproduced on SwiftLint version 0.52.2.
I cannot explain this error, in this case it occurs :
The first character of your function name is a Cyrillic с (U+0441). It occupies 4 byte more than an ASCII c.
Admittedly, SwiftLint shouldn't care for the number of bytes but for the length of visible characters only. So this is actually a bug we have also seen in other contexts.
I don't think you rely on this specific character, however. So replacing it with an ASCII c should silence the warning for you.
Activity
SimplyDanny commentedon Jun 11, 2023
The first character of your function name is a Cyrillic
с(U+0441). It occupies 4 byte more than an ASCIIc.Admittedly, SwiftLint shouldn't care for the number of bytes but for the length of visible characters only. So this is actually a bug we have also seen in other contexts.
I don't think you rely on this specific character, however. So replacing it with an ASCII
cshould silence the warning for you.SimplyDanny commentedon Jul 30, 2023
Does my previous comment resolve the issue, @MrCOBA?