-
Notifications
You must be signed in to change notification settings - Fork 73
Add new rule DiscourageStringInterpolationWithStringFormat #821
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
base: master
Are you sure you want to change the base?
Add new rule DiscourageStringInterpolationWithStringFormat #821
Conversation
|
As we might change this rule in the future to use |
Fixes: fsprojects#542 Co-authored-by: webwarrior-ws <reg@webwarrior.ws>
53e1c73 to
eb67825
Compare
That made tests flaky.
Better to not mention "sprintf" in the rule name, in case we
change this rule in the future to recommend inline strings
(e.g. `$"foo{bar}"`).
58b062f to
a0ceba8
Compare
Better to place it the last if it's the last added rule.
5a660b1 to
f7e8b53
Compare
Make tests more self-contained and less confusing.
d424f73 to
1f274b3
Compare
|
@webwarrior-ws I know you contributed to this PR already, but imagine you hadn't: please review the whole diff before I merge. |
|
Other than that, LGTM. |
1f274b3 to
27ffeda
Compare
27ffeda to
44819e2
Compare
|
@webwarrior-ws actually, I have found a problem, see my last TMP commit. Let's address it with a new commit (adding a test of course). |
Fixes: #542
Supersedes #589