Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jul 16, 2023. It is now read-only.
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

[BUG] avoid-dynamic False Positive #1234

Copy link
Copy link
Open
@g5becks

Description

@g5becks
Issue body actions

Environment and configuration

DCM version: dart_code_metrics: ^5.7.4
Dart SDK version: 3.0.0 (stable)

Configuration
dart_code_metrics:
  extends:
    - package:dart_code_metrics_presets/all.yaml
  metrics-exclude:
    - test/**
  rules:
    - avoid-late-keyword: false
    - prefer-static-class: false
    - no-magic-number: false
    - format-comment: false

What did you do?

import 'package:rxdart/rxdart.dart' show ReplaySubject;
import 'package:technical_indicators/src/types.dart';

import 'quotes.dart';
import 'util.dart';

Decimal _d(String s) => Decimal.parse(s);

typedef Series<T> = Stream<T>;

typedef QuoteSeries = ReplaySubject<Quote>;

What did you expect to happen?

No dynamic types were used, so I expect the warning not to appear.

What actually happened?

Entire codebase is giving the waring for avoid-dynamic based on this one usage , even though a dynamic type was never used.

The typedef for QuoteSeries is where the warning begins to appear, and continues anywhere else the type is used in the library.

Participation

  • I am willing to submit a pull request for this issue.

Additional comments

No response

Metadata

Metadata

Assignees

Labels

type: bugSomething isn't workingSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.