Viewing version 0.6.9. Open the latest package page.

custom_lint_core

0.6.9

A package to help writing custom linters

Download archive

Readme

About

custom_lint_core, a variant of custom_lint_builder which exports lint-utilities without causing custom_lint to consider the dependent as a lint plugin.

As opposed to custom_lint_builder , adding custom_lint_core as dependency will not flag a package as a "custom_lint plugin".

See custom_lint for more informations


Changelog

0.6.9 - 2024-10-09

  • Support analyzer 0.6.9

0.6.5 - 2024-08-15

  • Upgraded to analyzer ^6.6.0. This is a quick fix to unblock the stable Flutter channel. A more robust fix will come later.
  • Fixed a bug where isSuperTypeOf throws if the element is null (thanks to @charlescyt)

0.6.3 - 2024-03-16

  • Parses debug/config flags

0.6.2 - 2024-02-19

  • Fix null exception when using TypeChecker.isSuperTypeOf (thanks to @charlescyt)

0.6.1 - 2024-02-14

  • Exported NodeLintRegistry

0.6.0 - 2024-02-04

  • Bumped minimum Dart SDK to 3.0.0
  • goldens with diffs now include the priority, ID, selection and file path.
  • breaking: encodePrioritizedSourceChanges/matcherNormalizedPrioritizedSourceChangeSnapshot's source parameter now takes a Map<String, String>? sources instead of String? source. This enables goldens to handle fixes that emit to a different file.

0.5.14 - 2024-02-03

  • Improved formatting when specifying source on encodePrioritizedSourceChanges/matcherNormalizedPrioritizedSourceChangeSnapshot

0.5.13 - 2024-02-03

  • Improved formatting when specifying source on encodePrioritizedSourceChanges/matcherNormalizedPrioritizedSourceChangeSnapshot

0.5.12 - 2024-02-02

  • Added encodePrioritizedSourceChanges, to enable writing a List<PrioritizedSourceChanges> to a file
  • matcherNormalizedPrioritizedSourceChangeSnapshot now optionally takes a String source. This enables saving to the disk the expected result.

0.5.11 - 2024-01-27

  • custom_lint upgraded to 0.5.11

0.5.10 - 2024-01-26

  • Fix a bug with matcherNormalizedPrioritizedSourceChangeSnapshot

0.5.9 - 2024-01-26

  • matcherNormalizedPrioritizedSourceChangeSnapshot now optionally allows specifying a JsonEncoder.

0.5.8 - 2024-01-09

Added an optional customPath to the various ChangeReporter methods (thanks to @laurentschall)

0.5.7 - 2023-11-20

  • custom_lint upgraded to 0.5.7

0.5.6 - 2023-10-30

  • custom_lint upgraded to 0.5.6

0.5.5 - 2023-10-26

  • custom_lint upgraded to 0.5.5

0.5.4 - 2023-10-20

  • custom_lint upgraded to 0.5.4

0.5.3 - 2023-08-29

  • custom_lint upgraded to 0.5.3

0.5.2 - 2023-08-16

  • Support both analyzer 5.12.0 and 6.0.0 at the same time.
  • Attempt at fixing the windows crash

0.5.1 - 2023-08-03

Support analyzer v6

0.5.0 - 2023-06-21

  • custom_lint upgraded to 0.5.0

0.4.0 - 2023-05-12

  • Added support for analyzer 5.12.0

0.3.4 - 2023-04-19

  • custom_lint upgraded to 0.3.4

0.3.3 - 2023-04-06

  • Upgraded analyzer to >=5.7.0 <5.11.0
  • LintRuleNodeRegistry and other AstVisitor-like now are based off GeneralizingAstVisitor instead of GeneralizingAstVisitor
  • Exposes the Pubspec in CustomLintContext

0.3.2 - 2023-03-09

  • custom_lint upgraded to 0.3.2

0.3.1 - 2023-03-09

Update dependencies

0.3.0 - 2023-03-09

  • Update analyzer to >=5.7.0 <5.8.0

0.2.12

Upgrade custom_lint

0.2.11

Bump minimum Dart SDK to sdk: ">=2.19.0 <3.0.0"

0.2.10

Update fileToAnalyze from *.dart to **.dart to match the fileToAnalyze fix in custom_lint_builder

0.2.9

Fix TypeChecker.fromPackage not always return true when it should

0.2.8

Fix exception thrown by TypeChecker.isExactlyType if DartType.element is null.

0.2.7

Initial release

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'custom_lint_core:0.6.9'
pubspec.yaml
name: custom_lint_core
version: 0.6.9
description: A package to help writing custom linters
repository: https://github.com/invertase/dart_custom_lint

environment:
  sdk: ">=3.0.0 <4.0.0"

dependencies:
  analyzer: ^6.10.0
  analyzer_plugin: ^0.11.0
  collection: ^1.16.0
  glob: ^2.1.2
  matcher: ^0.12.0
  meta: ^1.7.0
  package_config: ^2.1.0
  path: ^1.8.0
  pubspec_parse: ^1.2.2
  source_span: ^1.8.0
  yaml: ^3.1.1

dev_dependencies:
  build_runner: ^2.3.3
  lint_visitor_generator:
    path: ../lint_visitor_generator
  test: ^1.22.2

Version history

VersionPublishedArchiveSHA-256
0.2.7Cached · Upstream SHA-256 matchedDownload71f7996c…372319
0.2.8Cached · Upstream SHA-256 matchedDownloadd1001593…50c17a
0.2.9Cached · Upstream SHA-256 matchedDownload2a55aa19…c233d1
0.2.10Cached · Upstream SHA-256 matchedDownload4592ac37…351962
0.2.11Cached · Upstream SHA-256 matchedDownloada6edd96a…f72aa6
0.2.12Cached · Upstream SHA-256 matchedDownload34a94471…a1f461
0.3.0Cached · Upstream SHA-256 matchedDownload541cc8fd…6dfcef
0.3.1Cached · Upstream SHA-256 matchedDownload1cf8e914…ecbeba
0.3.2Cached · Upstream SHA-256 matchedDownloadcc20ce83…aa9a74
0.3.3Cached · Upstream SHA-256 matchedDownload83bf91d1…3f02c9
0.3.4Cached · Upstream SHA-256 matchedDownloadf42f688b…f8363f
0.4.0Cached · Upstream SHA-256 matchedDownload9170d9db…0de57f
0.5.0Cached · Upstream SHA-256 matchedDownloada39e98cb…225c1b
0.5.1Cached · Upstream SHA-256 matchedDownload3c2d73d4…789b24
0.5.2Cached · Upstream SHA-256 matchedDownloada420aa57…7d6fcc
0.5.3Cached · Upstream SHA-256 matchedDownload3bdebdd5…7aea9c
0.5.4Cached · Upstream SHA-256 matchedDownloadc7399ebe…33cb03
0.5.5Cached · Upstream SHA-256 matchedDownloadae59cf9f…41188c
0.5.6Cached · Upstream SHA-256 matchedDownloade20a6773…749650
0.5.7Cached · Upstream SHA-256 matchedDownloadf84c3fe2…dd94cc
0.5.8Cached · Upstream SHA-256 matchedDownload2b235be0…52f03f
0.5.9Cached · Upstream SHA-256 matchedDownloadae48e20c…d46e76
0.5.10Cached · Upstream SHA-256 matchedDownloadbfcc6b51…7c3d84
0.5.11Cached · Upstream SHA-256 matchedDownload77dd37e9…de53cd
0.5.12Cached · Upstream SHA-256 matchedDownloada8dfd290…43a569
0.5.13Cached · Upstream SHA-256 matchedDownload09594104…4317c3
0.5.14Cached · Upstream SHA-256 matchedDownload29528379…0e189b
0.6.0Cached · Upstream SHA-256 matchedDownload9003a914…a9d4fb
0.6.1Cached · Upstream SHA-256 matchedDownload1e9128e0…6fa029
0.6.2Cached · Upstream SHA-256 matchedDownloadce5d6215…09d9a6
0.6.3Cached · Upstream SHA-256 matchedDownloada85e8f78…bc20e6
0.6.5Cached · Upstream SHA-256 matchedDownload4ddbbdaa…8c267d
0.6.9Cached · Upstream SHA-256 matchedDownload4c8b1931…2c0503
0.6.10Cached · Upstream SHA-256 matchedDownload76a4046c…8510f6
0.7.0Cached · Upstream SHA-256 matchedDownload02450c3e…49b7f5
0.7.1Cached · Upstream SHA-256 matchedDownload6dcee8a0…759a9e
0.7.5Cached · Upstream SHA-256 matchedDownload31110af3…dee8be
0.7.7Cached · Upstream SHA-256 matchedDownload525a323c…0d053c
0.8.0Cached · Upstream SHA-256 matchedDownloadcc4684d2…e35dd1
0.8.1Cached · Upstream SHA-256 matchedDownload85b33934…0d6423
0.8.2Cached · Upstream SHA-256 matchedDownload02d9ac11…06bc1a

Dependencies

analyzer "^6.10.0"

analyzer_plugin "^0.11.0"

collection "^1.16.0"

glob "^2.1.2"

matcher "^0.12.0"

meta "^1.7.0"

package_config "^2.1.0"

path "^1.8.0"

pubspec_parse "^1.2.2"

source_span "^1.8.0"

yaml "^3.1.1"