OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.85k stars 6.59k forks source link

[BUG] Dart: Errors ignored in `analysis_options.yaml` do not affect `pana` scanning #14750

Open Rexios80 opened 1 year ago

Rexios80 commented 1 year ago

Bug Report Checklist

Description

This PR introduced deprecation annotation support for dart. That's fine, except it ignores the new lint issues by ignoring them in analysis_options.yaml. That would be fine, if pana (the dart package analyzer that awards points on pub.dev) didn't ignore analysis_options.yaml and use its own linter configuration.

openapi-generator version

6.4.0

OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix

Add // ignore: deprecated_member_use_from_same_package to all internal usages of deprecated members during generation

ahmednfwela commented 1 year ago

@jaumard (2018/09) @josh-burton (2019/12) @amondnet (2019/12) @sbu-WBT (2020/12) @kuhnroyal (2020/12) @agilob (2020/12) @ahmednfwela (2021/08)