utils

package
v0.0.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLineNumbers

func AddLineNumbers(code string) string

AddLineNumbers prefixes each line of code with its line number for accurate LLM line identification

func DecodeFromBase64

func DecodeFromBase64(s string) (string, error)

func InferLanguagesFromGlobs

func InferLanguagesFromGlobs(globs []string) []model.Language

InferLanguagesFromGlobs returns the set of languages whose extensions are referenced by any of the provided glob patterns. Globs that don't pin a specific language extension (e.g. "**/*") return an empty slice — callers treat those rules as universal/all-language.

func LoadDatadogDriverConfig

func LoadDatadogDriverConfig(path string) (model.DatadogDriverConfig, error)

LoadDatadogDriverConfig loads the Datadog driver configuration from a JSON file in the repository

func RuleMatchesFile

func RuleMatchesFile(rule *api.AiPrompt, relPath string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL