Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigAnalyzer ¶
type ConfigAnalyzer struct {
// contains filtered or unexported fields
}
func NewConfigAnalyzer ¶
func NewConfigAnalyzer(filePattern *regexp.Regexp) ConfigAnalyzer
func (ConfigAnalyzer) Analyze ¶
func (a ConfigAnalyzer) Analyze(_ context.Context, target analyzer.AnalysisTarget) (*analyzer.AnalysisResult, error)
Analyze analyzes HCL-based config files, defaulting to HCL2.0 spec it returns error only if content does not comply to both HCL2.0 and HCL1.0 spec
func (ConfigAnalyzer) Required ¶
func (a ConfigAnalyzer) Required(filePath string, _ os.FileInfo) bool
func (ConfigAnalyzer) Type ¶
func (ConfigAnalyzer) Type() analyzer.Type
func (ConfigAnalyzer) Version ¶
func (ConfigAnalyzer) Version() int
Click to show internal directories.
Click to hide internal directories.