func()

in rules/module_source.go [101:112]


func (t *ModuleSourceRule) isAVMModule(r tflint.Runner, issueRange hcl.Range) func(string) error {
	return func(source string) error {
		if (strings.HasPrefix(source, "Azure/") && strings.Contains(source, "avm-")) || strings.HasPrefix(source, "./modules/") {
			return nil
		}
		return r.EmitIssue(
			t,
			"The `source` property constraint should start with `Azure/` and contain `avm-` to only involve AVM Module",
			issueRange,
		)
	}
}