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

improve code quality #4639

Merged
merged 1 commit into from
May 31, 2021
Merged

improve code quality #4639

merged 1 commit into from
May 31, 2021

Conversation

t29kida
Copy link
Contributor

@t29kida t29kida commented May 30, 2021

Hello~.

Description

This PR fixes a few sonar problems.
reference issue #4434

Summary of changes

  • replace min limit values of uint32 and uint64 with const values
  • remove duplicated test case and add test case
  • put together switch case statement
  • fill empty block of code

@codecov-commenter
Copy link

codecov-commenter commented May 30, 2021

Codecov Report

Merging #4639 (c42c1bd) into develop (2f174db) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #4639      +/-   ##
===========================================
+ Coverage    54.79%   54.80%   +0.01%     
===========================================
  Files          243      243              
  Lines        17770    17770              
===========================================
+ Hits          9737     9739       +2     
+ Misses        7080     7076       -4     
- Partials       953      955       +2     
Impacted Files Coverage Δ
client/cache/calc_utils.go 100.00% <100.00%> (ø)
server/web/session/sess_mem.go 28.23% <0.00%> (-2.36%) ⬇️
core/logs/file.go 64.82% <0.00%> (-1.01%) ⬇️
client/orm/clauses/order_clause/order.go 100.00% <0.00%> (+18.75%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2f174db...c42c1bd. Read the comment docs.

* replace min limit value with const values
* remove duplicated testcase and add testcase
* put together switch case statement
* fill empty block of code
@sonarcloud
Copy link

sonarcloud bot commented May 31, 2021

Kudos, SonarCloud 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
0.0% 0.0% Duplication

@flycash flycash merged commit fb4c91f into beego:develop May 31, 2021
@t29kida
Copy link
Contributor Author

t29kida commented May 31, 2021

@flycash Thank you 😊

@t29kida t29kida deleted the fix-sonar-problem branch May 31, 2021 14:29
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