Skip to content
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
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@

All notable changes to the `theodo_analysis` package will be documented in this file.

## 1.7.0

- feat: Upgrade dcm to 1.32.0 and add news rules

## 1.6.0

- feat: Upgrade dcm to 1.31.0 and add news rules


## 1.5.0

- feat: Enable DCM rules for test folder
Expand Down
1 change: 1 addition & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include: package:theodo_analysis/analysis_options.yaml
14 changes: 12 additions & 2 deletions lib/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,12 @@ dart_code_metrics:
- '**/*.graphql.dart'

rules:
- avoid-unremovable-callbacks-in-listeners
- avoid-constant-switches
- avoid-constant-conditions
- match-base-class-default-value
- avoid-unused-local-variable
- prefer-equatable-mixin
- avoid-unnecessary-local-variable
- avoid-unnecessary-late-fields
- avoid-unnecessary-nullable-parameters
Expand All @@ -262,7 +268,6 @@ dart_code_metrics:
- avoid-public-notifier-properties
- avoid-ref-inside-state-dispose
- avoid-nullable-async-value-pattern
- avoid-unnecessary-null-checks
- prefer-pushing-conditional-expressions
- avoid-suspicious-global-reference
- pass-correct-accepted-type
Expand All @@ -271,7 +276,6 @@ dart_code_metrics:
- prefer-specifying-future-value-type
- avoid-stream-tostring
- prefer-null-aware-elements
- prefer-null-aware-elements
- avoid-unnecessary-null-aware-elements
- prefer-single-setstate
- avoid-mounted-in-setstate
Expand Down Expand Up @@ -510,3 +514,9 @@ dart_code_metrics:
ignored-invocations:
- print
- debugPrint

pubspec-rules:
- dependencies-ordering
- newline-before-pubspec-entry
- pubspec-ordering
- prefer-correct-topics
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: theodo_analysis
description: Lint and dcm rules for Dart and Flutter used internally at Theodo Apps.
version: 1.7.0
homepage: https://github.com/bamlab/theodo_analysis
repository: https://github.com/bamlab/theodo_analysis
version: 1.6.0

environment:
sdk: '>=3.0.0 <4.0.0'
Expand Down
Loading