コード例 #1
0
 public void WarnLine(IcoErrorCode code, string message, string fileName, uint frameNumber)
 {
     if (WarningsToIgnore.Contains(code))
     {
         return;
     }
     Reporter.Output.WriteLine($"{fileName}({frameNumber + 1}): Warning{GenerateCode(code)}: {message}".Yellow());
     NumberOfWarnings += 1;
 }
コード例 #2
0
 public void WarnLine(IcoErrorCode code, string message)
 {
     if (WarningsToIgnore.Contains(code))
     {
         return;
     }
     Reporter.Output.WriteLine($"Warning{GenerateCode(code)}: {message}".Yellow());
     NumberOfWarnings += 1;
 }
コード例 #3
0
 public void ErrorLine(IcoErrorCode code, string message)
 {
     if (WarningsToIgnore.Contains(code))
     {
         return;
     }
     Reporter.Error.WriteLine($"Error{GenerateCode(code)}: {message}".Red());
     NumberOfErrors += 1;
 }
コード例 #4
0
 public void ErrorLine(IcoErrorCode code, string message, string fileName, uint frameNumber)
 {
     if (WarningsToIgnore.Contains(code))
     {
         return;
     }
     Reporter.Error.WriteLine($"{fileName}({frameNumber + 1}): Error{GenerateCode(code)}: {message}".Red());
     NumberOfErrors += 1;
 }
コード例 #5
0
ファイル: NuixErrorHandler.cs プロジェクト: reductech/Nuix
        /// <inheritdoc />
        public bool ShouldIgnoreError(string s)
        {
            if (WarningsToIgnore.Any(s.Contains))
            {
                return(true);
            }

            return(false);
        }