Skip to content

Commit

Permalink
_scripts: rename content linter
Browse files Browse the repository at this point in the history
This renames the script that lints some aspects of the content hierarchy
into the _scripts/content* namespace, aligning it with
_scripts/contentNewDocument.bash.

Signed-off-by: Jonathan Matthews <[email protected]>
Change-Id: Ib38338e5ea583019d9300707284d667b58134810
  • Loading branch information
jpluscplusm committed Oct 25, 2024
1 parent 6dc9ccf commit 2ff04d8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/trybot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ jobs:
- name: Early git and code sanity checks
run: go run cuelang.org/go/internal/ci/[email protected]
- name: Perform early content checks
run: _scripts/checkContent.bash
run: _scripts/contentLint.bash
- name: Check site CUE configuration
run: _scripts/runPreprocessor.bash execute --check
- name: Regenerate
Expand Down
2 changes: 1 addition & 1 deletion _scripts/checkContent.bash → _scripts/contentLint.bash
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail

# checkContent.bash asserts that specific pages under content/ and hugo/
# contentLint.bash asserts that specific pages under content/ and hugo/
# contain (or don't contain) particular content. These are checks which should
# probably live elsewhere (e.g. the preprocessor), but are placed here until
# implemented in a more principled manner.
Expand Down
2 changes: 1 addition & 1 deletion _scripts/staticcheck.bash
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -eu

# When bumping this version, don't forget to grep the repo for "staticcheck ..."
# and to sed the upgrade of the hard-coded checks that are tested for by
# _scripts/checkContent.bash.
# _scripts/contentLint.bash.
go run honnef.co/go/tools/cmd/[email protected] $(go list ./... |
grep -v github.com/cue-lang/cuelang.org/playground/internal/cuelang_org_go_internal |
grep -v github.com/cue-lang/cuelang.org/internal/parse
Expand Down
2 changes: 1 addition & 1 deletion internal/ci/github/trybot.cue
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ workflows: trybot: _repo.bashWorkflow & {

json.#step & {
name: "Perform early content checks"
run: "_scripts/checkContent.bash"
run: "_scripts/contentLint.bash"
},

// We can perform an early check that ensures page.cue files are
Expand Down

0 comments on commit 2ff04d8

Please sign in to comment.