Skip to content

Commit

Permalink
[ASCII-2155] add custom go linter to check usage of pkgconfig inside …
Browse files Browse the repository at this point in the history
…component folder (#28382)

Co-authored-by: FlorentClarret <florent.clarret@datadoghq.com>
  • Loading branch information
GustavoCaso and FlorentClarret authored Aug 19, 2024
1 parent e700016 commit 125a292
Show file tree
Hide file tree
Showing 69 changed files with 873 additions and 123 deletions.
7 changes: 7 additions & 0 deletions .custom-gcl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: v1.59.1

name: golangci-lint

plugins:
- module: 'github.com/DataDog/datadog-agent/pkg/linters/components/pkgconfigusage'
path: ./pkg/linters/components/pkgconfigusage
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
/.go-version @DataDog/agent-shared-components @DataDog/agent-delivery
# Go linters and pre-commit config
/.golangci.yml @DataDog/agent-devx-loops
/.custom-gcl.yml @DataDog/agent-devx-loops
/.pre-commit-config.yaml @DataDog/agent-devx-loops

/CHANGELOG.rst @DataDog/agent-delivery
Expand Down Expand Up @@ -426,6 +427,8 @@
/pkg/util/testutil/flake @DataDog/agent-devx-loops
/pkg/util/trie @DataDog/container-integrations
/pkg/languagedetection @DataDog/processes @DataDog/universal-service-monitoring
/pkg/linters/ @DataDog/agent-devx-loops
/pkg/linters/components/ @DataDog/agent-shared-components
/pkg/logs/ @DataDog/agent-metrics-logs
/pkg/logs/launchers/windowsevent @DataDog/agent-metrics-logs @DataDog/windows-agent
/pkg/logs/tailers/windowsevent @DataDog/agent-metrics-logs @DataDog/windows-agent
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:

- name: Build DataDog agent
run: |
invoke install-tools
invoke install-tools --no-custom-golangci-lint
invoke deps
invoke agent.build --build-exclude=systemd
Expand Down
Loading

0 comments on commit 125a292

Please sign in to comment.