configcat / .net-sdk

ConfigCat SDK for .NET. ConfigCat is a hosted feature flag service: https://configcat.com. Manage feature toggles across frontend, backend, mobile, desktop apps. Alternative to LaunchDarkly. Management app + feature flag SDKs.
https://configcat.com/docs/sdk-reference/csharp
Other
29 stars 8 forks source link

Additional minor improvements #51

Closed adams85 closed 1 year ago

adams85 commented 1 year ago

Describe the purpose of your pull request

Requirement checklist (only if applicable)

adams85 commented 1 year ago

Looks like Sonar doesn't like SHA1 :( How to make it understand that it's safe in this case?

z4kn4fein commented 1 year ago

Looks like Sonar doesn't like SHA1 :( How to make it understand that it's safe in this case?

Did it for ya!

adams85 commented 1 year ago

You're the man! Thanks 👍

sonarcloud[bot] commented 1 year ago

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 2 Code Smells

86.2% 86.2% Coverage
0.0% 0.0% Duplication

sigewuzhere commented 1 year ago

Please point me to the right direction. Where did the UX change? Which files should I focus on?

adams85 commented 1 year ago

Only the first commit is relevant from the UX standpoint. First of all, there's a Trello ticket about improving the error message when the type of the default value and the type of the actual value mismatch. This is done here. On top of that, I also improved the logic of the GetValueXXX methods to fail early if the default value type is not supported. This also aligns the behavior with other SDKs like the Swift one.

sonarcloud[bot] commented 1 year ago

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

84.8% 84.8% Coverage
0.0% 0.0% Duplication

adams85 commented 1 year ago

Did it for ya!

@z4kn4fein Sonar complains about SHA1 again, so please, do your magic again. :)