From 152a2d8c4742a95cbb57961b4ade6bb2a0b490df Mon Sep 17 00:00:00 2001 From: Antonio Aversa Date: Tue, 18 Mar 2025 17:53:08 +0100 Subject: [PATCH] DART-124 Modify rules S3512, S7066, S7107, S7109: Update message (#4798) --- rules/S3512/dart/rule.adoc | 2 +- rules/S7066/dart/rule.adoc | 2 +- rules/S7107/dart/rule.adoc | 6 +++--- rules/S7109/dart/rule.adoc | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rules/S3512/dart/rule.adoc b/rules/S3512/dart/rule.adoc index 23356112df..314c27bc95 100644 --- a/rules/S3512/dart/rule.adoc +++ b/rules/S3512/dart/rule.adoc @@ -68,7 +68,7 @@ Use interpolation to compose strings and values. The entire string concatenation expression, including the operands. -If a non-parenthesized sequence of concatenations is detected, a single issue is reported, either on the full concatenation or on part of it: e.g. in `'a' + s1 + 'a'`, `'a' + s1 + 'a'` is reported, whereas in `s1 + 'a' + s1` only `s1 + 'a'` is reported. +If a non-parenthesized sequence of concatenations is detected, a single issue is reported, on the first part of it: e.g. in `'a' + s1 + 'a'` and `s1 + 'a' + s1`, only `'a' + s1` and `s1 + 'a'` is reported, respectively. An exception is made for single string variables or literals in parentheses, where the outer concatenation is reported: e.g. in `'a' + (s1)`, the entire expression is reported. diff --git a/rules/S7066/dart/rule.adoc b/rules/S7066/dart/rule.adoc index 3d38b05873..f174d14469 100644 --- a/rules/S7066/dart/rule.adoc +++ b/rules/S7066/dart/rule.adoc @@ -41,7 +41,7 @@ ifdef::env-github,rspecator-view[] === Message -* This annotation must be attached to a library directive. +* This annotation should be attached to a library directive. === Highlighting diff --git a/rules/S7107/dart/rule.adoc b/rules/S7107/dart/rule.adoc index 5f1f89169f..b3f7bc3a1f 100644 --- a/rules/S7107/dart/rule.adoc +++ b/rules/S7107/dart/rule.adoc @@ -173,9 +173,9 @@ ifdef::env-github,rspecator-view[] === Message -* Convert '' to a super parameter. -* Convert '' and '' to super parameters. -* Convert '' (, '')+, and '' to super parameters. +* Parameters '' could be super parameter. +* Parameters '' and '' could be super parameters. +* Parameters '' (, '')+, and '' could be super parameters. === Highlighting diff --git a/rules/S7109/dart/rule.adoc b/rules/S7109/dart/rule.adoc index 82f115f2cf..441a04a10a 100644 --- a/rules/S7109/dart/rule.adoc +++ b/rules/S7109/dart/rule.adoc @@ -91,7 +91,7 @@ ifdef::env-github,rspecator-view[] === Message -Don't use web-only libraries outside Flutter web plugin packages. +Don't use web-only libraries outside Flutter web plugins. === Highlighting