From 1d8591cffbd9513c7302ef8187297e7463358291 Mon Sep 17 00:00:00 2001 From: toddgaunt-gs <107932811+toddgaunt-gs@users.noreply.github.com> Date: Mon, 29 May 2023 12:05:30 -0400 Subject: [PATCH] Remove references in comments to Initialize() method of lints (#718) Some comments still refer to lints having an Initialize method. This appears to no longer be the case but a warning in the comments for RegisterLint, RegisterCertificateLint, and RegisterRevocationListLint was still referencing lints having such a method. --- v3/lint/registration.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/v3/lint/registration.go b/v3/lint/registration.go index 90494837d..9e77ebf8c 100644 --- a/v3/lint/registration.go +++ b/v3/lint/registration.go @@ -458,9 +458,9 @@ var globalRegistry = NewRegistry() // RegisterLint is called from the Go init() function of a lint implementation. // // IMPORTANT: RegisterLint will panic if given a nil lint, or a lint with a nil -// Lint pointer, or if the lint's Initialize function errors, or if the lint -// name matches a previously registered lint's name. These conditions all -// indicate a bug that should be addressed by a developer. +// Lint pointer, or if the lint name matches a previously registered lint's +// name. These conditions all indicate a bug that should be addressed by a +// developer. // // @deprecated - use RegisterCertificateLint instead. func RegisterLint(l *Lint) { @@ -470,10 +470,10 @@ func RegisterLint(l *Lint) { // RegisterCertificateLint must be called once for each CertificateLint to be executed. // Normally, RegisterCertificateLint is called from the Go init() function of a lint implementation. // -// IMPORTANT: RegisterCertificateLint will panic if given a nil lint, or a lint with a nil -// Lint pointer, or if the lint's Initialize function errors, or if the lint -// name matches a previously registered lint's name. These conditions all -// indicate a bug that should be addressed by a developer. +// IMPORTANT: RegisterCertificateLint will panic if given a nil lint, or a lint +// with a nil Lint pointer, or if the lint name matches a previously registered +// lint's name. These conditions all indicate a bug that should be addressed by +// a developer. func RegisterCertificateLint(l *CertificateLint) { if err := globalRegistry.registerCertificateLint(l); err != nil { panic(fmt.Sprintf("RegisterLint error: %v\n", err.Error())) @@ -483,10 +483,10 @@ func RegisterCertificateLint(l *CertificateLint) { // RegisterRevocationListLint must be called once for each RevocationListLint to be executed. // Normally, RegisterRevocationListLint is called from the Go init() function of a lint implementation. // -// IMPORTANT: RegisterRevocationListLint will panic if given a nil lint, or a lint with a nil -// Lint pointer, or if the lint's Initialize function errors, or if the lint -// name matches a previously registered lint's name. These conditions all -// indicate a bug that should be addressed by a developer. +// IMPORTANT: RegisterRevocationListLint will panic if given a nil lint, or a +// lint with a nil Lint pointer, or if the lint name matches a previously +// registered lint's name. These conditions all indicate a bug that should be +// addressed by a developer. func RegisterRevocationListLint(l *RevocationListLint) { // RegisterLint always sets initialize to true. It's assumed this is called by // the package init() functions and therefore must be doing the first