Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

proposal: add more linters and fix existing issues

Aperta
#1,583 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
go

Direzione di ricerca

Inizia individuando la configurazione della pipeline di linting del repository ed esegui i controlli esistenti per comprendere la configurazione attuale. Aggiungi gocognit, gosec, staticcheck ed errcheck, estendi gosec oltre G201 e G202, quindi risolvi i problemi segnalati dai controlli abilitati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

Summary

Add the following linters to improve code quality, security, and maintainability:

  • gocognit
  • gosec
  • staticcheck
  • errcheck

Currently, gosec is only using rules G201 and G202. Existing issues from other relevant rules also need to be identified and fixed.

Why this is useful

Adding these linters will help catch issues earlier in development and reduce the chances of bugs or security problems reaching production.

gocognit
  • Detects functions with high cognitive complexity
  • Helps keep code easier to read, review, test, and maintain
  • Encourages simpler control flow and clearer logic
gosec
  • Detects insecure coding patterns
  • Helps identify issues beyond G201 and G202
  • Improves security by catching risky patterns early in CI and local development
staticcheck
  • Finds correctness, performance, and code quality issues
  • Detects ineffective assignments, broken assumptions, deprecated usage, and other subtle problems
  • Improves overall reliability of the codebase
errcheck
  • Ensures returned errors are not ignored
  • Helps prevent silent failures and inconsistent behavior
  • Encourages explicit and reliable error handling

Expected benefits

  • Catch bugs earlier in CI
  • Improve security posture
  • Make the codebase easier to maintain and refactor
  • Standardize code quality checks across the repository

Scope

  • Add the new linters to the linting pipeline
  • Expand gosec coverage beyond G201 and G202
  • Fix the issues reported by the newly enabled checks

Notes

These linters will help make the code more secure and less complex to read.

Lingua principale
Go
Stelle
344
Fork
47
Merge medio
2g 19h
PR unite (30g)
32

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di raystack/frontier

Tutte le issue di raystack/frontier

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.