formatters

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IFormatter

type IFormatter interface {
	StartAnalysis(projectSubPath string)
}

type IService

type IService interface {
	LogDebugWithReplace(msg string, tool tools.Tool)
	GetAnalysisID() string
	SetAnalysisError(err error)
	ExecuteContainer(data *dockerEntities.AnalysisData) (output string, err error)
	GetAnalysisIDErrorMessage(tool tools.Tool, output string) string
	GetCommitAuthor(line, filePath string) (commitAuthor horusec.CommitAuthor)
	AddWorkDirInCmd(cmd string, projectSubPath string, tool tools.Tool) string
	GetConfigProjectPath() string
	GetAnalysis() *horusec.Analysis
	SetLanguageIsFinished()
	LogAnalysisError(err error, tool tools.Tool, projectSubPath string)
	SetMonitor(monitor *horusec.Monitor)
	RemoveSrcFolderFromPath(filepath string) string
	GetCodeWithMaxCharacters(code string, column int) string
}

func NewFormatterService

func NewFormatterService(analysis *horusec.Analysis, docker dockerService.Interface, config *cliConfig.Config,
	monitor *horusec.Monitor) IService

type Mock

type Mock struct {
	mock.Mock
}

func (*Mock) AddWorkDirInCmd

func (m *Mock) AddWorkDirInCmd(cmd string, projectSubPath string, tool tools.Tool) string

func (*Mock) ExecuteContainer

func (m *Mock) ExecuteContainer(data *dockerEntities.AnalysisData) (output string, err error)

func (*Mock) GetAnalysis

func (m *Mock) GetAnalysis() *horusec.Analysis

func (*Mock) GetAnalysisID

func (m *Mock) GetAnalysisID() string

func (*Mock) GetAnalysisIDErrorMessage

func (m *Mock) GetAnalysisIDErrorMessage(tool tools.Tool, output string) string

func (*Mock) GetCodeWithMaxCharacters added in v1.0.1

func (m *Mock) GetCodeWithMaxCharacters(code string, column int) string

func (*Mock) GetCommitAuthor

func (m *Mock) GetCommitAuthor(line, filePath string) (commitAuthor horusec.CommitAuthor)

func (*Mock) GetConfigProjectPath

func (m *Mock) GetConfigProjectPath() string

func (*Mock) LogAnalysisError

func (m *Mock) LogAnalysisError(err error, tool tools.Tool, projectSubPath string)

func (*Mock) LogDebugWithReplace

func (m *Mock) LogDebugWithReplace(msg string, tool tools.Tool)

func (*Mock) RemoveSrcFolderFromPath added in v1.0.1

func (m *Mock) RemoveSrcFolderFromPath(filepath string) string

func (*Mock) SetAnalysisError

func (m *Mock) SetAnalysisError(err error)

func (*Mock) SetLanguageIsFinished

func (m *Mock) SetLanguageIsFinished()

func (*Mock) SetMonitor

func (m *Mock) SetMonitor(monitor *horusec.Monitor)

type Service

type Service struct {
	// contains filtered or unexported fields
}

func (*Service) AddWorkDirInCmd

func (s *Service) AddWorkDirInCmd(cmd, projectSubPath string, tool tools.Tool) string

func (*Service) ExecuteContainer

func (s *Service) ExecuteContainer(data *dockerEntities.AnalysisData) (output string, err error)

func (*Service) GetAnalysis

func (s *Service) GetAnalysis() *horusec.Analysis

func (*Service) GetAnalysisID

func (s *Service) GetAnalysisID() string

func (*Service) GetAnalysisIDErrorMessage

func (s *Service) GetAnalysisIDErrorMessage(tool tools.Tool, output string) string

func (*Service) GetCodeWithMaxCharacters added in v1.0.1

func (s *Service) GetCodeWithMaxCharacters(code string, column int) string

func (*Service) GetCommitAuthor

func (s *Service) GetCommitAuthor(line, filePath string) (commitAuthor horusec.CommitAuthor)

func (*Service) GetConfigProjectPath

func (s *Service) GetConfigProjectPath() string

func (*Service) LogAnalysisError

func (s *Service) LogAnalysisError(err error, tool tools.Tool, projectSubPath string)

func (*Service) LogDebugWithReplace

func (s *Service) LogDebugWithReplace(msg string, tool tools.Tool)

func (*Service) RemoveSrcFolderFromPath

func (s *Service) RemoveSrcFolderFromPath(filepath string) string

func (*Service) SetAnalysisError

func (s *Service) SetAnalysisError(err error)

func (*Service) SetLanguageIsFinished

func (s *Service) SetLanguageIsFinished()

func (*Service) SetMonitor

func (s *Service) SetMonitor(monitor *horusec.Monitor)

Directories

Path Synopsis
dotnet
scs
golang
java
javascript
kotlin
leaks
python
ruby

Jump to

Keyboard shortcuts

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