• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase-flutter / 27771763312
85%

Build:
DEFAULT BRANCH: main
Ran 18 Jun 2026 03:50PM UTC
Jobs 8
Files 78
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Jun 2026 03:49PM UTC coverage: 85.171% (+0.006%) from 85.165%
27771763312

push

github

web-flow
chore(supabase_lints): enable avoid-default-tostring (#1426)

Stacked on #1425.

## What

Enables the `avoid-default-tostring` rule, which flags relying on
`Object.toString()` (the unhelpful `Instance of 'X'`). All 18 sites were
one of:

- **Genuine fix** — `User.toString()` interpolated its `List<Factor>`,
and `Factor` had no `toString`, so it rendered as `Instance of
'Factor'`. Added a `toString` to `Factor`.
- **Enums in messages / data-class `toString`** — rendered with `.name`
(e.g. `flowType: ${_flowType.name}`, `event: ${event.name}`) instead of
relying on the default. Affects log lines and the `toString` of
`AuthState`, `RealtimeSubscribeException`, `PostgresChangePayload`,
`PresencePayload`, `PresenceSyncPayload`. No tests assert on these
formats.
- **Logic** — `convertCell` matched a `PostgresTypes` value via
`e.toString() == 'PostgresTypes.$type'`; changed to `e.name == type`
(equivalent, no default-`toString` reliance).
- **Removed test** — `constants_test` had a test asserting
`enum.toString()` returns the qualified name. That is Dart SDK
behaviour, not this repo's to verify, so it was removed.

## Verification
- `dcm analyze packages` -> no issues found.
- `dart analyze` clean across affected packages (lib + test); `flutter
analyze --fatal-warnings` clean.
- Tests: gotrue constants_test 41, realtime transformers_test +
socket_test 55, gotrue type unit tests pass. gotrue `test/src` count
went 232 -> 231 (only the removed enum test); the 24 failures are
pre-existing integration tests that need a local server, identical to
baseline.

## Note
Enums are rendered with `.name`, which drops the `EnumType.` prefix from
the affected `toString`/log output (e.g. `signedIn` instead of
`AuthChangeEvent.signedIn`). Nothing asserts on these strings.

10 of 12 new or added lines in 7 files covered. (83.33%)

4078 of 4788 relevant lines covered (85.17%)

3.49 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
78.99
0.0% packages/realtime_client/lib/src/types.dart
Jobs
ID Job ID Ran Files Coverage
1 realtime_client - 27771763312.1 18 Jun 2026 03:53PM UTC 11
88.15
GitHub Action Run
2 gotrue - 27771763312.2 18 Jun 2026 03:53PM UTC 26
83.53
GitHub Action Run
3 supabase_flutter - 27771763312.3 18 Jun 2026 03:52PM UTC 9
77.0
GitHub Action Run
4 functions_client - 27771763312.4 18 Jun 2026 03:50PM UTC 2
97.1
GitHub Action Run
5 storage_client - 27771763312.5 18 Jun 2026 03:52PM UTC 5
93.01
GitHub Action Run
6 yet_another_json_isolate - 27771763312.6 18 Jun 2026 03:50PM UTC 1
79.03
GitHub Action Run
7 postgrest - 27771763312.7 18 Jun 2026 03:52PM UTC 9
83.76
GitHub Action Run
8 supabase - 27771763312.8 18 Jun 2026 03:51PM UTC 15
82.1
GitHub Action Run
Source Files on build 27771763312
  • Tree
  • List 78
  • Changed 7
  • Source Changed 7
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27771763312
  • b299d240 on github
  • Prev Build on main (#27769861530)
  • Next Build on main (#27911371337)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc