mirror of
https://github.com/aykhans/sarin.git
synced 2026-10-17 22:53:52 +00:00
refactor: migrate Charm libraries to v2
Import paths moved to charm.land/*/v2 and the v1 paths no longer resolve. Ports View() -> tea.View, AltScreen/MouseMode to View fields, KeyPressMsg, and the new progress/viewport constructors. Styled output outside Bubble Tea switched to lipgloss.Print* because v2 downsamples colour at the output layer. vendorHash refreshed.
This commit is contained in:
9 files changed
+105
-99
No files matched your search
@@ -55,6 +55,17 @@ linters:
|
||||
- wastedassign
|
||||
|
||||
settings:
|
||||
errcheck:
|
||||
# Lip Gloss print helpers wrap fmt.Fprint* and fail only on unactionable
|
||||
# write errors (broken pipe, full disk). errcheck excludes the fmt
|
||||
# equivalents by default; these are excluded for the same reason.
|
||||
exclude-functions:
|
||||
- charm.land/lipgloss/v2.Print
|
||||
- charm.land/lipgloss/v2.Printf
|
||||
- charm.land/lipgloss/v2.Println
|
||||
- charm.land/lipgloss/v2.Fprint
|
||||
- charm.land/lipgloss/v2.Fprintf
|
||||
- charm.land/lipgloss/v2.Fprintln
|
||||
staticcheck:
|
||||
checks:
|
||||
- "all"
|
||||
@@ -81,6 +92,13 @@ linters:
|
||||
- staticcheck
|
||||
text: "SA5011"
|
||||
|
||||
# Counterpart to the errcheck exclusions above: gosec's G104 keeps its
|
||||
# own allowlist, which covers fmt but not the Lip Gloss print helpers.
|
||||
- linters:
|
||||
- gosec
|
||||
text: "G104"
|
||||
source: "lipgloss\\.(Print|Printf|Println|Fprint|Fprintf|Fprintln)\\("
|
||||
|
||||
formatters:
|
||||
enable:
|
||||
- gofmt
|
||||
|
||||
Reference in new issue
Block a user