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

fix: enable linter: maintidx #177

Merged
merged 3 commits into from
Nov 10, 2022
Merged

fix: enable linter: maintidx #177

merged 3 commits into from
Nov 10, 2022

Conversation

yitsushi
Copy link
Contributor

@yitsushi yitsushi commented Nov 8, 2022

Issues fixed:

  • Fix issues with auto fix (--fix).
  • Rename this receivers.
  • Fix language issues, most of the duplicated words like "the the".
  • Removed unnecessary type conversion.
  • Reduced complexity of the _apply function by extracting some parts into a separate function.
  • Reduced complexity of the push function by extracting some parts into a separate function.

References:

Closes #91

Issues fixed:
- Fix issues with auto fix (`--fix`).
- Rename `this` receivers.
- Fix language issues, most of the duplicated words like "the the".
- Removed unnecessary type conversion.
- Reduced complexity of the `_apply` function by extracting some parts
  into a separate function.
- Reduced complexity of the `push` function by extracting some parts
  into a separate function.

References:
- #91

Closes #91
@yitsushi
Copy link
Contributor Author

yitsushi commented Nov 8, 2022

Please review the extracted functions carefully, I tried to be careful, but it does not mean I did not miss something. These functions have no tests, so I couldn't verify everything with tests.

❯ go test ./pkg/docker/...
?       github.com/open-component-model/ocm/pkg/docker  [no test files]
?       github.com/open-component-model/ocm/pkg/docker/resolve  [no test files]

Copy link
Contributor

@mandelsoft mandelsoft left a comment

Choose a reason for hiding this comment

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

Thanks, for all those typo fixes. This was for sure no fun. Just some minor things...

pkg/docker/pusher.go Outdated Show resolved Hide resolved
cmds/ocm/commands/ocmcmds/common/resources.go Show resolved Hide resolved
cmds/ocm/topics/toi/bootstrapping/topic.go Outdated Show resolved Hide resolved
pkg/contexts/oci/ociutils/helm/ignore/doc.go Outdated Show resolved Hide resolved
pkg/contexts/ocm/accessmethods/localfsblob/method.go Outdated Show resolved Hide resolved
@mandelsoft mandelsoft merged commit 8f1c6dd into main Nov 10, 2022
@mandelsoft mandelsoft deleted the 91-fix-maintidx branch December 21, 2022 15:10
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.

enable linter: maintidx
2 participants