scanner

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Report

type Report struct {
	File        string `json:"file"`
	LineNumber  int    `json:"lineNumber"`
	Author      string `json:"author,omitempty"`
	AuthorEmail string `json:"authorEmail,omitempty"`
	Msg         string `json:"message,omitempty"`
}

type Scan

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

func New

func New(cfg *config.Config) (*Scan, error)

func (*Scan) FindFilesByGit

func (s *Scan) FindFilesByGit() ([]string, error)

func (*Scan) FindFilesByGlob

func (s *Scan) FindFilesByGlob(glob string) ([]string, error)

func (*Scan) ScanFiles

func (s *Scan) ScanFiles(files []string) ([]Report, error)

Jump to

Keyboard shortcuts

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