Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Bod9001 committed Nov 12, 2023
1 parent e1d76db commit f34c07b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UnitystationLauncher/Services/CodeScanService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public int GetHashCode(FileInfo obj)
public async Task<bool> OnScan(ZipArchive archive, string targetDirectory, string goodFileVersion, Action<string> info, Action<string> errors)

Check warning on line 54 in UnitystationLauncher/Services/CodeScanService.cs

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

UnitystationLauncher/Services/CodeScanService.cs#L54

This method 'OnScan' has 111 lines, which is greater than the 80 lines authorized. Split it into smaller methods.
{
// TODO: Enable extraction cancelling
var root = new DirectoryInfo( _preferencesService.GetPreferences().InstallationPath);
var root = new DirectoryInfo(_preferencesService.GetPreferences().InstallationPath);

DirectoryInfo stagingDirectory = root.CreateSubdirectory("UnsafeBuildZipDirectory");
DirectoryInfo processingDirectory = root.CreateSubdirectory("UnsafeBuildProcessing");
Expand Down

0 comments on commit f34c07b

Please sign in to comment.