template 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * ZLint Copyright 2023 Regents of the University of Michigan
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  5. * use this file except in compliance with the License. You may obtain a copy
  6. * of the License at http://www.apache.org/licenses/LICENSE-2.0
  7. *
  8. * Unless required by applicable law or agreed to in writing, software
  9. * distributed under the License is distributed on an "AS IS" BASIS,
  10. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
  11. * implied. See the License for the specific language governing
  12. * permissions and limitations under the License.
  13. */
  14. package PACKAGE
  15. import (
  16. "github.com/zmap/zcrypto/x509"
  17. "github.com/zmap/zlint/v3/lint"
  18. )
  19. func init() {
  20. lint.RegisterLint(&lint.Lint{
  21. Name: "SUBTEST",
  22. Description: "Fill this in...",
  23. Citation: "Fill this in...",
  24. Source: UnknownLintSource,
  25. EffectiveDate: "Change this...",
  26. Lint: func() lint.LintInterface { return &SUBST{} },
  27. })
  28. }
  29. type SUBST struct{}
  30. func NewPASCAL_CASE_SUBST() lint.LintInterface {
  31. return &SUBST{}
  32. }
  33. func (l *SUBST) CheckApplies(c *x509.Certificate) bool {
  34. // Add conditions for application here
  35. }
  36. func (l *SUBST) Execute(c *x509.Certificate) *lint.LintResult {
  37. // Add actual lint here
  38. }