Deployment v1

This commit is contained in:
Simon Martens
2023-09-12 01:59:52 +02:00
parent 4cdd59cf89
commit 2c88f22f8e
40 changed files with 1093 additions and 39129 deletions

View File

@@ -2,10 +2,12 @@ namespace HaWeb.Models;
public class SyntaxCheckModel {
public string File { get; private set; }
public string Commit { get; private set; }
public List<SyntaxError>? Errors { get; private set; }
public SyntaxCheckModel(string file) {
public SyntaxCheckModel(string file, string commithash) {
File = file;
Commit = commithash;
}
public void Log(int? line, int? column, string msg) {
@@ -15,6 +17,11 @@ public class SyntaxCheckModel {
Errors.Add(new SyntaxError(line, column, msg));
}
public void SortErrors() {
if (Errors != null)
Errors = Errors.OrderBy(x => x.Line).ToList();
}
public void ResetLog() {
Errors = null;
}