Skip to content

Allow pass-through of more error overrides, e.g. when they mute lint rules from the included options file but not affecting default lint rules. #1515

@csells

Description

@csells

If I ran dart analyze on my local package (dartantic_ai in this case), I get the following output:

dart analyze lib/dartantic_ai.dart
Analyzing dartantic_ai.dart...         0.5s
No issues found!

However, if I run pana, I get the following int the Pass static analysis category:

## ✗ Pass static analysis (40 / 50)
### [~] 40/50 points: code has no errors, warnings, lints, or formatting issues

Found 4750 issues. Showing the first 2:

<details>
<summary>
INFO: Unnecessary use of single quotes.
</summary>

`lib/dartantic_ai.dart:6:8`

  ╷
6 │ export 'src/agent/agent.dart';
  │        ^^^^^^^^^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `dart analyze lib/dartantic_ai.dart`
</details>

<details>
<summary>
INFO: Unnecessary use of single quotes.
</summary>

`lib/dartantic_ai.dart:7:8`

  ╷
7 │ export 'src/agent/model_string_parser.dart';
  │        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `dart analyze lib/dartantic_ai.dart`
</details>

Obviously there aren't 4750 issues and how would one of them be "Unnecessary use of single quotes," given that it's an export statement? This is a regression.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions