bancolombia / dart-code-linter

Dart Code Linter is a software analytics tool that helps developers analyse and improve software quality. Dart Code Linter is based on a fork of Dart Code Metrics. We welcome contributions from other developers. Please feel free to submit pull-requests and bugreports to this GitHub repository.
https://dcl.apps.bancolombia.com/
MIT License
35 stars 20 forks source link

Allow `avoid-banned-imports` rule to ignore imports with specific `show` configuration #119

Open danielgomezrico opened 5 months ago

danielgomezrico commented 5 months ago

Description Hi

I am unable to set up the avoid-banned-imports to warn when there's an import from flutter that has a show on my presentation layer, let's say a ViewModel.

I want to allow only the tag visibleForTesting like:

import 'package:flutter/foundation.dart' show visibleForTesting;

And warn if the show is not added, like:

import 'package:flutter/foundation.dart';

Why do you consider it necessary? This is useful for testing and the tag comes from the flutter SDK 🤔

app-toolkit-opensource-innersource[bot] commented 5 months ago

Assign to review: @santitigaga @ajtortolero