Documentation
¶
Index ¶
Constants ¶
const ComposerNoDevInProductionRuleCode = rules.TallyRulePrefix + "php/composer-no-dev-in-production"
ComposerNoDevInProductionRuleCode is the full rule code.
const EnableOpcacheInProductionRuleCode = rules.TallyRulePrefix + "php/enable-opcache-in-production"
EnableOpcacheInProductionRuleCode is the full rule code.
const NoXdebugInFinalImageRuleCode = rules.TallyRulePrefix + "php/no-xdebug-in-final-image"
NoXdebugInFinalImageRuleCode is the full rule code.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComposerNoDevInProductionRule ¶
type ComposerNoDevInProductionRule struct{}
ComposerNoDevInProductionRule requires --no-dev for production-like composer installs.
func NewComposerNoDevInProductionRule ¶
func NewComposerNoDevInProductionRule() *ComposerNoDevInProductionRule
NewComposerNoDevInProductionRule creates the rule.
func (*ComposerNoDevInProductionRule) Check ¶
func (r *ComposerNoDevInProductionRule) Check(input rules.LintInput) []rules.Violation
Check runs the rule.
func (*ComposerNoDevInProductionRule) Metadata ¶
func (r *ComposerNoDevInProductionRule) Metadata() rules.RuleMetadata
Metadata returns the rule metadata.
type EnableOpcacheInProductionRule ¶ added in v0.36.0
type EnableOpcacheInProductionRule struct{}
EnableOpcacheInProductionRule flags production PHP web runtime images that do not enable OPcache.
func NewEnableOpcacheInProductionRule ¶ added in v0.36.0
func NewEnableOpcacheInProductionRule() *EnableOpcacheInProductionRule
NewEnableOpcacheInProductionRule creates the rule.
func (*EnableOpcacheInProductionRule) Check ¶ added in v0.36.0
func (r *EnableOpcacheInProductionRule) Check(input rules.LintInput) []rules.Violation
Check runs the rule.
func (*EnableOpcacheInProductionRule) Metadata ¶ added in v0.36.0
func (r *EnableOpcacheInProductionRule) Metadata() rules.RuleMetadata
Metadata returns the rule metadata.
type NoXdebugInFinalImageRule ¶ added in v0.33.0
type NoXdebugInFinalImageRule struct{}
NoXdebugInFinalImageRule flags Xdebug installations in the final image stage.
func NewNoXdebugInFinalImageRule ¶ added in v0.33.0
func NewNoXdebugInFinalImageRule() *NoXdebugInFinalImageRule
NewNoXdebugInFinalImageRule creates the rule.
func (*NoXdebugInFinalImageRule) Check ¶ added in v0.33.0
func (r *NoXdebugInFinalImageRule) Check(input rules.LintInput) []rules.Violation
Check runs the rule.
func (*NoXdebugInFinalImageRule) Metadata ¶ added in v0.33.0
func (r *NoXdebugInFinalImageRule) Metadata() rules.RuleMetadata
Metadata returns the rule metadata.