-
Notifications
You must be signed in to change notification settings - Fork 21
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
SONARKT-429 Fix UTs on Windows with autocrlf true #522
SONARKT-429 Fix UTs on Windows with autocrlf true #522
Conversation
8b2a050
to
08c3afc
Compare
@@ -38,7 +39,11 @@ internal class KotlinRulesDefinitionTest { | |||
.isEqualTo("Identical expressions should not be used on both sides of a binary operator") | |||
Assertions.assertThat(rule.type()).isEqualTo(RuleType.BUG) | |||
Assertions.assertThat(rule.scope()).isEqualTo(RuleScope.ALL) | |||
Assertions.assertThat(rule.htmlDescription()).startsWith("<h2>Why is this an issue?</h2>\n<p>Using the same value on both sides") | |||
val htmlDescription = rule.htmlDescription()?.lines(); |
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.
I think it is safe to use !!
here and get rid of nullability. As we don't expect description to be null and if it is it wili fail accordingly
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.
Indeed, I have also removed the unnecessary ;
.
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.
Looks good, have a minor suggestion to improve nullability handling
Quality Gate passedIssues Measures |
@leveretka I have addressed the comment. |
No description provided.