ca2254 is moronic. maybe if it wasn't filed under "code quality" and instead was filed under "you didn't include a workaround for the weaknesses of other external junk" i'd be kinder to it ;)

This commit is contained in:
Adam R Grey 2024-06-23 20:35:00 -04:00
parent 0ac28c35fb
commit af4d68caa1
2 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,7 @@ public class ChannelsController : ControllerBase
var fromDb = _db.Channels.Find(channel.Id); var fromDb = _db.Channels.Find(channel.Id);
if (fromDb == null) if (fromDb == null)
{ {
_logger.LogError($"attempt to update channel {channel.Id}, not found"); //ca2254 is moronic. maybe if it wasn't filed under "code quality" and instead was filed under "you didn't include a workaround for the weaknesses of other external junk" i'd be kinder to it ;) _logger.LogError($"attempt to update channel {channel.Id}, not found");
return NotFound(); return NotFound();
} }
//settable values: lewdness filter level, meanness filter level. maybe i could decorate them... //settable values: lewdness filter level, meanness filter level. maybe i could decorate them...

View File

@ -3,6 +3,7 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net7.0</TargetFramework> <TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<NoWarn>$(NoWarn);CA2254</NoWarn>
</PropertyGroup> </PropertyGroup>