Skip to content

Commit

Permalink
Fixing lint registration for CABF SMIME (#761)
Browse files Browse the repository at this point in the history
  • Loading branch information
christopher-henderson authored Nov 5, 2023
1 parent 1c307f4 commit f9f30bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion v3/lint/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (s *LintSource) UnmarshalJSON(data []byte) error {
}

switch LintSource(throwAway) {
case RFC5280, RFC5480, RFC5891, CABFBaselineRequirements, CABFEVGuidelines, MozillaRootStorePolicy, AppleRootStorePolicy, Community, EtsiEsi:
case RFC5280, RFC5480, RFC5891, CABFBaselineRequirements, CABFEVGuidelines, CABFSMIMEBaselineRequirements, MozillaRootStorePolicy, AppleRootStorePolicy, Community, EtsiEsi:
*s = LintSource(throwAway)
return nil
default:
Expand Down Expand Up @@ -79,6 +79,8 @@ func (s *LintSource) FromString(src string) {
*s = CABFBaselineRequirements
case CABFEVGuidelines:
*s = CABFEVGuidelines
case CABFSMIMEBaselineRequirements:
*s = CABFSMIMEBaselineRequirements
case MozillaRootStorePolicy:
*s = MozillaRootStorePolicy
case AppleRootStorePolicy:
Expand Down
1 change: 1 addition & 0 deletions v3/zlint.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
_ "github.com/zmap/zlint/v3/lints/apple"
_ "github.com/zmap/zlint/v3/lints/cabf_br"
_ "github.com/zmap/zlint/v3/lints/cabf_ev"
_ "github.com/zmap/zlint/v3/lints/cabf_smime_br"
_ "github.com/zmap/zlint/v3/lints/community"
_ "github.com/zmap/zlint/v3/lints/etsi"
_ "github.com/zmap/zlint/v3/lints/mozilla"
Expand Down

0 comments on commit f9f30bc

Please sign in to comment.