Skip to content

Commit

Permalink
feat: append new presset analysis_options.1.0.0.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
santitigaga committed Feb 8, 2024
1 parent 4387cb7 commit 251cace
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Changelog
## 1.1.2
- append new presset `analysis_options.1.0.0.yaml`
## 1.1.1
- Rename common rules to dart rules
## 1.1.0
Expand Down
82 changes: 82 additions & 0 deletions lib/presets/analysis_options.1.0.0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
dart_code_linter:
metrics:
cyclomatic-complexity: 40
maximum-nesting-level: 5
number-of-methods: 20
number-of-parameters: 10
source-lines-of-code: 400
metrics-exclude:
- test/**
rules:
- avoid-non-null-assertion
- avoid-dynamic
- avoid-returning-widgets:
ignored-names:
- testFunction
ignored-annotations:
- allowedAnnotation
- avoid-nested-conditional-expressions
- avoid-unnecessary-type-casts
- avoid-unnecessary-conditionals
- avoid-unused-parameters:
severity: none
- missing-test-assertion
- newline-before-return:
severity: none
- no-boolean-literal-compare
- no-empty-block
- no-equal-then-else
- no-magic-number
- prefer-trailing-comma:
severity: none
- prefer-conditional-expressions
- prefer-immediate-return
- prefer-moving-to-variable
- format-comment:
only-doc-comments: true
- member-ordering:
order:
- public-fields
- private-fields
- constructors
- close-method
- dispose-method
widgets-order:
- constructor
- build-method
- init-state-method
- did-change-dependencies-method
- did-update-widget-method
- dispose-method
- always-remove-listener
- avoid-unnecessary-setstate
- prefer-extracting-callbacks
- prefer-using-list-view
- avoid-ignoring-return-values:
severity: none
- avoid-passing-async-when-sync-expected:
exclude:
- test/**
- avoid-unnecessary-type-assertions
- avoid-unrelated-type-assertions
- double-literal-format
- prefer-async-await
- prefer-correct-identifier-length:
max-identifier-length: 35
min-identifier-length: 3
- prefer-correct-test-file-name
- prefer-correct-type-name:
min-length: 3
max-length: 35
- prefer-first
- prefer-last
- prefer-match-file-name:
exclude:
- test/**
- avoid-border-all
- avoid-expanded-as-spacer
- avoid-wrapping-in-padding

anti-patterns:
- long-method
- long-parameter-list
2 changes: 1 addition & 1 deletion lib/src/version.dart
Original file line number Diff line number Diff line change
@@ -1 +1 @@
const packageVersion = '1.1.1';
const packageVersion = '1.1.2';
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: dart_code_linter
version: 1.1.1
version: 1.1.2
description: Dart Code Linter is a software analytics tool that helps developers analyse and improve software quality. Dart Code Linter is based on a fork of Dart Code Metrics.
repository: https://github.com/bancolombia/dart-code-linter

Expand Down
4 changes: 2 additions & 2 deletions tools/analyzer_plugin/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: dart_code_linter_plugin_loader
description: This pubspec determines the version of the analyzer plugin to load.
version: 1.1.1
version: 1.1.2

environment:
sdk: ">=2.14.0 <3.0.0"

dependencies:
dart_code_linter: 1.1.1
dart_code_linter: 1.1.2

dev_dependencies:
lints: ^1.0.1

0 comments on commit 251cace

Please sign in to comment.