Skip to content

Instantly share code, notes, and snippets.

@KKimj
KKimj / analysis_options.yaml
Created April 13, 2023 07:08 — forked from rydmike/analysis_options.yaml
RydMike lints v2.0.0 - Personal preferences and my starting point for my Dart & Flutter linter rules setup
# RydMike LINTER Preferences v2.0.0
#
# Get this file here: https://gist.github.com/rydmike/fdb53ddd933c37d20e6f3188a936cd4c
#
# We include and activate all lint rules, later below we disable the not used or desired ones.
# You can find a list of all lint rules to put in your all_lint_rules.yaml file here:
# https://dart-lang.github.io/linter/lints/options/options.html
#
# For a full comparison of all lint rules settings in rule styles listed below, please see this
# sheet: https://docs.google.com/spreadsheets/d/1Nc1gFjmCOMubWZD7f2E4fLhWN7LYaOE__tsA7bf2NjA
@KKimj
KKimj / analysis_options.yaml
Last active February 28, 2024 07:19 — forked from rydmike/analysis_options.yaml
KKimj lints v0.0.1-dev.2 Reference from RydMike lints
# v0.0.1-dev.2
# REF: RydMike https://gist.github.com/rydmike/fdb53ddd933c37d20e6f3188a936cd4c
include: all_lint_rules.yaml
analyzer:
exclude:
- "**/*.freezed.dart"
- "**/*.g.dart"
- "bin/cache/**"
- "lib/generated_plugin_registrant.dart"
linter:
rules:
- always_declare_return_types
- always_put_control_body_on_new_line
- always_put_required_named_parameters_first
- always_specify_types
- always_use_package_imports
- annotate_overrides
- annotate_redeclares
- avoid_annotating_with_dynamic