Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

update lint file docs #88

Merged
merged 1 commit into from
Oct 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Dependabot configuration file.
version: 2

updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b

- name: Check for sources
run: |
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2.0.1

- Updated documentation for the `lib/core.yaml` and `lib/recommended.yaml`
analysis configurations.

## 2.0.0

- Added the following lints to core.yaml:
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[![pub package](https://img.shields.io/pub/v/lints.svg)](https://pub.dev/packages/lints)
[![Build Status](https://github.com/dart-lang/lints/workflows/validate/badge.svg)](https://github.com/dart-lang/lints/actions?query=branch%3Amain)
[![pub package](https://img.shields.io/pub/v/lints.svg)](https://pub.dev/packages/lints)
[![package publisher](https://img.shields.io/pub/publisher/lints.svg)](https://pub.dev/packages/lints/publisher)

# Official Dart lint rules

Expand Down
6 changes: 6 additions & 0 deletions lib/core.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This is a set of core lints used to identify critical issues. See
# https://github.com/dart-lang/lints for more information.
#
# For documentation about customizing static analysis for your project, see
# https://dart.dev/guides/language/analysis-options.

linter:
rules:
- avoid_empty_else
Expand Down
9 changes: 9 additions & 0 deletions lib/recommended.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# This set of lints builds on top of `package:lints/core.yaml`; it includes
# lints that help identify additional issues that may lead to problems when
# running or consuming Dart code, as well as lints that enforce writing Dart
# using a single, idiomatic style. See https://github.com/dart-lang/lints for
# more information.
#
# For documentation about customizing static analysis for your project, see
# https://dart.dev/guides/language/analysis-options.

include: package:lints/core.yaml

linter:
Expand Down
11 changes: 6 additions & 5 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: lints
description: Official Dart lint rules. Defines the 'core' and 'recommended' set of lints suggested by the Dart team.
homepage: https://github.com/dart-lang/lints
version: 2.0.1
description: >
Official Dart lint rules. Defines the 'core' and 'recommended' set of lints
suggested by the Dart team.
repository: https://github.com/dart-lang/lints
version: 2.0.0

environment:
sdk: '>=2.17.0-206.0.dev <3.0.0'
sdk: '>=2.17.0 <3.0.0'

# NOTE: Code is not allowed in this package. Do not add dependencies.
# dependencies:
# dev_dependencies:
# NOTE: Code is not allowed in this package. Do not add dependencies.