fix(guide,suggest): word agent guidance no stronger than the evidence #2
2 changed files with 3 additions and 8 deletions
chore: apply dart format to the files this branch changed
commit
6ac40b04c4
|
|
@ -446,13 +446,7 @@ Guidance buildGuidance({
|
||||||
for (var i = 0; i < groups.length; i++) {
|
for (var i = 0; i < groups.length; i++) {
|
||||||
final block = selected.length >= maxFindings
|
final block = selected.length >= maxFindings
|
||||||
? null
|
? null
|
||||||
: _groupBlock(
|
: _groupBlock(groups[i], selected.length + 1, policy, scope, verifyFor);
|
||||||
groups[i],
|
|
||||||
selected.length + 1,
|
|
||||||
policy,
|
|
||||||
scope,
|
|
||||||
verifyFor,
|
|
||||||
);
|
|
||||||
if (block == null ||
|
if (block == null ||
|
||||||
runningLength + block.length + noteReserve > budgetChars) {
|
runningLength + block.length + noteReserve > budgetChars) {
|
||||||
// Stop at the first entry that does not fit. Skipping it and packing the
|
// Stop at the first entry that does not fit. Skipping it and packing the
|
||||||
|
|
|
||||||
|
|
@ -383,7 +383,8 @@ String _actionOf(List<Finding> group, List<String> targets, FixPolicy policy) {
|
||||||
'Removing the branches that match them needs explicit approval.'
|
'Removing the branches that match them needs explicit approval.'
|
||||||
: 'Remove the branch matching each of $list, or emit it from '
|
: 'Remove the branch matching each of $list, or emit it from '
|
||||||
'$ownerName if the UI is right.',
|
'$ownerName if the UI is right.',
|
||||||
_ => '${ruleFixFor(policy)[head.rule] ?? single} Applies to each of: $list.',
|
_ =>
|
||||||
|
'${ruleFixFor(policy)[head.rule] ?? single} Applies to each of: $list.',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue