Skip to content

Modify rule S7105: Fix ellipses escaping in rule description #4366

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 3, 2024
Merged
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
2 changes: 1 addition & 1 deletion rules/S7105/dart/rule.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
== Why is this an issue?

Nullability of types is an important part of Dart's type system. In order to simplify the work with nullable types in the Dart language there are many null-aware operators (`??`, `??=`, `?.`, `!`, `?..`, `?[]`, `...?`). Using those operators will make your code more clear and concise.
Nullability of types is an important part of Dart's type system. In order to simplify the work with nullable types in the Dart language there are many null-aware operators (`??`, `??=`, `?.`, `!`, `?..`, `?[]`, ``++...?++``). Using those operators will make your code more clear and concise.

The If-null operator (`??`), will check if the value on the left side is `null`, and, if yes, will return the expression on the right. This is an easy way to set default values instead of dealing with `null`. Thus, this operator doesn't make sense if used with `null` on either sides.

Expand Down