Viewing version 0.3.6. Open the latest package page.

bloc_lint

0.3.6

Official lint rules for development when using the bloc state management library.

Download archive

Readme


Official lint rules for development when using the bloc state management library.

Learn more at bloclibrary.dev!

This package is built to work with:


Sponsors

Our top sponsors are shown below! [Become a Sponsor]


Quick Start

  1. Install the bloc command-line tools

    dart pub global activate bloc_tools
    
  2. Install the bloc_lint package

    dart pub add --dev bloc_lint
    
  3. Add an analysis_options.yaml to the root of your project with the recommended rules

    include: package:bloc_lint/recommended.yaml
    
  4. Run the linter

    bloc lint .
    

For more information, check out the official documentation

Recommended Lint Rules

All Lint Rules

Dart Versions

  • Dart 3: >= 3.7.0

Maintainers

Changelog

0.3.6

  • feat: upgrade to latest analyzer frontend

0.3.5

  • fix: adjust upper bound for _fe_analyzer_shared

0.3.4

  • chore: various dependency upgrades

0.3.3

  • fix: ignore whitespace in ignore comments
  • docs: add bloc_lint badge to README

0.3.2

0.3.1

  • fix: adjust lower bound for _fe_analyzer_shared

0.3.0

0.2.1

  • feat: ignore dot directories
  • fix: include bloc/cubit instances defined in any file
  • chore: various dependency upgrades

0.2.0

  • chore: stable 0.2.0 release 🎉
  • chore: various dependency upgrades
  • fix: ignore .fvm

0.2.0-dev.6

  • fix: prefer_void_public_cubit_methods false positive when using switch expressions
  • fix: avoid_public_bloc_methods false positive when using switch expressions

0.2.0-dev.5

  • fix: avoid_public_bloc_methods false positive when using switch expressions

0.2.0-dev.4

  • fix: various bug fixes for Windows

0.2.0-dev.3

  • feat: add support for // ignore
  • feat: add support for // ignore_for_file

0.2.0-dev.2

0.2.0-dev.1

  • fix: package resolution in include on windows
  • fix: uri resolution on windows
  • docs: improvements to README.md

0.2.0-dev.0

0.1.0

  • Initial experimental community release using pkg:custom_lint

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'bloc_lint:0.3.6'
pubspec.yaml
name: bloc_lint
description: Official lint rules for development when using the bloc state management library.
version: 0.3.6
repository: https://github.com/felangel/bloc/tree/master/packages/bloc_lint
issue_tracker: https://github.com/felangel/bloc/issues
homepage: https://github.com/felangel/bloc
documentation: https://bloclibrary.dev
topics: [bloc, state-management, lint]
funding: [https://github.com/sponsors/felangel]

environment:
  sdk: ">=3.7.0 <4.0.0"

dependencies:
  _fe_analyzer_shared: ">=92.0.0 <93.0.0"
  checked_yaml: ^2.0.0
  collection: ^1.0.0
  glob: ^2.0.0
  json_annotation: ^4.9.0
  path: ^1.0.0
  pubspec_lock_parse: ^2.0.0

dev_dependencies:
  build_runner: ^2.0.0
  json_serializable: ^6.0.0
  meta: ^1.0.0
  mocktail: ^1.0.0
  test: ^1.0.0

screenshots:
  - description: The bloc_lint package logo.
    path: screenshots/logo.png

Version history

VersionPublishedArchiveSHA-256
0.1.0Cached · Upstream SHA-256 matchedDownloadfcf80877…34fc65
0.2.0-dev.0Cached · Upstream SHA-256 matchedDownload634c3b6e…f9a46e
0.2.0-dev.1Cached · Upstream SHA-256 matchedDownload4921ede3…1ebaf8
0.2.0-dev.2Cached · Upstream SHA-256 matchedDownloade4b48eb2…dcfd9b
0.2.0-dev.3Cached · Upstream SHA-256 matchedDownload03629e15…679c85
0.2.0-dev.4Cached · Upstream SHA-256 matchedDownloada3f44e77…fd9f22
0.2.0-dev.5Cached · Upstream SHA-256 matchedDownload40ae2585…9df805
0.2.0-dev.6Cached · Upstream SHA-256 matchedDownloadd6e5a3f4…1dec63
0.2.0Cached · Upstream SHA-256 matchedDownloadaf723805…147c36
0.2.1Cached · Upstream SHA-256 matchedDownload116bfd31…c64ae3
0.3.0Cached · Upstream SHA-256 matchedDownloadc93fcf61…1a636b
0.3.1Cached · Upstream SHA-256 matchedDownload9e0d71bb…81288f
0.3.2Cached · Upstream SHA-256 matchedDownloadc7f09846…1c19d4
0.3.3Cached · Upstream SHA-256 matchedDownload5c1325b3…fc0270
0.3.4Cached · Upstream SHA-256 matchedDownload0bfcb288…f94685
0.3.5Cached · Upstream SHA-256 matchedDownload4ba9c78d…5e0f38
0.3.6Cached · Upstream SHA-256 matchedDownload4218f1b2…bf5843
0.3.7Cached · Upstream SHA-256 matchedDownload48d141f6…44ccf4
0.4.0Cached · Upstream SHA-256 matchedDownloade40b5782…a46f79
0.4.1Cached · Upstream SHA-256 matchedDownload5bf965e3…4aba71
0.4.2Cached · Upstream SHA-256 matchedDownload1259e2a4…20f4d5
0.4.3Cached · Upstream SHA-256 matchedDownload7cbbc0de…c60fe2

Dependencies

_fe_analyzer_shared "\u003e=92.0.0 \u003c93.0.0"

checked_yaml "^2.0.0"

collection "^1.0.0"

glob "^2.0.0"

json_annotation "^4.9.0"

path "^1.0.0"

pubspec_lock_parse "^2.0.0"