add analysis_options.yaml to dev/conductor (#90005)

This commit is contained in:
Christopher Fujino 2021-09-13 15:47:03 -07:00 committed by GitHub
parent fad5e4cf89
commit 576aab0833
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 2 deletions

View File

@ -0,0 +1,16 @@
# Use the analysis options settings from the top level of the repo (not
# the ones from above, which include the `public_member_api_docs` rule).
include: ../../analysis_options.yaml
analyzer:
exclude:
# Ignore protoc generated files
- "lib/proto/*"
linter:
rules:
avoid_catches_without_on_clauses: true
curly_braces_in_flow_control_structures: true
library_private_types_in_public_api: false # Tool does not have any public API
prefer_relative_imports: true
unawaited_futures: true

View File

@ -63,10 +63,12 @@ class Git {
} else { } else {
message.writeln('Command "git ${args.join(' ')}" failed to $explanation.'); message.writeln('Command "git ${args.join(' ')}" failed to $explanation.');
} }
if ((result.stdout as String).isNotEmpty) if ((result.stdout as String).isNotEmpty) {
message.writeln('stdout from git:\n${result.stdout}\n'); message.writeln('stdout from git:\n${result.stdout}\n');
if ((result.stderr as String).isNotEmpty) }
if ((result.stderr as String).isNotEmpty) {
message.writeln('stderr from git:\n${result.stderr}\n'); message.writeln('stderr from git:\n${result.stderr}\n');
}
throw GitException(message.toString()); throw GitException(message.toString());
} }
} }