| 1 | package sarifscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ |
| 2 | |
| 3 | // ReportingConfiguration ... |
| 4 | type ReportingConfigurationscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingConfiguration# struct { |
| 5 | Enabledscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingConfiguration#Enabled. bool `json:"enabled,omitempty"` |
| 6 | Levelscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingConfiguration#Level. interface{} `json:"level,omitempty"` |
| 7 | Parametersscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingConfiguration#Parameters. *PropertyBagscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/PropertyBag# `json:"parameters,omitempty"` |
| 8 | Propertiesscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingConfiguration#Properties. *PropertyBagscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/PropertyBag# `json:"properties,omitempty"` |
| 9 | Rankscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingConfiguration#Rank. float64 `json:"rank,omitempty"` |
| 10 | } |
| 11 | |
| 12 | // ReportingDescriptor specifies a Sarif ReportingDescriptor object |
| 13 | type ReportingDescriptorscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor# struct { |
| 14 | PropertyBagscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#PropertyBag. |
| 15 | IDscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#ID. string `json:"id"` |
| 16 | Namescip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#Name. *string `json:"name,omitempty"` |
| 17 | ShortDescriptionscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#ShortDescription. *MultiformatMessageStringscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/MultiformatMessageString# `json:"shortDescription"` |
| 18 | FullDescriptionscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#FullDescription. *MultiformatMessageStringscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/MultiformatMessageString# `json:"fullDescription,omitempty"` |
| 19 | DefaultConfigurationscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#DefaultConfiguration. *ReportingConfigurationscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingConfiguration# `json:"defaultConfiguration,omitempty"` |
| 20 | HelpURIscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#HelpURI. *string `json:"helpUri,omitempty"` |
| 21 | Helpscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#Help. *MultiformatMessageStringscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/MultiformatMessageString# `json:"help,omitempty"` |
| 22 | Propertiesscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#Properties. Propertiesscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Properties# `json:"properties,omitempty"` |
| 23 | } |
| 24 | |
| 25 | func newRulescip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/newRule().(ruleID string) *ReportingDescriptorscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor# { |
| 26 | return &ReportingDescriptorscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#{ |
| 27 | IDscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#ID.: ruleID, |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | // WithName specifies rule name that is understandable to an end user and returns the updated rule. |
| 32 | func (rule *ReportingDescriptorscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#) WithNamescip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#WithName().(name string) *ReportingDescriptorscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor# { |
| 33 | rule.Namescip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#Name. = &name |
| 34 | return rule |
| 35 | } |
| 36 | |
| 37 | // WithDescription specifies short description for a rule and returns the updated rule. |
| 38 | // Short description should be a single sentence that is understandable when visible space is limited to a single line |
| 39 | // of text. |
| 40 | func (rule *ReportingDescriptorscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#) WithDescriptionscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#WithDescription().(description string) *ReportingDescriptorscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor# { |
| 41 | rule.ShortDescriptionscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#ShortDescription. = NewMultiformatMessageStringscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/NewMultiformatMessageString().(description) |
| 42 | return rule |
| 43 | } |
| 44 | |
| 45 | // WithShortDescription specifies short description for a rule and returns the updated rule. |
| 46 | // Short description should be a single sentence that is understandable when visible space is limited to a single line |
| 47 | // of text. |
| 48 | func (rule *ReportingDescriptorscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#) WithShortDescriptionscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#WithShortDescription().(description *MultiformatMessageStringscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/MultiformatMessageString#) *ReportingDescriptorscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor# { |
| 49 | rule.ShortDescriptionscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#ShortDescription. = description |
| 50 | return rule |
| 51 | } |
| 52 | |
| 53 | // WithFullDescription specifies full description for a rule and returns the updated rule. |
| 54 | // Full description should, as far as possible, provide details sufficient to enable resolution of any problem indicated |
| 55 | // by the result. |
| 56 | func (rule *ReportingDescriptorscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#) WithFullDescriptionscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#WithFullDescription().(description *MultiformatMessageStringscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/MultiformatMessageString#) *ReportingDescriptorscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor# { |
| 57 | rule.FullDescriptionscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#FullDescription. = description |
| 58 | return rule |
| 59 | } |
| 60 | |
| 61 | // WithHelpURI specifies a helpURI for a rule and returns the updated rule |
| 62 | func (rule *ReportingDescriptorscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#) WithHelpURIscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#WithHelpURI().(helpURI string) *ReportingDescriptorscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor# { |
| 63 | rule.HelpURIscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#HelpURI. = &helpURI |
| 64 | return rule |
| 65 | } |
| 66 | |
| 67 | // WithHelp specifies a help text for a rule and returns the updated rule |
| 68 | func (rule *ReportingDescriptorscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#) WithHelpscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#WithHelp().(helpText string) *ReportingDescriptorscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor# { |
| 69 | rule.Helpscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#Help. = NewMultiformatMessageStringscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/NewMultiformatMessageString().(helpText) |
| 70 | return rule |
| 71 | } |
| 72 | |
| 73 | // WithMarkdownHelp specifies a help text for a rule and returns the updated rule |
| 74 | func (rule *ReportingDescriptorscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#) WithMarkdownHelpscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#WithMarkdownHelp().(markdownText string) *ReportingDescriptorscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor# { |
| 75 | if rule.Helpscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#Help. == nil { |
| 76 | rule.Helpscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#Help. = NewMultiformatMessageStringscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/NewMultiformatMessageString().("") |
| 77 | } |
| 78 | rule.Helpscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#Help..WithMarkdownscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/MultiformatMessageString#WithMarkdown().(markdownText) |
| 79 | return rule |
| 80 | } |
| 81 | |
| 82 | // WithProperties specifies properties for a rule and returns the updated rule |
| 83 | func (rule *ReportingDescriptorscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#) WithPropertiesscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#WithProperties().(properties Propertiesscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Properties#) *ReportingDescriptorscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor# { |
| 84 | rule.Propertiesscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#Properties. = properties |
| 85 | return rule |
| 86 | } |
| 87 | |
| 88 | // AttachPropertyBag adds a property bag to a rule |
| 89 | func (rule *ReportingDescriptorscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#) AttachPropertyBagscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#AttachPropertyBag().(pb *PropertyBagscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/PropertyBag#) { |
| 90 | rule.Propertiesscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ReportingDescriptor#Properties. = pb.Propertiesscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/PropertyBag#Properties. |
| 91 | } |