sast_contract

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 0 Imported by: 2 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalCodeEngine

type LocalCodeEngine struct {
	AllowCloudUpload bool   `json:"allowCloudUpload"`
	Url              string `json:"url"`
	Enabled          bool   `json:"enabled"`
}

type SastResponse

type SastResponse struct {
	SastEnabled                 bool            `json:"sastEnabled"`
	LocalCodeEngine             LocalCodeEngine `json:"localCodeEngine"`
	Org                         string          `json:"org"`
	SupportedLanguages          []string        `json:"supportedLanguages"`
	ReportFalsePositivesEnabled bool            `json:"reportFalsePositivesEnabled"`
	AutofixEnabled              bool            `json:"autofixEnabled"`
	// DotSnykFileExcludesEnabled controls whether file exclusions from .snyk and .dcignore files apply.
	// It is a pointer so that an absent JSON field and existing struct literals keep the
	// default behavior. Read it with IsDotSnykFileExcludesEnabled.
	DotSnykFileExcludesEnabled *bool `json:"dotSnykFileExcludesEnabled,omitempty"`
}

func (*SastResponse) IsDotSnykFileExcludesEnabled added in v1.32.0

func (s *SastResponse) IsDotSnykFileExcludesEnabled() bool

IsDotSnykFileExcludesEnabled reports whether .snyk and .dcignore file exclusions apply. It defaults to true when the setting is nil or absent for backward compatibility.

Jump to

Keyboard shortcuts

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