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.
- Host: GitHub
- URL: https://github.com/cosee/cosee_lints
- Owner: cosee
- License: bsd-3-clause
- Created: 2023-01-18T13:21:48.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2026-03-02T02:17:00.000Z (3 months ago)
- Last Synced: 2026-03-02T06:13:57.000Z (3 months ago)
- Topics: dart, flutter, linter, package
- Language: Shell
- Homepage:
- Size: 177 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# cosee lints
[![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