Skip to content

Commit 492877d

Browse files
author
Gilles Grousset
committed
feat(script): take PR32 in account for rules generation
1 parent 2ad5b93 commit 492877d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/updateDartAnalyzerRules.groovy

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,12 @@ def assignType(key) {
8282
}
8383

8484
if (grandParentNode.name.text() == 'Reliability') {
85-
return "BUG"
85+
86+
// See https://github.com/insideapp-oss/sonar-flutter/pull/32
87+
if (!ruleNode.name.text().startsWith('prefer_final')) {
88+
return "BUG"
89+
}
90+
8691
}
8792
}
8893

0 commit comments

Comments
 (0)