Enable rules for IDisposable and exceptions #1633
Annotations
10 warnings
build (windows-latest):
samples/MSAppGenerator/InteractiveGenerator.cs#L38
In member App InteractiveGenerator.GenerateApp(string filePath, int numScreens, IList<string>? controls), change parameter name filePath to appName in order to match the identifier as it has been declared in App IAppGenerator.GenerateApp(string appName, int numScreens = 1, IList<string>? controls = null) (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1725)
|
build (windows-latest):
samples/MSAppGenerator/AppGeneratorFactory.cs#L17
Method .ctor passes '_controlFactory' as the paramName argument to a ArgumentNullException constructor. Replace this argument with one of the method's parameter names. Note that the provided parameter name should have the exact casing as declared on the method. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2208)
|
build (windows-latest):
samples/MSAppGenerator/InteractiveGenerator.cs#L47
Specify a culture or use an invariant version to avoid implicit dependency on current culture (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1311)
|
build (windows-latest):
samples/MSAppGenerator/InteractiveGenerator.cs#L56
Specify a culture or use an invariant version to avoid implicit dependency on current culture (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1311)
|
build (windows-latest):
samples/MSAppGenerator/InteractiveGenerator.cs#L66
Specify a culture or use an invariant version to avoid implicit dependency on current culture (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1311)
|
build (windows-latest):
samples/MSAppGenerator/InteractiveGenerator.cs#L73
Specify a culture or use an invariant version to avoid implicit dependency on current culture (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1311)
|
build (windows-latest):
samples/MSAppGenerator/InteractiveGenerator.cs#L77
Specify a culture or use an invariant version to avoid implicit dependency on current culture (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1311)
|
build (windows-latest):
samples/MSAppGenerator/InteractiveGenerator.cs#L47
The behavior of 'string.ToLower()' could vary based on the current user's locale settings. Replace this call in 'InteractiveGenerator.GenerateApp(string, int, IList<string>)' with a call to 'string.ToLower(CultureInfo)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1304)
|
build (windows-latest):
samples/MSAppGenerator/InteractiveGenerator.cs#L56
The behavior of 'string.ToLower()' could vary based on the current user's locale settings. Replace this call in 'InteractiveGenerator.GenerateApp(string, int, IList<string>)' with a call to 'string.ToLower(CultureInfo)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1304)
|
build (windows-latest):
samples/MSAppGenerator/InteractiveGenerator.cs#L66
The behavior of 'string.ToLower()' could vary based on the current user's locale settings. Replace this call in 'InteractiveGenerator.GenerateApp(string, int, IList<string>)' with a call to 'string.ToLower(CultureInfo)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1304)
|