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

add gocritic/ruleguard checks back again, cleanup code. #13665

Merged
merged 2 commits into from Nov 16, 2021

Conversation

harshavardhana
Copy link
Member

Description

add gocritic/ruleguard checks back again, cleanup code.

Motivation and Context

How to test this PR?

Nothing should change just code-reorg

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Optimization (provides speedup with no functional changes)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • Fixes a regression (If yes, please add commit-id or PR # here)
  • Documentation updated
  • Unit tests added/updated

Copy link
Member

@donatello donatello left a comment

Choose a reason for hiding this comment

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

Didn't go through everything yet, but seems like a good opportunity to bump up lint version to latest

@harshavardhana
Copy link
Member Author

Didn't go through everything yet, but seems like a good opportunity to bump up lint version to latest

yes sure @donatello

- remove some duplicated code
- reported a bug, separately fixed in minio#13664
- using strings.ReplaceAll() when needed
- using filepath.ToSlash() use when needed
- remove all non-Go style comments from the codebase
.golangci.yml Outdated Show resolved Hide resolved
Co-authored-by: Aditya Manthramurthy <donatello@users.noreply.github.com>
@minio-trusted
Copy link
Contributor

Mint Automation

Test Result
mint-large-bucket.sh ✔️
mint-fs.sh ✔️
mint-gateway-s3.sh ✔️
mint-erasure.sh ✔️
mint-dist-erasure.sh ✔️
mint-gateway-nas.sh ✔️
mint-compress-encrypt-dist-erasure.sh ✔️
mint-pools.sh ✔️
Deleting image on docker hub
Deleting image locally

@harshavardhana harshavardhana merged commit 661b263 into minio:master Nov 16, 2021
@harshavardhana harshavardhana deleted the fix-bucket branch November 16, 2021 17:28
rbuchnajzer pushed a commit to rbuchnajzer/minio that referenced this pull request Dec 7, 2021
- remove some duplicated code
- reported a bug, separately fixed in minio#13664
- using strings.ReplaceAll() when needed
- using filepath.ToSlash() use when needed
- remove all non-Go style comments from the codebase

Co-authored-by: Aditya Manthramurthy <donatello@users.noreply.github.com>
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.

None yet

6 participants