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

Cannot connect SonarLint to SonarQube in 6.7.0.52071 #3251

Merged
merged 2 commits into from
Sep 2, 2022

Conversation

ugras-ergun-sonarsource
Copy link
Contributor

@ugras-ergun-sonarsource ugras-ergun-sonarsource commented Sep 2, 2022

fixes #3219

@ugras-ergun-sonarsource ugras-ergun-sonarsource changed the title invalid chars Cannot connect SonarLint to SonarQube in 6.7.0.52071 Sep 2, 2022
@ugras-ergun-sonarsource ugras-ergun-sonarsource marked this pull request as ready for review September 2, 2022 10:40
@@ -154,6 +159,16 @@ private string GetNormalizedExtention(string fileName)
return extension.ToLowerInvariant();
}


private bool IsFileNameInvalid(string fileName)
Copy link
Contributor

Choose a reason for hiding this comment

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

https://stackoverflow.com/questions/27253394/getinvalidfilenamechars-doesnt-contain-all-illegal-chars

I think it's better to do a try-catch around GetNormalizedExtention

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think it's a concern for us. Our code will always run on a windows machine. This would create problems if we had operations run on different systems.

@sonarcloud
Copy link

sonarcloud bot commented Sep 2, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

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

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@ugras-ergun-sonarsource ugras-ergun-sonarsource merged commit 49b6eec into branch-hardeningSept22 Sep 2, 2022
@ugras-ergun-sonarsource ugras-ergun-sonarsource deleted the ue/illegal-char branch September 2, 2022 13:09
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

Successfully merging this pull request may close these issues.

3 participants