mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
temp send emails for long rules
This commit is contained in:
parent
271c306272
commit
4607ae6e91
1 changed files with 4 additions and 0 deletions
|
|
@ -114,7 +114,11 @@ private async Task<IEnumerable<string>> GetLines()
|
|||
{
|
||||
string line;
|
||||
while ((line = await streamReader.ReadLineAsync()) != null)
|
||||
{
|
||||
lines.AddIfNotNullOrEmpty(line.LintLine());
|
||||
if (line.Length >= 191)
|
||||
await emailService.SendEmailAsync("Long Line Possibly Truncated", line);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue