rules

package
v1.3.4-beta5 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RiskTypeFuncs = []string{"risk.type", "risk.typeVerbose"}

Functions

func CheckDefineFunctionCodec

func CheckDefineFunctionCodec(prog *ssaapi.Program) *result.StaticAnalyzeResults

func CheckDefineFunctionMitm

func CheckDefineFunctionMitm(prog *ssaapi.Program) *result.StaticAnalyzeResults

func CheckDefineFunctionPortScan

func CheckDefineFunctionPortScan(prog *ssaapi.Program) *result.StaticAnalyzeResults

func Deprecated

func Deprecated(prog *ssaapi.Program) *result.StaticAnalyzeResults

func DisableCli

func DisableCli(prog *ssaapi.Program) *result.StaticAnalyzeResults

func DisableMitmExternLib

func DisableMitmExternLib(prog *ssaapi.Program) *result.StaticAnalyzeResults

func DuplicateFunction

func DuplicateFunction(name string) string

func ErrorDisableCLi

func ErrorDisableCLi() string

func ErrorRiskCheck

func ErrorRiskCheck() string

func ErrorRiskCreateNotSave

func ErrorRiskCreateNotSave() string

func ErrorStrInvalidParamName

func ErrorStrInvalidParamName(name string) string

func ErrorStrNotCallCliCheck

func ErrorStrNotCallCliCheck() string

func ErrorStrSameParamName

func ErrorStrSameParamName(name string, line int) string

func LeastImplementOneFunctions

func LeastImplementOneFunctions(name []string) string

func MITMNotSupport

func MITMNotSupport(pkg string) string

func NoImplementFunction

func NoImplementFunction(name string) string

func RuleCliCheck

func RuleCliCheck(prog *ssaapi.Program) *result.StaticAnalyzeResults

检查是否在最后面调用了 cli.check

func RuleCliDefault

func RuleCliDefault(prog *ssaapi.Program) *result.StaticAnalyzeResults

检查 cli.setDefault 设置的默认值是否符合规范

func RuleCliParamName

func RuleCliParamName(prog *ssaapi.Program) *result.StaticAnalyzeResults

检查参数名是否重复和参数名是否符合规范

func RuleRisk

func RuleRisk(prog *ssaapi.Program) *result.StaticAnalyzeResults

检查 risk 是否符合规范

func RuleRiskTypeVerbose

func RuleRiskTypeVerbose(prog *ssaapi.Program) *result.StaticAnalyzeResults

检查 risk.type 是否符合规范

func WarnInvalidRiskTypeVerbose

func WarnInvalidRiskTypeVerbose() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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