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()
190return ErrorCode.Usage;
193static ErrorCode fileNotExists(string path)
196return ErrorCode.FileNotExists;
199static ErrorCode requiresProjectOrSolution()
202return ErrorCode.RequiresProjectOrSolution;
205static ErrorCode notASolution(string path)
208return ErrorCode.NotASolution;
211static ErrorCode notASupportedProject(string path)
214return ErrorCode.NotASupportedProject;
217static ErrorCode invalidOutputFile(string path)
220return ErrorCode.InvalidOutputFile;
223async Task<ErrorCode> writeOutputAsync()
249return ErrorCode.None;
255return ErrorCode.WriteException;
265private static async Task<(ImmutableArray<(string, CodeAnalysisMetricData)>, ErrorCode)> GetMetricDatasAsync(List<string> projectsOrSolutions, bool quiet, CancellationToken cancellationToken)
288return (builder.ToImmutable(), ErrorCode.None);
294return (ImmutableArray<(string, CodeAnalysisMetricData)>.Empty, ErrorCode.ComputeException);