Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions UsfmScannerNet/Models/WACSMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ public class WACSMessage
public string? User { get; set; }
public string? Repo { get; set; }
public int RepoId { get; set; }
public string? LastCommitId { get; set; }
}
2 changes: 2 additions & 0 deletions UsfmScannerNet/Services/ScannerService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
private readonly IPythonEnvironment _pythonEnvironment;
private string _outputPrefix;

public ScannerService(IAzureClientFactory<BlobServiceClient> blobServiceClientFactory,

Check warning on line 38 in UsfmScannerNet/Services/ScannerService.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable field '_outputPrefix' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.

Check warning on line 38 in UsfmScannerNet/Services/ScannerService.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable field '_busProcessor' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
IAzureClientFactory<ServiceBusClient> serviceBusClientFactory, ILogger<ScannerService> logger,
IHttpClientFactory httpClientFactory, IPythonEnvironment pythonEnvironment, IConfiguration configuration)
{
Expand All @@ -44,7 +44,7 @@
_logger = logger;
_httpClient = httpClientFactory.CreateClient();
_pythonEnvironment = pythonEnvironment;
_outputPrefix = configuration.GetValue<string>("OutputPrefix");

Check warning on line 47 in UsfmScannerNet/Services/ScannerService.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference assignment.
}
public async Task StartAsync(CancellationToken cancellationToken)
{
Expand Down Expand Up @@ -102,7 +102,7 @@
if (File.Exists(Path.Join(firstFolder, "manifest.json")))
{
_logger.LogDebug("Found BTT Writer project, converting to USFM for scanning");
var bttWriterContainer = new FileSystemResourceContainer(firstFolder);

Check warning on line 105 in UsfmScannerNet/Services/ScannerService.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference argument for parameter 'directory' in 'FileSystemResourceContainer.FileSystemResourceContainer(string directory)'.
var document = BTTWriterLoader.CreateUSFMDocumentFromContainer(bttWriterContainer, false);
var manifest = BTTWriterLoader.GetManifest(bttWriterContainer);
var renderer = new USFMRenderer();
Expand Down Expand Up @@ -251,6 +251,7 @@
Repo = repo.Repo,
User = repo.User,
RepoId = repo.RepoId,
LastCommitId = repo.LastCommitId,

Check warning on line 254 in UsfmScannerNet/Services/ScannerService.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference assignment.
ResultsFileUrl = resultsUrl
};
var messageJson = JsonSerializer.Serialize(completedMessage);
Expand Down Expand Up @@ -279,5 +280,6 @@
public string? Repo { get; set; }
public string? User { get; set; }
public int RepoId { get; set; }
public string LastCommitId { get; set; }

Check warning on line 283 in UsfmScannerNet/Services/ScannerService.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'LastCommitId' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

Check warning on line 283 in UsfmScannerNet/Services/ScannerService.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'LastCommitId' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
public string? ResultsFileUrl { get; set; }
}
Loading