Skip to content

chore: automatic built-in Go checker discovery#174

Merged
sourya-deepsource merged 9 commits intoDeepSourceCorp:masterfrom
MashyBasker:auto-go-checker-discovery
Mar 26, 2025
Merged

chore: automatic built-in Go checker discovery#174
sourya-deepsource merged 9 commits intoDeepSourceCorp:masterfrom
MashyBasker:auto-go-checker-discovery

Conversation

@MashyBasker
Copy link
Contributor

@MashyBasker MashyBasker commented Mar 23, 2025

Purpose

This PR adds a feature to automatically discover built-in Go checkers.

Change Description

  • Adds a new function GenerateBuiltinCheckerRegistry that generates a checkers/register.go field containing the AnalyzerRegistry slice. This file is generated every time builtin checkers are run to update the slice containing the checker names.
  • The built-in Go checkers are discovered using the DiscoverGoChecker function

Tests

  • Unit tests added

Ref: #158

Signed-off-by: Maharshi Basu <basumaharshi10@gmail.com>
Signed-off-by: Maharshi Basu <basumaharshi10@gmail.com>
Signed-off-by: Maharshi Basu <basumaharshi10@gmail.com>
@vercel
Copy link

vercel bot commented Mar 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
globstar ⬜️ Ignored (Inspect) Visit Preview Mar 26, 2025 4:40pm

Signed-off-by: Maharshi Basu <basumaharshi10@gmail.com>
Signed-off-by: Maharshi Basu <basumaharshi10@gmail.com>
Signed-off-by: Maharshi Basu <basumaharshi10@gmail.com>
Signed-off-by: Maharshi Basu <basumaharshi10@gmail.com>
Signed-off-by: Maharshi Basu <basumaharshi10@gmail.com>
Signed-off-by: Sourya Vatsyayan <sourya@deepsource.io>
@sourya-deepsource sourya-deepsource merged commit 17d8c32 into DeepSourceCorp:master Mar 26, 2025
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants