enable templates for template listing and displaying (#6343)

This commit is contained in:
Dogan Can Bakir 2025-08-16 13:20:22 -07:00 committed by GitHub
parent e1f8a18d38
commit 44eeb5a60b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -125,6 +125,14 @@ func New(options *types.Options) (*Runner, error) {
} }
} }
// if template list or template display is enabled, enable all templates
if options.TemplateList || options.TemplateDisplay {
options.EnableCodeTemplates = true
options.EnableFileTemplates = true
options.EnableSelfContainedTemplates = true
options.EnableGlobalMatchersTemplates = true
}
// check for custom template updates and update if available // check for custom template updates and update if available
ctm, err := customtemplates.NewCustomTemplatesManager(options) ctm, err := customtemplates.NewCustomTemplatesManager(options)
if err != nil { if err != nil {