feat: JS and Go static Analysis Integrated #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR: Static Analysis Workflows for Go and JavaScript
🧩 Overview
This PR implements comprehensive and robust static analysis workflows for both Go and JavaScript codebases.
It ensures code quality, consistency, and early detection of issues by leveraging industry-standard tools and best practices.
The workflows are designed to be resilient, efficient, and developer-friendly.
Key Features & Improvements
golangci-lint
,reviewdog
go.mod
exists- Runs
go mod tidy
- Caches modules
- PR inline review
- Summarizes results
- Uploads artifacts
- Uses strict linter config
ESLint
,reviewdog
- Handles
package-lock.json
for caching- PR inline review
- Summarizes results
- Uses strict ESLint config
📌 Example Reviewed PRs
✅ Robustness Details
🔹 Go Workflow
go.mod
and initializes if missing.go mod tidy
every time to keep dependencies clean.actions/cache
for Go build cache andgo.sum
for faster builds..golangci.yml
with multiple linters enabled.🔹 JavaScript Workflow
package.json
files (supports monorepos).npm ci
ifpackage-lock.json
exists, elsenpm install
.Parameters I had while developing this feature
🔒 Security & Permissions
contents: write
,pull-requests: write
contents: read
,pull-requests: write
🛠️ Workflow Diagrams
🔧 Go Static Analysis Workflow
🔧 JS Static Analysis Workflow