Skip to content

feat(lints): Update linter/style preferences#402

Merged
dnys1 merged 1 commit intomainfrom
05-09-feat_lints_update_linter_style_preferences
May 9, 2025
Merged

feat(lints): Update linter/style preferences#402
dnys1 merged 1 commit intomainfrom
05-09-feat_lints_update_linter_style_preferences

Conversation

@dnys1
Copy link
Member

@dnys1 dnys1 commented May 9, 2025

The main change is experimenting with replacing omit_local_variable_types with omit_obvious_local_variable_types and specify_nonobvious_local_variable_types. This change should help improve the readability of code (especially for outside contributors) while not being as verbose as always_specify_types.

All changes:

  • Update license
  • Bump min Dart SDK version to 3.7.
  • Add annotate_redeclares rule
  • Add invalid_runtime_check_with_js_interop_types rule
  • Add missing_code_block_language_in_doc_comment rule
  • Replace omit_local_variable_types with omit_obvious_local_variable_types and specify_nonobvious_local_variable_types rules
  • Add unsafe_variance rule
  • Add use_truncating_division rule
  • Remove package_api_docs rule (removed in Dart 3.7).

The main change is experimenting with replacing `omit_local_variable_types` with `omit_obvious_local_variable_types` and `specify_nonobvious_local_variable_types`. This change should help improve the readability of code (especially for outside contributors) while not being as verbose as `always_specify_types`.

All changes:
- Update license
- Bump min Dart SDK version to 3.7.
- Add `annotate_redeclares` rule
- Add `invalid_runtime_check_with_js_interop_types` rule
- Add `missing_code_block_language_in_doc_comment` rule
- Replace `omit_local_variable_types` with `omit_obvious_local_variable_types` and `specify_nonobvious_local_variable_types` rules
- Add `unsafe_variance` rule
- Add `use_truncating_division` rule
- Remove `package_api_docs` rule (removed in Dart 3.7).
Copy link
Member Author

dnys1 commented May 9, 2025

Merge activity

  • May 9, 11:22 AM PDT: A user started a stack merge that includes this pull request via Graphite.
  • May 9, 11:23 AM PDT: @dnys1 merged this pull request with Graphite.

@dnys1 dnys1 merged commit 0d9cc74 into main May 9, 2025
4 checks passed
@dnys1 dnys1 deleted the 05-09-feat_lints_update_linter_style_preferences branch May 9, 2025 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant