Skip to content

Commit

Permalink
Update pkg/helm/chart_info.go
Browse files Browse the repository at this point in the history
Co-authored-by: Henrique Nepo <me@henriquenepomuceno.com>
  • Loading branch information
edmondop and Nepo26 authored Jul 25, 2023
1 parent 5a87421 commit a7ae1b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/helm/chart_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ func parseChartValuesFile(chartDirectory string) (yaml.Node, error) {
}

func checkDocumentation(rootNode *yaml.Node, comments map[string]ChartValueDescription, config ChartValuesDocumentationParsingConfig) error {
if len(rootNode.Content) == 0 {
return nil
}
valuesWithoutDocs := collectValuesWithoutDoc(rootNode.Content[0], comments, make([]string, 0))
valuesWithoutDocsAfterIgnore := make([]string, 0)
for _, valueWithoutDoc := range valuesWithoutDocs {
Expand Down

0 comments on commit a7ae1b3

Please sign in to comment.