An open API service indexing awesome lists of open source software.

https://github.com/cosee/cosee_lints

Lint rules and metrics for Dart and Flutter used internally at cosee GmbH.
https://github.com/cosee/cosee_lints

dart flutter linter package

Last synced: 3 months ago
JSON representation

Lint rules and metrics for Dart and Flutter used internally at cosee GmbH.

Awesome Lists containing this project

README

          

# cosee lints




cosee GmbH





[![pub package][pub_badge]][pub_badge_link]
[![package publisher][publisher_badge]][publisher_badge_link]
[![license][license_badge]][license_link]

This package provides custom lint rules and metrics for Dart and Flutter projects used internally
at [cosee GmbH][cosee]. It can be added to your project as a dev dependency.

# Installation

To install the package, add the following to your `pubspec.yaml` file:

```yaml
dev_dependencies:
cosee_lints: ^0.13.0
```

Then, add an include in `analysis_options.yaml`.

For a casual project:

```yaml
include: package:cosee_lints/analysis_options.yaml
```

For a package:

```yaml
include: package:cosee_lints/analysis_options_package.yaml
```

If you are using [dart_code_linter][dart_code_linter] you can extend our preset by adding the
following line in `analysis_options.yaml`:

```yaml
dart_code_linter:
extends:
- package:cosee_lints/metrics.yaml
```

# Usage

The lint rules can be run using the following command:

```sh
dart analyze

# or for Flutter
flutter analyze
```

The Dart Code Metrics can be run using the following command:

```sh
dart run dart_code_linter:metrics analyze lib
```

[cosee]: https://www2.cosee.biz/

[dart_code_linter]: https://dcl.apps.bancolombia.com/

[pub_badge]: https://img.shields.io/pub/v/cosee_lints.svg

[pub_badge_link]: https://pub.dartlang.org/packages/cosee_lints

[publisher_badge]: https://img.shields.io/pub/publisher/cosee_lints.svg

[publisher_badge_link]: https://pub.dev/publishers/cosee.biz/packages

[license_badge]: https://img.shields.io/github/license/cosee/cosee_lints

[license_link]: https://github.com/cosee/cosee_lints/blob/main/LICENSE