data

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeInfo

type CodeInfo struct {
	Text           string `xml:",chardata"`
	FileName       string `xml:"FileName"`
	FilePath       string `xml:"FilePath"`
	LineStart      string `xml:"LineStart"`
	Snippet        string `xml:"Snippet"`
	TargetFunction string `xml:"TargetFunction"`
}

CodeInfo struct for storing issues inside xml document

type Issue

type Issue struct {
	Text     string   `xml:",chardata"`
	Iid      string   `xml:"iid,attr"`
	RuleID   string   `xml:"ruleID,attr"`
	Category string   `xml:"Category"`
	Folder   string   `xml:"Folder"`
	Kingdom  string   `xml:"Kingdom"`
	Abstract string   `xml:"Abstract"`
	Friority string   `xml:"Friority"`
	Primary  CodeInfo `xml:"Primary"`
	Source   CodeInfo `xml:"Source"`
}

Issue struct for storing issues inside xml document

type ReportDefinition

type ReportDefinition struct {
	XMLName       xml.Name `xml:"ReportDefinition"`
	Text          string   `xml:",chardata"`
	Type          string   `xml:"type,attr"`
	TemplateName  string   `xml:"TemplateName"`
	TemplatePath  string   `xml:"TemplatePath"`
	LogoPath      string   `xml:"LogoPath"`
	Footnote      string   `xml:"Footnote"`
	UserName      string   `xml:"UserName"`
	ReportSection []struct {
		Text                string `xml:",chardata"`
		Enabled             string `xml:"enabled,attr"`
		OptionalSubsections string `xml:"optionalSubsections,attr"`
		Title               string `xml:"Title"`
		SubSection          []struct {
			Chardata     string `xml:",chardata"`
			Enabled      string `xml:"enabled,attr"`
			Title        string `xml:"Title"`
			Description  string `xml:"Description"`
			Text         string `xml:"Text"`
			IssueListing struct {
				Text       string `xml:",chardata"`
				Listing    string `xml:"listing,attr"`
				Limit      string `xml:"limit,attr"`
				Refinement string `xml:"Refinement"`
				Chart      struct {
					Text            string `xml:",chardata"`
					ChartType       string `xml:"chartType,attr"`
					Axis            string `xml:"Axis"`
					MajorAttribute  string `xml:"MajorAttribute"`
					GroupingSection []struct {
						Text                  string `xml:",chardata"`
						Count                 string `xml:"count,attr"`
						GroupTitle            string `xml:"groupTitle"`
						MajorAttributeSummary struct {
							Text     string `xml:",chardata"`
							MetaInfo []struct {
								Text  string `xml:",chardata"`
								Name  string `xml:"Name"`
								Value string `xml:"Value"`
							} `xml:"MetaInfo"`
							AttributeValue []struct {
								Text  string `xml:",chardata"`
								Name  string `xml:"Name"`
								Count string `xml:"Count"`
							} `xml:"AttributeValue"`
						} `xml:"MajorAttributeSummary"`
						Issue []Issue `xml:"Issue"`
					} `xml:"GroupingSection"`
				} `xml:"Chart"`
			} `xml:"IssueListing"`
		} `xml:"SubSection"`
	} `xml:"ReportSection"`
}

ReportDefinition main xml tag struct for storing

type Source

type Source struct {
	Text           string `xml:",chardata"`
	FileName       string `xml:"FileName"`
	FilePath       string `xml:"FilePath"`
	LineStart      string `xml:"LineStart"`
	Snippet        string `xml:"Snippet"`
	TargetFunction string `xml:"TargetFunction"`
}

Source struct for storing issues inside xml document

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL