File tree 2 files changed +1
-28
lines changed
2 files changed +1
-28
lines changed Original file line number Diff line number Diff line change 65
65
# Static analysis
66
66
.PHONY : verify
67
67
verify : verify-gofmt verify-bom verify-lint verify-dep verify-shellcheck verify-goword \
68
- verify-govet verify-license-header verify-receiver-name verify- mod-tidy \
68
+ verify-govet verify-license-header verify-mod-tidy \
69
69
verify-shellws verify-proto-annotations verify-genproto verify-yamllint \
70
70
verify-govet-shadow verify-markdown-marker verify-go-versions
71
71
@@ -113,10 +113,6 @@ verify-govet:
113
113
verify-license-header :
114
114
PASSES=" license_header" ./scripts/test.sh
115
115
116
- .PHONY : verify-receiver-name
117
- verify-receiver-name :
118
- PASSES=" receiver_name" ./scripts/test.sh
119
-
120
116
.PHONY : verify-mod-tidy
121
117
verify-mod-tidy :
122
118
PASSES=" mod_tidy" ./scripts/test.sh
Original file line number Diff line number Diff line change @@ -433,29 +433,6 @@ function license_header_pass {
433
433
run_for_modules generic_checker license_header_per_module
434
434
}
435
435
436
- function receiver_name_for_package {
437
- # bash 3.x compatible replacement of: mapfile -t gofiles < <(go_srcs_in_module)
438
- local gofiles=()
439
- while IFS= read -r line; do gofiles+=(" $line " ); done < <( go_srcs_in_module)
440
-
441
- recvs=$( grep ' func ([^*]' " ${gofiles[@]} " | tr ' :' ' ' | \
442
- awk ' { print $2" "$3" "$4" "$1 }' | sed " s/[a-zA-Z\\ .]*go//g" | sort | uniq | \
443
- grep -Ev " (Descriptor|Proto|_)" | awk ' { print $3" "$4 } ' | sort | uniq -c | grep -v ' 1 ' | awk ' { print $2 } ' )
444
- if [ -n " ${recvs} " ]; then
445
- # shellcheck disable=SC2206
446
- recvs=($recvs )
447
- for recv in " ${recvs[@]} " ; do
448
- log_error " Mismatched receiver for $recv ..."
449
- grep " $recv " " ${gofiles[@]} " | grep ' func ('
450
- done
451
- return 255
452
- fi
453
- }
454
-
455
- function receiver_name_pass {
456
- run_for_modules receiver_name_for_package
457
- }
458
-
459
436
# goword_for_package package
460
437
# checks spelling and comments in the 'package' in the current module
461
438
#
You can’t perform that action at this time.
0 commit comments