fix: stop verify, reports and briefs from claiming more than pipe checked #1
3 changed files with 5 additions and 9 deletions
chore: apply dart format to the files this branch changed
The commits above were made without the pre-commit hook, which could not run dart at the time.
commit
10db6fbb57
|
|
@ -531,9 +531,7 @@ class VerifyCommand extends Command<int> {
|
|||
if (!baselineFile.existsSync()) {
|
||||
throw PipeException('baseline file not found: $baselinePath');
|
||||
}
|
||||
final entries = decodeBaselineEntries(
|
||||
_readText(baselinePath, 'baseline'),
|
||||
);
|
||||
final entries = decodeBaselineEntries(_readText(baselinePath, 'baseline'));
|
||||
final selected = _readRules(results);
|
||||
|
||||
final project = await loadProject(
|
||||
|
|
|
|||
|
|
@ -105,9 +105,7 @@ void main() {
|
|||
_copyTree(Directory(fixturePath), temp);
|
||||
for (final entity in Directory('${temp.path}/lib').listSync()) {
|
||||
if (entity is! File || !entity.path.endsWith('.dart')) continue;
|
||||
entity.writeAsStringSync(
|
||||
'// shifted\n' * 7 + entity.readAsStringSync(),
|
||||
);
|
||||
entity.writeAsStringSync('// shifted\n' * 7 + entity.readAsStringSync());
|
||||
}
|
||||
final shifted = await analyzeProject(
|
||||
await loadProject(temp.path),
|
||||
|
|
|
|||
|
|
@ -32,9 +32,9 @@ void main() {
|
|||
|
||||
final temp = Directory.systemTemp.createTempSync('pipe-excluded');
|
||||
_copyTree(Directory('test/fixtures/stuck_loading'), temp);
|
||||
File('${temp.path}/analysis_options.yaml').writeAsStringSync(
|
||||
'analyzer:\n exclude:\n - $excluded\n',
|
||||
);
|
||||
File(
|
||||
'${temp.path}/analysis_options.yaml',
|
||||
).writeAsStringSync('analyzer:\n exclude:\n - $excluded\n');
|
||||
|
||||
final analysis = await analyzeProject(
|
||||
await loadProject(temp.path),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue