language

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedLanguages = []string{
	"cpp", "csharp", "go", "java", "javascript", "python", "ruby",
}

SupportedLanguages lists all CodeQL-supported languages.

Functions

func IsSupported added in v0.0.3

func IsSupported(lang string) bool

IsSupported reports whether lang matches one of SupportedLanguages (case-insensitive).

func ToDirectory

func ToDirectory(lang string) string

ToDirectory maps a language option string to its CodeQL directory name.

func ToExtension

func ToExtension(lang string) string

ToExtension maps a language to its source file extension.

func ToImport

func ToImport(lang string) string

ToImport maps a language to its CodeQL import name.

func ToSafeTestName

func ToSafeTestName(lang, name string) string

ToSafeTestName replaces hyphens with underscores in a test name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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