Exemplo n.º 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;
 }
Exemplo n.º 2
0
 public void WarnLine(IcoErrorCode code, string message)
 {
     if (WarningsToIgnore.Contains(code))
     {
         return;
     }
     Reporter.Output.WriteLine($"Warning{GenerateCode(code)}: {message}".Yellow());
     NumberOfWarnings += 1;
 }
Exemplo n.º 3
0
 public void ErrorLine(IcoErrorCode code, string message)
 {
     if (WarningsToIgnore.Contains(code))
     {
         return;
     }
     Reporter.Error.WriteLine($"Error{GenerateCode(code)}: {message}".Red());
     NumberOfErrors += 1;
 }
Exemplo n.º 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;
 }
Exemplo n.º 5
0
        /// <inheritdoc />
        public bool ShouldIgnoreError(string s)
        {
            if (WarningsToIgnore.Any(s.Contains))
            {
                return(true);
            }

            return(false);
        }