<commit_before>package rules

import (
	"github.com/golang/protobuf/v2/reflect/protoreflect"
	"github.com/jgeewax/api-linter/lint"
)

func init() {
	registerRuleWithDescCheckFunc(
		ruleInfo{
			Name:        "check_naming_formats.field",
			Description: "check that field names use lower snake case",
			URL:         `https://g3doc.corp.google.com/google/api/tools/linter/g3doc/rules/naming-format.md?cl=head`,
			Category:    lint.CategorySuggestion,
		},
		func(d protoreflect.Descriptor, s lint.DescriptorSource) ([]lint.Problem, error) {
			if _, ok := d.(protoreflect.FieldDescriptor); ok {
				return checkNameFormat(d), nil
			}
			return []lint.Problem{}, nil
		},
	)
}<commit_msg>Returning nil, nil for rule<commit_after>package rules

import (
	"github.com/golang/protobuf/v2/reflect/protoreflect"
	"github.com/jgeewax/api-linter/lint"
)

func init() {
	registerRuleWithDescCheckFunc(
		ruleInfo{
			Name:        "check_naming_formats.field",
			Description: "check that field names use lower snake case",
			URL:         `https://g3doc.corp.google.com/google/api/tools/linter/g3doc/rules/naming-format.md?cl=head`,
			Category:    lint.CategorySuggestion,
		},
		func(d protoreflect.Descriptor, s lint.DescriptorSource) ([]lint.Problem, error) {
			if _, ok := d.(protoreflect.FieldDescriptor); ok {
				return checkNameFormat(d), nil
			}
			return nil, nil
		},
	)
}
{'fraction_non_alphanumeric': 0.1348803480783176, 'fraction_numerical': 0.00435097897026831, 'mean_word_length': 3.825174825174825, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6194533', 'n_tokens_mistral': 539, 'n_tokens_neox': 482, 'n_words': 84}