Skip to content

chore: support linting all modules locally#1609

Merged
mdelapenya merged 2 commits intotestcontainers:mainfrom
mdelapenya:lint-modules-support
Sep 12, 2023
Merged

chore: support linting all modules locally#1609
mdelapenya merged 2 commits intotestcontainers:mainfrom
mdelapenya:lint-modules-support

Conversation

@mdelapenya
Copy link
Copy Markdown
Member

  • chore: support running golangci-lint for all modules
  • fix: typo in error message

What does this PR do?

It adds a Make goal to run the golangci-lint tool for all modules, with a single command.

Why is it important?

Support for running and fixing the lint stage locally before submitting a PR.

How to test this PR

Run make -C modules lint-modules or make -C examples lint-examples or cd modulegen; make lint

@mdelapenya mdelapenya requested a review from a team as a code owner September 12, 2023 01:13
@mdelapenya mdelapenya added the chore Changes that do not impact the existing functionality label Sep 12, 2023
@mdelapenya mdelapenya self-assigned this Sep 12, 2023
@netlify
Copy link
Copy Markdown

netlify bot commented Sep 12, 2023

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 38f23b8
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/64ffbb56b40a230008055c0f
😎 Deploy Preview https://deploy-preview-1609--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.

@mdelapenya mdelapenya merged commit fec0b4d into testcontainers:main Sep 12, 2023
@mdelapenya mdelapenya deleted the lint-modules-support branch September 12, 2023 02:43
mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request Sep 12, 2023
* main:
  chore: always generate the examples including a explicit image (testcontainers#1611)
  chore: support linting all modules locally (testcontainers#1609)
mdelapenya added a commit that referenced this pull request Sep 12, 2023
…containerd-1.7.5

* main:
  chore: always generate the examples including a explicit image (#1611)
  chore: support linting all modules locally (#1609)
  ci(sonarcloud): run only when not root-less (#1608)
  remove extra equal in sonar.organization (#1607)
  chore(ci): enable code coverage on Sonarcloud (#1518)
  docs: use Go testable examples in modules (#1603)
mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request Sep 12, 2023
* main:
  chore: always generate the examples including a explicit image (testcontainers#1611)
  chore: support linting all modules locally (testcontainers#1609)
  ci(sonarcloud): run only when not root-less (testcontainers#1608)
  remove extra equal in sonar.organization (testcontainers#1607)
  chore(ci): enable code coverage on Sonarcloud (testcontainers#1518)
  docs: use Go testable examples in modules (testcontainers#1603)
  ci(lint): enable errorlint linter (testcontainers#1604)
  ci(lint): enable gocritic linter (testcontainers#1605)
  chore(deps): bump github.com/hashicorp/vault-client-go in /modules/vault (testcontainers#1566)
  ci(security): setup codeql scan  (testcontainers#1606)
  chore(deps): bump github.com/cyphar/filepath-securejoin (testcontainers#1601)
  chore: generate Go examples for new modules (testcontainers#1600)
  chore: generate Go examples for new modules (testcontainers#1600)
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.

1 participant