terraform-provider-iterative icon indicating copy to clipboard operation
terraform-provider-iterative copied to clipboard

Linters?

Open dacbd opened this issue 2 years ago • 9 comments

aka Restyled's PR spam triggers me...

thoughts on adding github/super-linter/slim as a check for PRs and removing Restyled.

I will note that, that the linter has a bit on a laundry list... see here

dacbd avatar Jun 24 '22 16:06 dacbd

Note that we already have golangci-lint in place for the task directory. The iterative directory has been explicitly excluded because it has, effectively, a laundry list of issues.

Ma quel foglio che chiedete per azzardo m'è cascato. È la lista del bucato.

0x2b3bfa0 avatar Jun 24 '22 16:06 0x2b3bfa0

https://github.com/iterative/terraform-provider-iterative/blob/5194dc5f68c4fa07cb2d0f7304bee58f0208f5f5/.golangci.yml#L3-L4

0x2b3bfa0 avatar Jun 24 '22 16:06 0x2b3bfa0

I missed that 🙈, does it work with deltas natively? Perhaps it's time to include it and as future tweaks come in part of the PRs will be cleanup.

dacbd avatar Jun 24 '22 17:06 dacbd

does it work with deltas natively?

If you mean --new-from-rev yes.

0x2b3bfa0 avatar Jun 24 '22 19:06 0x2b3bfa0

Moved to https://github.com/iterative/terraform-provider-iterative/pull/616

0x2b3bfa0 avatar Jun 24 '22 19:06 0x2b3bfa0

Not sure if we need super-linter for a single language, but it's indeed a nice project. Let's ask @iterative/cml for opinions; we'll surely get plenty. 😄

0x2b3bfa0 avatar Jun 24 '22 19:06 0x2b3bfa0

it also dectects various bits of shell scripting, GitHub actions, and others etc

dacbd avatar Jun 27 '22 23:06 dacbd

Sounds good. Let's lint, then. 🐑

0x2b3bfa0 avatar Jun 28 '22 08:06 0x2b3bfa0

Note that running super-linter locally doesn't feel quite ergonomic. I hope we won't need to run a Docker container with a commit hook. 😈

0x2b3bfa0 avatar Jun 28 '22 16:06 0x2b3bfa0