26 references to ErrorCode
Metrics (26)
Program.cs (26)
41private static async Task<ErrorCode> RunAsync(string[] args, CancellationToken cancellationToken)
52var errorCode = parseArguments();
53if (errorCode != ErrorCode.None)
62(ImmutableArray<(string, CodeAnalysisMetricData)> metricDatas, ErrorCode exitCode) = await GetMetricDatasAsync(projectsOrSolutions, quiet, cancellationToken).ConfigureAwait(false);
63if (exitCode != ErrorCode.None)
70if (!quiet && errorCode == ErrorCode.None)
77ErrorCode parseArguments()
165return ErrorCode.None;
168static ErrorCode usage()
189return ErrorCode.Usage;
192static ErrorCode fileNotExists(string path)
195return ErrorCode.FileNotExists;
198static ErrorCode requiresProjectOrSolution()
201return ErrorCode.RequiresProjectOrSolution;
204static ErrorCode notASolution(string path)
207return ErrorCode.NotASolution;
210static ErrorCode notASupportedProject(string path)
213return ErrorCode.NotASupportedProject;
216static ErrorCode invalidOutputFile(string path)
219return ErrorCode.InvalidOutputFile;
222async Task<ErrorCode> writeOutputAsync()
248return ErrorCode.None;
254return ErrorCode.WriteException;
264private static async Task<(ImmutableArray<(string, CodeAnalysisMetricData)>, ErrorCode)> GetMetricDatasAsync(List<string> projectsOrSolutions, bool quiet, CancellationToken cancellationToken)
287return (builder.ToImmutable(), ErrorCode.None);
293return (ImmutableArray<(string, CodeAnalysisMetricData)>.Empty, ErrorCode.ComputeException);