Enforce NuGet warnings as errors; refactor field access
Added "allWarningsAsErrors": true to NuGet config files across the solution to treat all warnings as errors, increasing build strictness. Updated project cache hashes and assembly info files to reflect these changes. Refactored C# code to use explicit `this.` for field and property assignments, improving clarity. Note: some method signatures were incorrectly changed to use `this.` as a prefix, which is invalid C# syntax and must be corrected before compiling. Binary files updated due to build changes.
This commit is contained in:
@@ -74,10 +74,10 @@ namespace Emby.Naming.Video
|
||||
return null;
|
||||
}
|
||||
|
||||
isStub = true;
|
||||
this.isStub = true;
|
||||
}
|
||||
|
||||
container = extension.TrimStart('.');
|
||||
this.container = extension.TrimStart('.');
|
||||
}
|
||||
|
||||
var format3DResult = Format3DParser.Parse(path, namingOptions);
|
||||
@@ -91,12 +91,12 @@ namespace Emby.Naming.Video
|
||||
if (parseName)
|
||||
{
|
||||
var cleanDateTimeResult = CleanDateTime(name, namingOptions);
|
||||
name = cleanDateTimeResult.Name;
|
||||
year = cleanDateTimeResult.Year;
|
||||
this.name = cleanDateTimeResult.Name;
|
||||
this.year = cleanDateTimeResult.Year;
|
||||
|
||||
if (TryCleanString(name, namingOptions, out var newName))
|
||||
{
|
||||
name = newName;
|
||||
this.name = newName;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user