Skip to content

[BUGFIX] sonarcloud (Maintainability) Add a 'protected' constructor o… #196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 9, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@

namespace algorithm_exercises_csharp.hackerrank.interview_preparation_kit.dictionaries_and_hashmaps;

using System.Diagnostics.CodeAnalysis;
using System.Collections.Generic;

public class CountTriplets
{
[ExcludeFromCodeCoverage]
protected CountTriplets() { }

public static long countTriplets(List<long> arr, long r)
{
Dictionary<long, long> aCounter = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ namespace algorithm_exercises_csharp.hackerrank.interview_preparation_kit.dictio

public class CountTripletsBruteForce
{
[ExcludeFromCodeCoverage]
protected CountTripletsBruteForce() { }

public static long countTriplets(List<long> arr, long r)
{
long size = arr.Count;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ namespace algorithm_exercises_csharp.hackerrank.interview_preparation_kit.dictio

public class RansomNote
{
[ExcludeFromCodeCoverage]
protected RansomNote() { }

public class InvalidValueException : Exception
{
// constructor for the InvalidAgeException class
Expand All @@ -16,9 +19,6 @@ public InvalidValueException(string msg)
}
}

[ExcludeFromCodeCoverage]
protected RansomNote() { }

private static readonly string __YES__ = "Yes";
private static readonly string __NO__ = "No";

Expand Down