Skip to content

Commit

Permalink
update lint files docs (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
devoncarew committed Oct 20, 2022
1 parent 8294e56 commit 0fae4ee
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yaml
@@ -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
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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.

0 comments on commit 0fae4ee

Please sign in to comment.