Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

resolve (fix or suppress) all linter warnings #37

Merged
merged 3 commits into from
Aug 26, 2024

Conversation

nurzhan-saktaganov
Copy link
Collaborator

@nurzhan-saktaganov nurzhan-saktaganov commented Aug 12, 2024

  • wsl is removed from linters list because it produces too much noise
  • several linters are enabled because they are usefull: gosimple, staticcheck, fofmt, nilerr and etc
  • bugfix: "BucketStat" always returns non-nil err, fixed (found by staticcheck linter),
    although this function may need additional fixes.
  • bugfix: "DiscoveryAllBuckets" returns nil even if errGr.Wait() returns err, fixed (found by nilerr)
  • bugfix: misusage of atomics in "DiscoveryHandleBuckets", fixed (found by govet).
    This function does not seem correct yet, it will be discussed in another issue

NOTE: the current branch is implemented over branch nsaktaganov_vshard_storage_call_resp_unpack_fix.
It should be merged only after #35. Don't forget to change the destination branch to master.

@nurzhan-saktaganov nurzhan-saktaganov changed the title WIP: Fix or suppress all linter warnings WIP: resolve (fix or suppress) all linter warnings Aug 12, 2024
Copy link
Owner

@KaymeKaydex KaymeKaydex left a comment

Choose a reason for hiding this comment

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

Thank u for pr, pls check few fixes

api.go Show resolved Hide resolved
providers/static/provider_test.go Outdated Show resolved Hide resolved
providers/static/provider_test.go Outdated Show resolved Hide resolved
providers/static/provider_test.go Outdated Show resolved Hide resolved
providers/static/provider_test.go Outdated Show resolved Hide resolved
replicaset.go Outdated Show resolved Hide resolved
replicaset.go Outdated Show resolved Hide resolved
vshard.go Outdated Show resolved Hide resolved
vshard_shadow_test.go Outdated Show resolved Hide resolved
vshard_shadow_test.go Outdated Show resolved Hide resolved
nurzhan-saktaganov added a commit that referenced this pull request Aug 26, 2024
@nurzhan-saktaganov nurzhan-saktaganov changed the title WIP: resolve (fix or suppress) all linter warnings resolve (fix or suppress) all linter warnings Aug 26, 2024
@nurzhan-saktaganov nurzhan-saktaganov marked this pull request as ready for review August 26, 2024 16:07
* wsl is removed from linters list because produces too many noise
* several linters are enabled because they are usefull: gosimple, staticcheck, fofmt, nilerr and etc
* bugfix: "BucketStat" always returns non-nil err, fixed (found by staticcheck linter),
      although this function may need additional fixes.
* bugfix: "DiscoveryAllBuckets" returns nil even if errGr.Wait() returns err, fixed (found by nilerr)
* bugfix: misusage of atomics in "DiscoveryHandleBuckets", fixed (found by govet).
      This function does not seem correct yet, it would be discussed in another issue
nurzhan-saktaganov added a commit that referenced this pull request Aug 26, 2024
@nurzhan-saktaganov nurzhan-saktaganov changed the base branch from nsaktaganov_vshard_storage_call_resp_unpack_fix to master August 26, 2024 16:24
@KaymeKaydex KaymeKaydex merged commit ef71933 into master Aug 26, 2024
@nurzhan-saktaganov nurzhan-saktaganov added bug Something isn't working enhancement New feature or request labels Sep 1, 2024
@nurzhan-saktaganov nurzhan-saktaganov deleted the nsaktaganov_linters_fix branch September 17, 2024 16:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants