Skip to content

Commit ff45c08

Browse files
chore: add docs to lint target, ensure they pass (#79)
### what - add `lint-docs` to the `lint` target - move workaround for making them pass linting ### why getting `lint-docs` to pass with generated docs ### testing n/a ### docs n/a
1 parent 4242aee commit ff45c08

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ jobs:
8787

8888
- name: Lint
8989
run: |
90-
# XXX workaround for https://github.com/hashicorp/terraform-plugin-docs/issues/445
91-
sed -i '/^subcategory:/d' docs/index.md
9290
just lint-docs
9391
9492
lint-copyright:

docs/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
# generated by https://github.com/hashicorp/terraform-plugin-docs
33
page_title: "stacklet Provider"
4-
subcategory: ""
54
description: |-
65
This provider interacts with Stacklet's cloud governance platform.
76
It allows managing resources like accounts, account groups, policy collections, bindings and so on.

justfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ format-go:
1616
go fmt ./...
1717

1818
# Run linters
19-
lint: lint-go lint-tf lint-copyright
19+
lint: lint-go lint-tf lint-docs lint-copyright
2020

2121
# Run linters for terraform
2222
lint-tf:
@@ -28,11 +28,11 @@ lint-go:
2828
go vet {{ package }}
2929
golangci-lint run --fix
3030

31-
# Run checker for generated docs
31+
# Run linter for generated docs
3232
lint-docs:
3333
env -C tools go generate -run=validate-docs
3434

35-
# Run checker for copyright headers
35+
# Run linter for copyright headers
3636
lint-copyright:
3737
env -C tools go generate -run=validate-copyright
3838

@@ -51,12 +51,14 @@ test-record testname:
5151
# Generate provider documentation
5252
docs:
5353
env -C tools go generate -run=generate-docs
54+
# XXX workaround for https://github.com/hashicorp/terraform-plugin-docs/issues/445
55+
sed -i '/^subcategory:/d' docs/index.md
5456

5557
# Add copyright headers
5658
copyright:
5759
env -C tools go generate -run=generate-copyright
5860

59-
# Update go dependencies
61+
# Update golang dependencies
6062
update-deps-go:
6163
go get -u ./...
6264
go mod tidy

0 commit comments

Comments
 (0)