Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Некорректные String.Format #11

Closed
5665tm opened this issue Oct 29, 2017 · 1 comment
Closed

Некорректные String.Format #11

5665tm opened this issue Oct 29, 2017 · 1 comment

Comments

@5665tm
Copy link

5665tm commented Oct 29, 2017

По всему проекту разбросано куча (порядка десятка) неправильных String.Format вида

String.Format("{1} {2}", value1, value2)

Правильно будет:

String.Format("{0} {1}", value1, value2)

Найти можно включив в решарпере отображение таких случаев как ошибок, либо прогнав через PVS Studio (так я на них собственно и наткнулся)

@slavniyteo
Copy link
Owner

Стыд и срам =)

Нашел всего четыре вхождения string.Format. Спасибо.

Fixed in d289064

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants