Documentation
¶
Overview ¶
Package security implements multi-layer security checks before commits. Layers: binary detection → folder blacklist → name blacklist → regex → LLM (large models only).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseModelSize ¶
ParseModelSize determines the model size category from the model name. Uses the parameter count in the name (e.g. "qwen3.5:14b" → Large).
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements ports.SecurityService.
func (*Service) CheckFiles ¶
func (s *Service) CheckFiles(files []string, diff string) *ports.SecurityCheckResult
CheckFiles runs all security layers on the given files.
func (*Service) ShouldUseLLMScan ¶
ShouldUseLLMScan returns true if the model is large enough for LLM-based scanning.
Click to show internal directories.
Click to hide internal directories.