Files
bvandeusen 70529de9d3 fix(ci): golangci-lint v2 schema + Flutter 3.44 ListTile strictness
Two fixes for CI bounces caused by the new ci-go:1.26 / ci-flutter:3.44
toolchain images surfacing stricter checks than the previous runners.

1. .golangci.yml: migrate to v2 schema
   - Add `version: "2"` (now required).
   - `linters.disable-all: true` → `linters.default: none`.
   - Move `gofmt` + `goimports` out of `linters` into the new
     top-level `formatters:` block (v2 separates linters and
     formatters).
   - Nest `linters-settings:` under `linters.settings:`.
   - Drop the v1-only `issues.exclude-use-default: false`
     (v2 default exclusion behavior is what we want).

2. Flutter 3.44 made ListTile-inside-ColoredBox a hard assertion
   (was a warning before). Both bottom sheets in track_actions/
   set Container.color on the outer surface, which inserts a
   ColoredBox above their ListTiles. Wrap each ListTile in
   `Material(type: MaterialType.transparency)` so it has an ink
   target beneath the outer color paint without changing the
   visual surface:
   - track_actions_sheet.dart `_MenuItem.build`
   - add_to_playlist_sheet.dart inner ListTile

5 failing widget tests should pass with this change. Local task #70.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-20 15:10:56 -04:00

30 lines
587 B
YAML

version: "2"
run:
timeout: 5m
tests: true
linters:
default: none
enable:
- errcheck
- govet
- ineffassign
- staticcheck
- unused
- revive
settings:
revive:
# Intentionally narrow: we skip `exported` (no doc-comment requirement) per
# the project's no-boilerplate-comment policy. Re-enable if the public API
# surface grows to the point where documentation lives alongside it.
rules:
- name: var-naming
- name: unused-parameter
- name: early-return
formatters:
enable:
- gofmt
- goimports