-
Notifications
You must be signed in to change notification settings - Fork 231
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
Delete S2255 (Deprecated) #7853
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Added a CaYC comment.
@@ -28,7 +28,7 @@ public class RuleTypeTest | |||
{ | |||
// Rules that have been deprecated and deleted. | |||
// When changing this please do not forget to notify the product teams (SQ, SC, SL). | |||
private static readonly HashSet<string> DeletedRules = new() { "S1145", "S1697", "S4142", "S2758", "S2070", "S3693", "S4432", "S2278" }; | |||
private static readonly HashSet<string> DeletedRules = new() { "S1145", "S1697", "S4142", "S2758", "S2070", "S3693", "S4432", "S2278", "S2255" }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please reorder the collection in ascending order.
One more: delete it from the IT ruleset files (I've found 4 references for it):
|
Kudos, SonarCloud Quality Gate passed! |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@@ -28,7 +28,7 @@ public class RuleTypeTest | |||
{ | |||
// Rules that have been deprecated and deleted. | |||
// When changing this please do not forget to notify the product teams (SQ, SC, SL). | |||
private static readonly HashSet<string> DeletedRules = new() { "S1145", "S1697", "S4142", "S2758", "S2070", "S3693", "S4432", "S2278" }; | |||
private static readonly HashSet<string> DeletedRules = new() { "S1145", "S1697", "S2070", "S2255", "S2278", "S2758", "S3693", "S4142", "S4432"}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the purpose of this field? If i delete it, nothing breaks.
So it doesn't make sense to add anything here => just delete the field, and keep the test. In case we'd delete rule, it would bite us.
Also do not forget to plan to notify SQ, SC and SL teams, as mentioned in the comment below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It probably lost its meaning during some of the RSPEC reworks in the past
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's some logic there that uses this hashset.
I prefer to merge this PR as is and add a task to my calendar to check the actual usage of this hashset and remove it eventually in its own PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's what I did when asking for this. Just remove the field completely. If you clear all the elements, the UT still works => it doesn't have a purpose
Rspec update: SonarSource/rspec#2930
Deleting S2255 as it has been deprecated.
Deprecated since: