mirror of
				https://github.com/kata-containers/kata-containers.git
				synced 2025-11-04 03:29:55 +00:00 
			
		
		
		
	Move the tool as a dependency for static checks migration. Fixes #8187 Signed-off-by: Bin Liu <bin@hyper.sh> Signed-off-by: Chelsea Mafrica <chelsea.e.mafrica@intel.com> Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com> Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com> Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com> Signed-off-by: Julio Montes <julio.montes@intel.com>
		
			
				
	
	
		
			44 lines
		
	
	
		
			783 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			783 B
		
	
	
	
		
			Go
		
	
	
	
	
	
// Copyright (c) 2019 Intel Corporation
 | 
						|
//
 | 
						|
// SPDX-License-Identifier: Apache-2.0
 | 
						|
//
 | 
						|
 | 
						|
package main
 | 
						|
 | 
						|
import "fmt"
 | 
						|
 | 
						|
func linkHeaderRecord() []string {
 | 
						|
	return []string{
 | 
						|
		"Document",
 | 
						|
		"Address",
 | 
						|
		"Path",
 | 
						|
		"Description",
 | 
						|
		"Type",
 | 
						|
	}
 | 
						|
}
 | 
						|
 | 
						|
func linkToRecord(l Link) (record []string) {
 | 
						|
	record = append(record, l.Doc.Name)
 | 
						|
	record = append(record, l.Address)
 | 
						|
	record = append(record, l.ResolvedPath)
 | 
						|
	record = append(record, l.Description)
 | 
						|
	record = append(record, l.Type.String())
 | 
						|
 | 
						|
	return record
 | 
						|
}
 | 
						|
 | 
						|
func headingHeaderRecord() []string {
 | 
						|
	return []string{
 | 
						|
		"Name",
 | 
						|
		"Link",
 | 
						|
		"Level",
 | 
						|
	}
 | 
						|
}
 | 
						|
func headingToRecord(h Heading) (record []string) {
 | 
						|
	record = append(record, h.Name)
 | 
						|
	record = append(record, h.LinkName)
 | 
						|
	record = append(record, fmt.Sprintf("%d", h.Level))
 | 
						|
 | 
						|
	return record
 | 
						|
}
 |