common

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAstQueryID

func GetAstQueryID(language, name, group string) (string, error)

GetAstQueryID returns the query ID for AST

func LoadRename added in v1.9.0

func LoadRename() error

Overwritten queries that have been renamed between sast versions need to have the original AST ID And AST ID is calculated by hashing the path of the query, this means we need to store the old AST ID for the new path

Types

type RenameEntry added in v1.9.0

type RenameEntry struct {
	OldPath      string `json:"oldPath"`
	NewPath      string `json:"newPath"`
	OldPathAstID uint64 `json:"oldPathAstID"`
	NewPathAstID uint64 `json:"newPathAstID"`
}

Jump to

Keyboard shortcuts

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