Skip to content

Commit

Permalink
chore: add support for ireturn
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone committed Aug 22, 2024
1 parent fa08795 commit abe48b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ linters:
- importas # Enforces consistent import aliases [fast: false, auto-fix: false]
- ineffassign # Detects when assignments to existing variables are not used [fast: true, auto-fix: false]
- intrange # intrange is a linter to find places where for loops could make use of an integer range. [fast: true, auto-fix: false]
- ireturn # Accept Interfaces, Return Concrete Types [fast: false, auto-fix: false]
- loggercheck # (logrlint): Checks key value pairs for common logger libraries (kitlog,klog,logr,zap). [fast: false, auto-fix: false]
- makezero # Finds slice declarations with non-zero initial length [fast: false, auto-fix: false]
- mirror # reports wrong mirror patterns of bytes/strings usage [fast: false, auto-fix: false]
Expand Down
3 changes: 3 additions & 0 deletions internal/interactive/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import (
tea "github.com/charmbracelet/bubbletea"
)

// Verify Interface Compliance in compile time
var _ tea.Model = (*ListPrompt)(nil)

type ListPrompt struct {
// Prompt that will be printed when showing the list
Prompt string
Expand Down

0 comments on commit abe48b0

Please sign in to comment.