Skip to content

[MAINT] Create custom golangci-lint to integrate tfproviderlint#3254

Draft
deiga wants to merge 22 commits intointegrations:mainfrom
F-Secure-web:use-custom-golangci-lint-for-tfproviderlint
Draft

[MAINT] Create custom golangci-lint to integrate tfproviderlint#3254
deiga wants to merge 22 commits intointegrations:mainfrom
F-Secure-web:use-custom-golangci-lint-for-tfproviderlint

Conversation

@deiga
Copy link
Collaborator

@deiga deiga commented Mar 4, 2026

Note

This PR is stacked on top of #3244
Review from 8fb5e91 onwards


Before the change?

  • Not able to use tfproviderlint as part of golangci-lint

After the change?

  • Capable to use tfproviderlint as part of golangci-lint
  • Capable of adding new checks for the terraform provider schema
    • Example: tools/tfproviderlint/checks/L001/L001.go
  • Enable all tfproviderlint checks, which seem sensible and don't require fixes right now
  • Add make lint-new to run stricter linters on only code since main
  • Refactor ´ci.yamlworkflow, to run linters in parallel usinggolangci-lint-action`
    • This enables inline linter complaints in PRs

Pull request checklist

  • Schema migrations have been created if needed (example)
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

deiga added 7 commits March 1, 2026 09:28
We don't use it and that version is deprecated

Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Since `make build` calls `make lintcheck`

Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
@github-actions
Copy link

github-actions bot commented Mar 4, 2026

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

deiga added 10 commits March 4, 2026 23:47
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
To enable adding `tfproviderlint` as a plugin

Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
@deiga deiga force-pushed the use-custom-golangci-lint-for-tfproviderlint branch from cec47f0 to 7f284d2 Compare March 4, 2026 22:21
deiga added 5 commits March 8, 2026 18:18
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.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.

1 participant