Skip to content

Commit

Permalink
Disable document_ignores (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
passsy authored Feb 23, 2025
1 parent 3e2ea36 commit 26031eb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.6.2

- Disable [`document_ignores`](https://dart.dev/tools/linter-rules/document_ignores.html) due to unnecessary verbosity

## 2.6.1

Requires Dart `sdk: '>=3.5.0'`
Expand Down
14 changes: 12 additions & 2 deletions lib/strict.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -427,12 +427,22 @@ linter:
# https://dart.dev/tools/linter-rules/do_not_use_environment
# - do_not_use_environment

# Ensures that ignore comments are properly documented with a reason
# The reason for the ignore is usually self-evident and an additional comment would add unnecessary verbosity.
# Also, when temporarily ignoring rules for debugging or development purposes, having to add documentation creates unnecessary overhead
#
# Example where it is annoying:
#
# ```dart
# } catch (e, stack) {
# // ignore: avoid_print
# print(stack);
# }
# ```
#
# Dart SDK: >= 3.5.0
#
# https://dart.dev/tools/linter-rules/document_ignores
- document_ignores
# - document_ignores

# Add a comment why no further error handling is required
#
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: lint
version: 2.6.1
version: 2.6.2
description: An opinionated, community-driven set of lint rules for Dart and Flutter projects. Like pedantic but stricter
repository: https://github.com/passsy/dart-lint
issue_tracker: https://github.com/passsy/dart-lint/issues
Expand Down

0 comments on commit 26031eb

Please sign in to comment.