Skip to content

[file].dart doesn't match the formatter, pub.dev score #9091

@nank1ro

Description

@nank1ro

My package shadcn_ui can't pass the "static analysis" score.
Image

Even If I run dart format . at the root of my package I get Formatted 281 files (0 changed) in 0.79 seconds.

My pubspec.yaml uses the following environment:

environment:
  sdk: ">=3.10.0 <4.0.0"
  flutter: ">=3.35.0"

My analysis_options.yaml contains the following:

formatter:
  trailing_commas: preserve

Is there a mismatch between the version i'm using locally and the version you use on pub dev to analyze the project?

> dart --version
Dart SDK version: 3.10.0 (stable) (Thu Nov 6 05:24:55 2025 -0800) on "macos_arm64"
> flutter --version
Flutter 3.38.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f5a8537f90 (5 days ago) • 2025-11-18 09:27:21 -0500
Engine • hash 78c3c9557e50ee7c676fa37562558c59efd8406a (revision b5990e5ccc) (10 days ago) • 2025-11-12 21:08:24.000Z
Tools • Dart 3.10.0 • DevTools 2.51.1

To reproduce you can simply clone https://github.com/nank1ro/flutter-shadcn-ui and run dart format . after flutter pub get

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions