github.com/zmap/zlint@v1.1.0/template (about) 1 /* 2 * ZLint Copyright 2019 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 15 package lints 16 17 import ( 18 "github.com/zmap/zcrypto/x509" 19 ) 20 21 type SUBST struct{} 22 23 func (l *SUBST) Initialize() error { 24 return nil 25 } 26 27 func (l *SUBST) CheckApplies(c *x509.Certificate) bool { 28 // Add conditions for application here 29 } 30 31 func (l *SUBST) Execute(c *x509.Certificate) *LintResult { 32 // Add actual lint here 33 } 34 35 func init() { 36 RegisterLint(&Lint{ 37 Name: "SUBTEST", 38 Description: "Fill this in...", 39 Citation: "Fill this in...", 40 Source: UnknownLintSource, 41 EffectiveDate: "Change this...", 42 Lint: &SUBST{}, 43 }) 44 }