Documentation
¶
Index ¶
Constants ¶
View Source
const PreferShellInstructionRuleCode = rules.TallyRulePrefix + "powershell/prefer-shell-instruction"
PreferShellInstructionRuleCode is the full rule code for prefer-shell-instruction.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PreferShellInstructionRule ¶
type PreferShellInstructionRule struct{}
PreferShellInstructionRule recommends using SHELL for repeated PowerShell RUN wrappers.
func NewPreferShellInstructionRule ¶
func NewPreferShellInstructionRule() *PreferShellInstructionRule
NewPreferShellInstructionRule creates a new rule instance.
func (*PreferShellInstructionRule) Check ¶
func (r *PreferShellInstructionRule) Check(input rules.LintInput) []rules.Violation
Check runs the rule.
func (*PreferShellInstructionRule) Metadata ¶
func (r *PreferShellInstructionRule) Metadata() rules.RuleMetadata
Metadata returns the rule metadata.
Click to show internal directories.
Click to hide internal directories.