From 4d4f5dc93460966040487ceb76d339026383bfa0 Mon Sep 17 00:00:00 2001 From: ashmrtn <3891298+ashmrtn@users.noreply.github.com> Date: Wed, 12 Jul 2023 09:52:50 -0700 Subject: [PATCH] Add linter for struct tags (#3791) Ensures some formatting for tags and also checks that tag keys match the given set --- #### Does this PR need a docs update or release note? - [ ] :white_check_mark: Yes, it's included - [ ] :clock1: Yes, but in a later PR - [x] :no_entry: No #### Type of change - [ ] :sunflower: Feature - [ ] :bug: Bugfix - [ ] :world_map: Documentation - [x] :robot: Supportability/Tests - [x] :computer: CI/Deployment - [ ] :broom: Tech Debt/Cleanup #### Issue(s) * #3654 #### Test Plan - [x] :muscle: Manual - [ ] :zap: Unit test - [ ] :green_heart: E2E --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d128b208..4ecda98fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -409,6 +409,11 @@ jobs: install-go: false working-directory: src + - name: Run allowtags + run: | + go install github.com/ashmrtn/allowtags@latest + allowtags --allow-key json --allow-key uriparametername ./... + # ---------------------------------------------------------------------------------------------------- # --- GitHub Actions Linting -------------------------------------------------------------------------