Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .globalconfig

This file was deleted.

13 changes: 13 additions & 0 deletions src/DemaConsulting.ReqStream/Requirements.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

using System.Diagnostics.CodeAnalysis;
using YamlDotNet.Serialization;
using YamlDotNet.Serialization.NamingConventions;

Expand Down Expand Up @@ -134,7 +135,7 @@
/// Reads and processes a YAML file, including any referenced include files.
/// </summary>
/// <param name="path">The path to the YAML file to read.</param>
private void ReadFile(string path)

Check warning on line 138 in src/DemaConsulting.ReqStream/Requirements.cs

View workflow job for this annotation

GitHub Actions / Build Windows / build

Refactor this method to reduce its Cognitive Complexity from 24 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)

Check warning on line 138 in src/DemaConsulting.ReqStream/Requirements.cs

View workflow job for this annotation

GitHub Actions / Build Windows / build

Refactor this method to reduce its Cognitive Complexity from 24 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)

Check warning on line 138 in src/DemaConsulting.ReqStream/Requirements.cs

View workflow job for this annotation

GitHub Actions / Build Windows / build

Refactor this method to reduce its Cognitive Complexity from 24 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)

Check warning on line 138 in src/DemaConsulting.ReqStream/Requirements.cs

View workflow job for this annotation

GitHub Actions / Build Linux / build

Refactor this method to reduce its Cognitive Complexity from 24 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)

Check warning on line 138 in src/DemaConsulting.ReqStream/Requirements.cs

View workflow job for this annotation

GitHub Actions / Build Linux / build

Refactor this method to reduce its Cognitive Complexity from 24 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)

Check warning on line 138 in src/DemaConsulting.ReqStream/Requirements.cs

View workflow job for this annotation

GitHub Actions / Build Linux / build

Refactor this method to reduce its Cognitive Complexity from 24 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)

Check warning on line 138 in src/DemaConsulting.ReqStream/Requirements.cs

View workflow job for this annotation

GitHub Actions / Build Linux / build

Refactor this method to reduce its Cognitive Complexity from 24 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
{
// Convert to full path and check if already included to prevent loops
var fullPath = Path.GetFullPath(path);
Expand Down Expand Up @@ -232,7 +233,7 @@
/// <param name="target">The target section to merge into.</param>
/// <param name="source">The source YAML section to merge from.</param>
/// <param name="filePath">The path to the file being processed for error messages.</param>
private void MergeSection(Section target, YamlSection source, string filePath)

Check warning on line 236 in src/DemaConsulting.ReqStream/Requirements.cs

View workflow job for this annotation

GitHub Actions / Build Windows / build

Refactor this method to reduce its Cognitive Complexity from 28 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)

Check warning on line 236 in src/DemaConsulting.ReqStream/Requirements.cs

View workflow job for this annotation

GitHub Actions / Build Windows / build

Refactor this method to reduce its Cognitive Complexity from 28 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)

Check warning on line 236 in src/DemaConsulting.ReqStream/Requirements.cs

View workflow job for this annotation

GitHub Actions / Build Windows / build

Refactor this method to reduce its Cognitive Complexity from 28 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)

Check warning on line 236 in src/DemaConsulting.ReqStream/Requirements.cs

View workflow job for this annotation

GitHub Actions / Build Linux / build

Refactor this method to reduce its Cognitive Complexity from 28 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)

Check warning on line 236 in src/DemaConsulting.ReqStream/Requirements.cs

View workflow job for this annotation

GitHub Actions / Build Linux / build

Refactor this method to reduce its Cognitive Complexity from 28 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)

Check warning on line 236 in src/DemaConsulting.ReqStream/Requirements.cs

View workflow job for this annotation

GitHub Actions / Build Linux / build

Refactor this method to reduce its Cognitive Complexity from 28 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
{
// Validate section title is not blank
if (string.IsNullOrWhiteSpace(source.Title))
Expand Down Expand Up @@ -322,6 +323,9 @@
/// <summary>
/// Internal class for deserializing the YAML document structure.
/// </summary>
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)]
[SuppressMessage("SonarAnalyzer.CSharp", "S3459:Unassigned members should be removed", Justification = "Properties are set by YamlDotNet deserializer via reflection")]
[SuppressMessage("SonarAnalyzer.CSharp", "S1144:Unused private types or members should be removed", Justification = "Properties are accessed by YamlDotNet deserializer via reflection")]
private sealed class YamlDocument
{
/// <summary>
Expand All @@ -343,6 +347,9 @@
/// <summary>
/// Internal class for deserializing a YAML section.
/// </summary>
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)]
[SuppressMessage("SonarAnalyzer.CSharp", "S3459:Unassigned members should be removed", Justification = "Properties are set by YamlDotNet deserializer via reflection")]
[SuppressMessage("SonarAnalyzer.CSharp", "S1144:Unused private types or members should be removed", Justification = "Properties are accessed by YamlDotNet deserializer via reflection")]
private sealed class YamlSection
{
/// <summary>
Expand All @@ -364,6 +371,9 @@
/// <summary>
/// Internal class for deserializing a YAML requirement.
/// </summary>
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)]
[SuppressMessage("SonarAnalyzer.CSharp", "S3459:Unassigned members should be removed", Justification = "Properties are set by YamlDotNet deserializer via reflection")]
[SuppressMessage("SonarAnalyzer.CSharp", "S1144:Unused private types or members should be removed", Justification = "Properties are accessed by YamlDotNet deserializer via reflection")]
private sealed class YamlRequirement
{
/// <summary>
Expand All @@ -390,6 +400,9 @@
/// <summary>
/// Internal class for deserializing a YAML test mapping.
/// </summary>
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)]
[SuppressMessage("SonarAnalyzer.CSharp", "S3459:Unassigned members should be removed", Justification = "Properties are set by YamlDotNet deserializer via reflection")]
[SuppressMessage("SonarAnalyzer.CSharp", "S1144:Unused private types or members should be removed", Justification = "Properties are accessed by YamlDotNet deserializer via reflection")]
private sealed class YamlMapping
{
/// <summary>
Expand Down
Loading