# bloc_lint 0.1.0

Set of lint rules for the Flutter BLoC library.




## Installing
```
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'bloc_lint:0.1.0'
```
Published: 2024-11-10T15:53:55.553997Z
Expected archive SHA-256: fcf80877faf222089436696681375bc3bc9ca023305b69180ea81b449134fc65

Available in cache; verification: upstream_checksum
## Direct dependencies
- analyzer: ^6.7.0
- analyzer_plugin: ^0.11.3
- custom_lint_builder: ^0.7.0

## Package README (untrusted upstream documentation)
Bloc Lint
===

Custom linter rules for Flutter projects using the [bloc library](https://bloclibrary.dev/). This package is based on 
[dart_custom_lint](https://github.com/invertase/dart_custom_lint) package.

## Usage

Add the following to your `pubspec.yaml` file:

```yaml
dev_dependencies:
  custom_lint: ^0.7.0
  bloc_lint: ^0.1.0
```

Add the following to your `analysis_options.yaml` file:

```yaml
analyzer:
  plugins:
    - custom_lint
```

That's it! After running pub get (and possibly restarting their IDE), users should now see our custom lints in their
Dart files. You can also run `dart pub custom_lint` to run the linter in your CLI.

## Tests

The example folder contains a dart project to unit test the rules. (see custom_lint readme for more info)

## Implemented Rules

- [avoid_public_methods_on_bloc](doc/rules/avoid_public_methods_on_bloc.md)
- [avoid_public_properties_on_bloc_and_cubit](doc/rules/avoid_public_properties_on_bloc_and_cubit.md)
- [event_base_class_suffix](doc/rules/event_base_class_suffix.md)
- [prefer_multi_bloc_listener](doc/rules/prefer_multi_bloc_listener.md)
- [prefer_multi_bloc_provider](doc/rules/prefer_multi_bloc_provider.md)
- [prefer_multi_repository_provider](doc/rules/prefer_multi_repository_provider.md)
- [state_base_class_suffix](doc/rules/state_base_class_suffix.md) 
## Changelog
## 0.1.0 - 2024-11-10

- Initial release
- New rules implemented:
  - avoid_public_methods_on_bloc
  - avoid_public_properties_on_bloc_and_cubit
  - event_base_class_suffix
  - prefer_multi_bloc_listener
  - prefer_multi_bloc_provider
  - prefer_multi_repository_provider
  - state_base_class_suffix






 
