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

Modify rule S4018: modify message to make it clear the rule is about type inference #1503

Merged
merged 4 commits into from
Jan 16, 2023

Conversation

zsolt-kolbay-sonarsource
Copy link
Contributor

@zsolt-kolbay-sonarsource zsolt-kolbay-sonarsource commented Jan 16, 2023

The rule's message and description were too vague. They didn't make it clear that the type parameters need to be used in the argument list in order to enable type inference when the method is called. Those texts in the rule were updated to reflect that.

Implementation ticket: SonarSource/sonar-dotnet/issues/6636

Copy link
Contributor

@andrei-epure-sonarsource andrei-epure-sonarsource left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WDYT about giving a hint as comment in the sample?

rules/S4018/rule.adoc Show resolved Hide resolved
@andrei-epure-sonarsource
Copy link
Contributor

@zsolt-kolbay-sonarsource please update the PR title to match the guideline : https://github.com/SonarSource/rspec#to-modify-an-existing-rule

Modify rule S9999: Foo bar baz

Add the link to the implementation ticket: https://github.com/SonarSource/rspec#3-create-an-implementation-ticket

This is necessary for the automation for https://sonarsource.github.io/rspec/

@zsolt-kolbay-sonarsource zsolt-kolbay-sonarsource changed the title Fix S4018 message to make it clear it's about type inference. Modify rule S4018: modify message to make it clear the rule is about type inference Jan 16, 2023
@sonarsource-next
Copy link

SonarQube Quality Gate for 'rspec-tools'

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@sonarsource-next
Copy link

SonarQube Quality Gate for 'rspec-frontend'

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@zsolt-kolbay-sonarsource zsolt-kolbay-sonarsource merged commit dc26f15 into master Jan 16, 2023
@zsolt-kolbay-sonarsource zsolt-kolbay-sonarsource deleted the Zsolt/S4018-message-update branch January 16, 2023 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants