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

chore: enable early-return, indent-error-flow and superfluous-else from revive linter #2947

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

mmorel-35
Copy link
Contributor

What does this PR do?

revive is a linter for Go. Drop-in replacement of golint.

This PR list default rules and focus on applying early-return, indent-error-flow and superfluous-else rules.

@mmorel-35 mmorel-35 requested a review from a team as a code owner January 24, 2025 10:27
@mmorel-35 mmorel-35 marked this pull request as draft January 24, 2025 10:27
Copy link

netlify bot commented Jan 24, 2025

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 81f79b7
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/6793c181ef699400087e12ae
😎 Deploy Preview https://deploy-preview-2947--testcontainers-go.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mmorel-35 mmorel-35 marked this pull request as ready for review January 24, 2025 10:28
@mmorel-35 mmorel-35 force-pushed the revive/early-return branch 2 times, most recently from fe64cdf to 7a70523 Compare January 24, 2025 16:35
…om revive linter

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
@mmorel-35 mmorel-35 force-pushed the revive/early-return branch from 7a70523 to 81f79b7 Compare January 24, 2025 16:36
Copy link
Collaborator

@stevenh stevenh left a comment

Choose a reason for hiding this comment

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

LGTM

@mdelapenya mdelapenya added the chore Changes that do not impact the existing functionality label Jan 27, 2025
Copy link
Member

@mdelapenya mdelapenya left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @mmorel-35 for bringing quality with more automation 🙇

@mdelapenya mdelapenya merged commit 4f0bcf8 into testcontainers:main Jan 27, 2025
124 checks passed
@mmorel-35 mmorel-35 deleted the revive/early-return branch January 27, 2025 08:00
mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request Feb 3, 2025
* main: (29 commits)
  deps(fix): include modulegen templates dir in dependabot updates (testcontainers#2956)
  chore(deps): bump docker/setup-docker-action from 4.0.0 to 4.1.0 (testcontainers#2959)
  feat: adds Pinecone module (testcontainers#2955)
  chore(deps): bump actions/setup-go from 5.1.0 to 5.3.0 (testcontainers#2957)
  chore(deps): bump actions/upload-artifact from 4.4.3 to 4.6.0 (testcontainers#2958)
  chore: enable unused-parameter from revive (testcontainers#2949)
  chore: enable use-any from revive (testcontainers#2948)
  bump golangci-lint to v1.63.4 (testcontainers#2950)
  chore: enable var-declaration from revive linter (testcontainers#2942)
  chore: enable context-as-argument from revive linter (testcontainers#2946)
  chore: enable early-return, indent-error-flow and superfluous-else from revive linter (testcontainers#2947)
  chore!: rename EnpointSettingsModifier to EndpointSettingsModifier
  fix(localstack): more reliable legacy tag detection (testcontainers#2936)
  chore: recover from panic in `SkipIfProviderIsNotHealthy` test helper function (testcontainers#2939)
  chore: fix typos (testcontainers#2940)
  deps(compose): bump compose (v2.32.2) and compose-go spec (v2.4.7) (testcontainers#2938)
  chore: prepare for next minor development cycle (0.36.0)
  chore: use new version (v0.35.0) in modules and examples
  feat(postgres): ssl for postgres (testcontainers#2473)
  feat(ollama): support calling the Ollama local process (testcontainers#2923)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Changes that do not impact the existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants