Modify rule S6619: Add Dart language (#4154)

This commit is contained in:
Antonio Aversa 2024-08-16 11:07:58 +02:00 committed by GitHub
parent 8291066716
commit e1ba8e5cdf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,6 @@ class A {
=== Code examples === Code examples
==== Noncompliant code example ==== Noncompliant code example
[source,dart,diff-id=1,diff-type=noncompliant] [source,dart,diff-id=1,diff-type=noncompliant]
@ -54,4 +53,27 @@ class A {
== Resources == Resources
* https://dart.dev/tools/linter-rules/avoid_null_checks_in_equality_operators[Dart Lint rule] === Documentation
* Dart Docs - https://dart.dev/tools/linter-rules/avoid_null_checks_in_equality_operators[Dart Linter rule - avoid_null_checks_in_equality_operators]
* Dart Docs - https://dart.dev/null-safety/understanding-null-safety[Dart Null Safety - Understanding null safety]
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
Unnecessary null comparison in implementation of '=='.
=== Highlighting
The entire null comparison expression, e.g. `o == null` or `o != null`.
'''
== Comments And Links
(visible only on this page)
endif::env-github,rspecator-view[]