Modify Rule S3962: Update Dart description
This commit is contained in:
parent
63be5d2666
commit
e738a460ae
@ -1,3 +1,6 @@
|
||||
{
|
||||
"title": "\"static final\" declarations should be \"const\" instead"
|
||||
"title": "\"static final\" declarations should be \"const\" instead",
|
||||
"defaultQualityProfiles": [
|
||||
"Sonar way"
|
||||
]
|
||||
}
|
||||
|
@ -29,5 +29,21 @@ class MyClass {
|
||||
|
||||
== Resources
|
||||
|
||||
* https://dart.dev/tools/linter-rules/prefer_const_declarations[Dart Lint rule]
|
||||
* https://dart.dev/language/variables#final-and-const[Final and const]
|
||||
* Dart Docs - https://dart.dev/tools/linter-rules/prefer_const_declarations[Dart Linter rule - prefer_const_declarations]
|
||||
* Dart Docs - https://dart.dev/language/variables#final-and-const[Final and const]
|
||||
|
||||
ifdef::env-github,rspecator-view[]
|
||||
|
||||
'''
|
||||
== Implementation Specification
|
||||
(visible only on this page)
|
||||
|
||||
=== Message
|
||||
|
||||
Use 'const' for final variables initialized to a constant value.
|
||||
|
||||
=== Highlighting
|
||||
|
||||
declaration
|
||||
|
||||
endif::env-github,rspecator-view[]
|
||||
|
Loading…
x
Reference in New Issue
Block a user