NOX-1018 [Nox.Lib] Information Disclosure - Custom Error Responses (#… #3763
Annotations
10 errors and 11 warnings
Build, test and analyze:
src/Nox.Yaml/Serialization/VariablesDeserializer.cs#L7
Add a 'protected' constructor or the 'static' keyword to the class declaration. (https://rules.sonarsource.com/csharp/RSPEC-1118)
|
Build, test and analyze:
src/Nox.Yaml/Schema/Generator/SchemaGenerator.cs#L10
Define a constant instead of using this literal 'array' 4 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|
Build, test and analyze:
src/Nox.Yaml/Schema/Generator/SchemaProperty.cs#L338
Define a constant instead of using this literal 'string' 7 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|
Build, test and analyze:
src/Nox.Yaml/Constants/Constants.cs#L3
Add a 'protected' constructor or the 'static' keyword to the class declaration. (https://rules.sonarsource.com/csharp/RSPEC-1118)
|
Build, test and analyze:
src/Nox.Yaml/Exceptions/NoxYamlException.cs#L6
Make this exception 'public'. (https://rules.sonarsource.com/csharp/RSPEC-3871)
|
Build, test and analyze:
src/Nox.Yaml/Exceptions/NoxYamlException.cs#L18
Make sure not performing data validation after deserialization is safe here. (https://rules.sonarsource.com/csharp/RSPEC-5766)
|
Build, test and analyze:
src/Nox.Yaml/Exceptions/NoxYamlException.cs#L37
Make sure not performing data validation after deserialization is safe here. (https://rules.sonarsource.com/csharp/RSPEC-5766)
|
Build, test and analyze:
src/Nox.Yaml/Attributes/UniqueItemPropertiesAttribute.cs#L36
Use a StringBuilder instead. (https://rules.sonarsource.com/csharp/RSPEC-1643)
|
Build, test and analyze:
src/Nox.Yaml/Exceptions/NoxYamlException.cs#L26
Remove this empty statement. (https://rules.sonarsource.com/csharp/RSPEC-1116)
|
Build, test and analyze:
src/Nox.Yaml/Exceptions/NoxYamlException.cs#L45
Remove this empty statement. (https://rules.sonarsource.com/csharp/RSPEC-1116)
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-java@v3, actions/setup-dotnet@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Build, test and analyze:
src/Nox.Yaml/Schema/Generator/SchemaGenerator.cs#L10
Define a constant instead of using this literal 'array' 4 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|
Build, test and analyze:
src/Nox.Yaml/Serialization/VariablesDeserializer.cs#L7
Add a 'protected' constructor or the 'static' keyword to the class declaration. (https://rules.sonarsource.com/csharp/RSPEC-1118)
|
Build, test and analyze:
src/Nox.Yaml/Constants/Constants.cs#L3
Add a 'protected' constructor or the 'static' keyword to the class declaration. (https://rules.sonarsource.com/csharp/RSPEC-1118)
|
Build, test and analyze:
src/Nox.Yaml/Exceptions/NoxYamlException.cs#L6
Make this exception 'public'. (https://rules.sonarsource.com/csharp/RSPEC-3871)
|
Build, test and analyze:
src/Nox.Yaml/Exceptions/NoxYamlException.cs#L18
Make sure not performing data validation after deserialization is safe here. (https://rules.sonarsource.com/csharp/RSPEC-5766)
|
Build, test and analyze:
src/Nox.Yaml/Exceptions/NoxYamlException.cs#L37
Make sure not performing data validation after deserialization is safe here. (https://rules.sonarsource.com/csharp/RSPEC-5766)
|
Build, test and analyze:
src/Nox.Yaml/Attributes/ExistInCollectionAttribute.cs#L24
Indexing at Count-1 should be used instead of the "Enumerable" extension method "Last" (https://rules.sonarsource.com/csharp/RSPEC-6608)
|
Build, test and analyze:
src/Nox.Yaml/Attributes/ExistInCollectionAttribute.cs#L27
Refactor this method to reduce its Cognitive Complexity from 22 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
|
Build, test and analyze:
src/Nox.Yaml/Schema/Generator/SchemaProperty.cs#L338
Define a constant instead of using this literal 'string' 7 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|
Build, test and analyze:
src/Nox.Yaml/Attributes/ExistInCollectionAttribute.cs#L52
Indexing at Count-1 should be used instead of the "Enumerable" extension method "Last" (https://rules.sonarsource.com/csharp/RSPEC-6608)
|
Loading