Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fix ¶
type Fix struct { Replacements []struct { Column int `json:"column"` EndColumn int `json:"endColumn"` EndLine int `json:"endLine"` InsertionPoint string `json:"insertionPoint"` Line int `json:"line"` Precedence int `json:"precedence"` Replacement string `json:"replacement"` } `json:"replacements"` }
type ShellChecker ¶
type ShellChecker struct {
// contains filtered or unexported fields
}
ShellChecker provides API access to the bundled shellcheck binary
func NewShellChecker ¶
func NewShellChecker() (*ShellChecker, error)
NewShellChecker instantiates a new shellcheck instance and loads the binary
func (*ShellChecker) AnalyzeFile ¶
func (s *ShellChecker) AnalyzeFile(path string, extraFlags string) (*Result, error)
AnalyzeFile for a given path
func (*ShellChecker) AnalyzeSnippet ¶ added in v0.0.2
func (s *ShellChecker) AnalyzeSnippet(snippet []byte, extraFlags string) (*Result, error)
AnalyzeSnippet writes the snippet to a temporary file, analyzes it with shellcheck, and returns the result
func (*ShellChecker) Version ¶
func (s *ShellChecker) Version() string
Version of shellcheck bundled with the application
Click to show internal directories.
Click to hide internal directories.