p-hatan/ mirror

pub repository

mirror.p-hatan.ir

pedantic

1.11.1

The Dart analyzer settings and best practices used internally at Google.

This package is discontinued upstream.

Download archive

Readme

Pub

This package is deprecated.

Before it was deprecated, it was the way to get analysis options matching those used internally at Google. This was useful because it was a good starting point for which lints to enable.

Instead, please see package:lints which is the lint recommendation from the Dart team, or package:flutter_lints which extends that for Flutter. These are better than the Google lint set because they take into account the needs of all Dart users, not just Google engineers.

To migrate away from package:pedantic please see the instructions here.

Changelog

1.11.1

  • Deprecated. Please use package:lints or package:flutter_lints instead.

1.11.0

1.10.0

  • Stable null safety release.

1.10.0-nullsafety.3

  • Update SDK constraints to >=2.12.0-0 <3.0.0 based on beta release guidelines.

1.10.0-nullsafety.2

  • Allow prerelease versions of the 2.12 sdk.

1.10.0-nullsafety.1

  • Allow 2.10 stable and 2.11.0 dev SDK versions.

1.10.0-nullsafety

  • Migrate to null safety.

1.9.2

Revert changes in 1.9.1 due to problems moving unawaited to meta.

1.9.1

package:meta is now the recommended place to get the unawaited method.

pedantic now exports that implementation, so the two are compatible. unawaited will be removed from pedantic in version 2.0.0.

1.9.0

1.8.0

1.7.0

  • Add versioned analysis_options.yaml files to the package so it's possible to pin to a version without also pinning the pub dependency. See README.md for updated usage guide.

1.6.0

1.5.0

1.4.0

  • Enforce avoid_init_to_null and null_closures.

1.3.0

  • Enforce prefer_is_empty.

1.2.0

  • Enforce unawaited_futures. Stop enforcing control_flow_in_finally and throw_in_finally.

1.1.0

  • Move analysis_options.yaml under lib so you can import it directly from your own analysis_options.yaml. See README.md for example.

1.0.0

  • Describe Dart static analysis use at Google in README.md.
  • Add sample analysis_options.yaml.
  • Add unawaited method for silencing the unawaited_futures lint.

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add pedantic
pubspec.yaml
name: pedantic
version: 1.11.1
description: >-
  The Dart analyzer settings and best practices used internally at Google.
homepage: https://github.com/google/pedantic

environment:
  sdk: ">=2.12.0-0 <3.0.0"

Version history

VersionPublishedArchiveSHA-256
1.0.02018-08-23T15:57:22.560591ZDownload3ad5fe0ef6d563b8481cade2a950e26aa346807ace6c75d01150b656da824402
1.1.02018-09-05T15:49:44.844341ZDownloaded55a1f08afd75832b930d368e7a1dec7d2abcc8afcdee4f70723dc9d6bc1967
1.2.02018-09-27T15:09:08.856274ZDownloadf3384a901d774c08f1d12293b127e03c27f26bb143476312b924a2789231b096
1.3.02018-10-19T14:30:07.339409ZDownload3664be0a2789c82cd37c53581e8702fe36af7429d51af83e185223dfe12ffc84
1.4.02018-12-07T14:49:34.470353ZDownloadac56aede34dd069a852f2f31e9fd2e4ed16eac643ba266e41029e974d45c57ed
1.5.02019-02-19T13:30:20.344635ZDownload7534894b517ca5035310f32dff91fd7c4fdf4abc75b0effebb0493eb35c0ce9f
1.6.02019-05-06T15:56:37.598549ZDownload557adc881dc2a82cda3654d8aeb04cddb4c9494e342e8da3403383dc1e92fba4
1.7.02019-05-09T12:39:53.180655ZDownload0558db0ce791d21f4f8ecbc2c18cd495b406c534ec21bbef7dfcd2c3debc6fde
1.8.02019-07-03T07:57:38.307521ZDownload5c6eff1393e28aa5a5a95cc94ee492387ea56152b6630ffc2f178c858ec7fd20
1.8.0+12019-07-03T08:50:22.826248ZDownload47dbb0d43378d6505c9863c4f7096a82b88efb0a5c948f937ca9f0c67f099da4
1.9.02019-12-05T15:34:23.560219ZDownloadbd877013a0ee53cd774e7b7f3ec1fbd44c94704ff36177f2f20e287228cbe2a2
1.9.12020-07-01T16:58:38.798083ZDownloadbebcc4e2d6f9f6ff39043dc991b5eb9639a048cc400af6b1ea894d4cae6c6a05
1.9.22020-07-09T15:39:46.964994ZDownloade1d7612702b705bba0ca871035b8cc9f2f23164fe81240b76b4eeef350e4f500
1.10.0-nullsafety2020-07-29T15:54:38.505313ZDownload799a5085e986b80965b6bfe0a7b45800e5207a62642b297ef8db8c3eb62da5fc
1.10.0-nullsafety.12020-09-22T16:01:19.476919ZDownload0951d64506536dd1bbf6161f338c8243a2cfa4de3905c8d9918e08717ff8339e
1.10.0-nullsafety.22020-10-23T20:05:46.157475ZDownloadc5dc2b099741ce55c3a4083afd2bc9556c523baa59446a28edb1fc01013b0add
1.10.0-nullsafety.32020-11-04T10:00:28.001300ZDownload55ea8314cd8fd4efca5ce156a67b28d6c16908af01adca9ebf1c8a0437e7be7e
1.10.02021-02-05T15:58:13.434760ZDownload207f9260c7a46946d09619b5ba1caf1fd50faf10fe3bae0176c626dceac5193d
1.11.02021-03-03T14:27:43.617646ZDownload8f6460c77a98ad2807cd3b98c67096db4286f56166852d0ce5951bb600a63594
1.11.12021-06-17T11:36:26.485322ZDownload67fc27ed9639506c856c840ccce7594d0bdcd91bc8d53d6e52359449a1d50602

Dependencies

No direct dependencies declared.