Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment struct {
File string `json:"file"`
Line uint `json:"line"`
EndLine uint `json:"endLine"`
Column uint `json:"column"`
EndColumn uint `json:"endColumn"`
Level string `json:"level"`
Code uint `json:"code"`
Message string `json:"message"`
Fix *Fix `json:"fix"`
}
func (*Comment) ToCodeActionFixLint ¶
func (c *Comment) ToCodeActionFixLint(uri string) *lsp.CodeAction
func (*Comment) ToCodeActionIgnore ¶
func (*Comment) ToDiagnostic ¶
func (c *Comment) ToDiagnostic() lsp.Diagnostic
type ShellCheckResult ¶
type ShellCheckResult struct {
Comments []Comment `json:"comments"`
}
https://github.com/koalaman/shellcheck/wiki/Integration
func (*ShellCheckResult) ContainsFixable ¶
func (s *ShellCheckResult) ContainsFixable() bool
func (*ShellCheckResult) ToCodeActionFlat ¶
func (s *ShellCheckResult) ToCodeActionFlat(uri string) lsp.CodeAction
func (*ShellCheckResult) ToDiagnostics ¶
func (s *ShellCheckResult) ToDiagnostics() []lsp.Diagnostic
Click to show internal directories.
Click to hide internal directories.