Feature/refactor #4
Annotations
80 warnings
Run Tests (macos-14, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/TwoDArray.cs#L31
In externally visible method 'int TwoDArray.hourglassSum(List<List<int>> arr)', validate parameter 'arr' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (macos-14, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L17
In externally visible method 'void LinkedList<T>.printSinglyLinkedList(Node? node, string sep, TextWriter textWriter)', validate parameter 'textWriter' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (macos-14, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/CrushBruteForce.cs#L20
In externally visible method 'long CrushBruteForce.arrayManipulation(int n, List<List<int>> queries)', validate parameter 'queries' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (macos-14, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L11
Do not declare static members on generic types (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1000)
|
Run Tests (macos-14, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/CrushOptimized.cs#L22
In externally visible method 'long CrushOptimized.arrayManipulation(int n, List<List<int>> queries)', validate parameter 'queries' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (macos-14, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/ArraysLeftRotation.cs#L29
In externally visible method 'List<int> ArraysLeftRotation.rotLeft(List<int> input, int d)', validate parameter 'input' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (macos-14, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/TwoStrings.cs#L15
'string.Contains(char)' has a method overload that takes a 'StringComparison' parameter. Replace this call in 'algorithm_exercises_csharp.hackerrank.interview_preparation_kit.dictionaries_and_hashmaps.TwoStrings.twoStringsCompute(string, string)' with a call to 'string.Contains(char, System.StringComparison)' for clarity of intent. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1307)
|
Run Tests (macos-14, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/ArraysLeftRotation.cs#L16
In externally visible method 'List<int> ArraysLeftRotation.rotLeftOne(List<int> input)', validate parameter 'input' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (macos-14, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L8
Member 'next' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
|
Run Tests (macos-14, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L1
Rename namespace algorithm_exercises_csharp.hackerrank.interview_preparation_kit.linked_list.lib so that it no longer conflicts with the reserved language keyword 'Lib'. Using a reserved keyword as the name of a namespace makes it harder for consumers in other languages to use the namespace. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1716)
|
Run Tests (ubuntu-24.04, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/CrushBruteForce.cs#L20
In externally visible method 'long CrushBruteForce.arrayManipulation(int n, List<List<int>> queries)', validate parameter 'queries' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (ubuntu-24.04, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/NewYearChaos.cs#L55
The behavior of 'string.Format(string, params object[])' could vary based on the current user's locale settings. Replace this call in 'NewYearChaos.minimumBribesText(List<int>)' with a call to 'string.Format(IFormatProvider, string, params object[])'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1305)
|
Run Tests (ubuntu-24.04, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/NewYearChaos.cs#L51
The behavior of 'string.Format(string, object)' could vary based on the current user's locale settings. Replace this call in 'NewYearChaos.minimumBribesText(List<int>)' with a call to 'string.Format(IFormatProvider, string, params object[])'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1305)
|
Run Tests (ubuntu-24.04, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/CrushOptimized.cs#L22
In externally visible method 'long CrushOptimized.arrayManipulation(int n, List<List<int>> queries)', validate parameter 'queries' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (ubuntu-24.04, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/CountTripletsBruteForce.cs#L12
In externally visible method 'long CountTripletsBruteForce.countTriplets(List<long> arr, long r)', validate parameter 'arr' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (ubuntu-24.04, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/ArraysLeftRotation.cs#L29
In externally visible method 'List<int> ArraysLeftRotation.rotLeft(List<int> input, int d)', validate parameter 'input' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (ubuntu-24.04, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/TwoStrings.cs#L15
'string.Contains(char)' has a method overload that takes a 'StringComparison' parameter. Replace this call in 'algorithm_exercises_csharp.hackerrank.interview_preparation_kit.dictionaries_and_hashmaps.TwoStrings.twoStringsCompute(string, string)' with a call to 'string.Contains(char, System.StringComparison)' for clarity of intent. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1307)
|
Run Tests (ubuntu-24.04, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/ArraysLeftRotation.cs#L16
In externally visible method 'List<int> ArraysLeftRotation.rotLeftOne(List<int> input)', validate parameter 'input' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (ubuntu-24.04, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L8
Member 'next' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
|
Run Tests (ubuntu-24.04, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L1
Rename namespace algorithm_exercises_csharp.hackerrank.interview_preparation_kit.linked_list.lib so that it no longer conflicts with the reserved language keyword 'Lib'. Using a reserved keyword as the name of a namespace makes it harder for consumers in other languages to use the namespace. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1716)
|
Run Tests (macos-14, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L11
Do not declare static members on generic types (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1000)
|
Run Tests (macos-14, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/greedy_algorithms/MinimumAbsoluteDifferenceInAnArray.cs#L14
In externally visible method 'int MinimumAbsoluteDifferenceInAnArray.minimumAbsoluteDifference(List<int> arr)', validate parameter 'arr' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (macos-14, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/ArraysLeftRotation.cs#L16
In externally visible method 'List<int> ArraysLeftRotation.rotLeftOne(List<int> input)', validate parameter 'input' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (macos-14, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/TwoStrings.cs#L15
'string.Contains(char)' has a method overload that takes a 'StringComparison' parameter. Replace this call in 'algorithm_exercises_csharp.hackerrank.interview_preparation_kit.dictionaries_and_hashmaps.TwoStrings.twoStringsCompute(string, string)' with a call to 'string.Contains(char, System.StringComparison)' for clarity of intent. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1307)
|
Run Tests (macos-14, 8.x):
src/algorithm_exercises_csharp/hackerrank/warmup/DiagonalDifference.cs#L13
In externally visible method 'int DiagonalDifference.diagonalDifference(List<List<int>> _arr)', validate parameter '_arr' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (macos-14, 8.x):
src/algorithm_exercises_csharp/hackerrank/warmup/BirthdayCakeCandles.cs#L11
In externally visible method 'int BirthdayCakeCandles.birthdayCakeCandles(List<int> _arr)', validate parameter '_arr' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (macos-14, 8.x):
src/algorithm_exercises_csharp/hackerrank/warmup/CompareTriplets.cs#L13
In externally visible method 'List<int> CompareTriplets.compareTriplets(List<int> _a, List<int> _b)', validate parameter '_a' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (macos-14, 8.x):
src/algorithm_exercises_csharp/hackerrank/warmup/CompareTriplets.cs#L15
In externally visible method 'List<int> CompareTriplets.compareTriplets(List<int> _a, List<int> _b)', validate parameter '_b' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (macos-14, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L8
Member 'next' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
|
Run Tests (macos-14, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L1
Rename namespace algorithm_exercises_csharp.hackerrank.interview_preparation_kit.linked_list.lib so that it no longer conflicts with the reserved language keyword 'Lib'. Using a reserved keyword as the name of a namespace makes it harder for consumers in other languages to use the namespace. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1716)
|
Run Tests (ubuntu-24.04, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/RansomNote.cs#L53
Modify 'checkMagazineCompute' to catch a more specific allowed exception type, or rethrow the exception (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1031)
|
Run Tests (ubuntu-24.04, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L11
Do not declare static members on generic types (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1000)
|
Run Tests (ubuntu-24.04, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/CountTriplets.cs#L18
In externally visible method 'long CountTriplets.countTriplets(List<long> arr, long r)', validate parameter 'arr' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (ubuntu-24.04, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/CountTripletsBruteForce.cs#L12
In externally visible method 'long CountTripletsBruteForce.countTriplets(List<long> arr, long r)', validate parameter 'arr' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (ubuntu-24.04, 8.x):
src/algorithm_exercises_csharp/hackerrank/warmup/BirthdayCakeCandles.cs#L11
In externally visible method 'int BirthdayCakeCandles.birthdayCakeCandles(List<int> _arr)', validate parameter '_arr' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (ubuntu-24.04, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/ArraysLeftRotation.cs#L29
In externally visible method 'List<int> ArraysLeftRotation.rotLeft(List<int> input, int d)', validate parameter 'input' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (ubuntu-24.04, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/TwoStrings.cs#L15
'string.Contains(char)' has a method overload that takes a 'StringComparison' parameter. Replace this call in 'algorithm_exercises_csharp.hackerrank.interview_preparation_kit.dictionaries_and_hashmaps.TwoStrings.twoStringsCompute(string, string)' with a call to 'string.Contains(char, System.StringComparison)' for clarity of intent. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1307)
|
Run Tests (ubuntu-24.04, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/ArraysLeftRotation.cs#L16
In externally visible method 'List<int> ArraysLeftRotation.rotLeftOne(List<int> input)', validate parameter 'input' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (ubuntu-24.04, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L8
Member 'next' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
|
Run Tests (ubuntu-24.04, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L1
Rename namespace algorithm_exercises_csharp.hackerrank.interview_preparation_kit.linked_list.lib so that it no longer conflicts with the reserved language keyword 'Lib'. Using a reserved keyword as the name of a namespace makes it harder for consumers in other languages to use the namespace. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1716)
|
Run Tests (windows-2025, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/NewYearChaos.cs#L55
The behavior of 'string.Format(string, params object[])' could vary based on the current user's locale settings. Replace this call in 'NewYearChaos.minimumBribesText(List<int>)' with a call to 'string.Format(IFormatProvider, string, params object[])'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1305)
|
Run Tests (windows-2025, 8.x):
src/algorithm_exercises_csharp/hackerrank/warmup/DiagonalDifference.cs#L13
In externally visible method 'int DiagonalDifference.diagonalDifference(List<List<int>> _arr)', validate parameter '_arr' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (windows-2025, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L17
In externally visible method 'void LinkedList<T>.printSinglyLinkedList(Node? node, string sep, TextWriter textWriter)', validate parameter 'textWriter' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (windows-2025, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/NewYearChaos.cs#L51
The behavior of 'string.Format(string, object)' could vary based on the current user's locale settings. Replace this call in 'NewYearChaos.minimumBribesText(List<int>)' with a call to 'string.Format(IFormatProvider, string, params object[])'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1305)
|
Run Tests (windows-2025, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/NewYearChaos.cs#L19
In externally visible method 'int NewYearChaos.minimumBribesCalculate(List<int> q)', validate parameter 'q' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (windows-2025, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L11
Do not declare static members on generic types (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1000)
|
Run Tests (windows-2025, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/TwoDArray.cs#L31
In externally visible method 'int TwoDArray.hourglassSum(List<List<int>> arr)', validate parameter 'arr' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (windows-2025, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/TwoStrings.cs#L15
'string.Contains(char)' has a method overload that takes a 'StringComparison' parameter. Replace this call in 'algorithm_exercises_csharp.hackerrank.interview_preparation_kit.dictionaries_and_hashmaps.TwoStrings.twoStringsCompute(string, string)' with a call to 'string.Contains(char, System.StringComparison)' for clarity of intent. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1307)
|
Run Tests (windows-2025, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L8
Member 'next' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
|
Run Tests (windows-2025, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L1
Rename namespace algorithm_exercises_csharp.hackerrank.interview_preparation_kit.linked_list.lib so that it no longer conflicts with the reserved language keyword 'Lib'. Using a reserved keyword as the name of a namespace makes it harder for consumers in other languages to use the namespace. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1716)
|
Run Tests (windows-2022, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/NewYearChaos.cs#L55
The behavior of 'string.Format(string, params object[])' could vary based on the current user's locale settings. Replace this call in 'NewYearChaos.minimumBribesText(List<int>)' with a call to 'string.Format(IFormatProvider, string, params object[])'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1305)
|
Run Tests (windows-2022, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/NewYearChaos.cs#L51
The behavior of 'string.Format(string, object)' could vary based on the current user's locale settings. Replace this call in 'NewYearChaos.minimumBribesText(List<int>)' with a call to 'string.Format(IFormatProvider, string, params object[])'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1305)
|
Run Tests (windows-2022, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/TwoDArray.cs#L31
In externally visible method 'int TwoDArray.hourglassSum(List<List<int>> arr)', validate parameter 'arr' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (windows-2022, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/greedy_algorithms/MinimumAbsoluteDifferenceInAnArray.cs#L14
In externally visible method 'int MinimumAbsoluteDifferenceInAnArray.minimumAbsoluteDifference(List<int> arr)', validate parameter 'arr' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (windows-2022, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/NewYearChaos.cs#L19
In externally visible method 'int NewYearChaos.minimumBribesCalculate(List<int> q)', validate parameter 'q' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (windows-2022, 9.x):
src/algorithm_exercises_csharp/hackerrank/warmup/BirthdayCakeCandles.cs#L11
In externally visible method 'int BirthdayCakeCandles.birthdayCakeCandles(List<int> _arr)', validate parameter '_arr' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (windows-2022, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L17
In externally visible method 'void LinkedList<T>.printSinglyLinkedList(Node? node, string sep, TextWriter textWriter)', validate parameter 'textWriter' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (windows-2022, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L11
Do not declare static members on generic types (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1000)
|
Run Tests (windows-2022, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L8
Member 'next' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
|
Run Tests (windows-2022, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L1
Rename namespace algorithm_exercises_csharp.hackerrank.interview_preparation_kit.linked_list.lib so that it no longer conflicts with the reserved language keyword 'Lib'. Using a reserved keyword as the name of a namespace makes it harder for consumers in other languages to use the namespace. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1716)
|
Run Tests (windows-2022, 8.x):
src/algorithm_exercises_csharp/hackerrank/warmup/DiagonalDifference.cs#L13
In externally visible method 'int DiagonalDifference.diagonalDifference(List<List<int>> _arr)', validate parameter '_arr' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (windows-2022, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/CrushBruteForce.cs#L20
In externally visible method 'long CrushBruteForce.arrayManipulation(int n, List<List<int>> queries)', validate parameter 'queries' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (windows-2022, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/TwoDArray.cs#L31
In externally visible method 'int TwoDArray.hourglassSum(List<List<int>> arr)', validate parameter 'arr' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (windows-2022, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L17
In externally visible method 'void LinkedList<T>.printSinglyLinkedList(Node? node, string sep, TextWriter textWriter)', validate parameter 'textWriter' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (windows-2022, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L11
Do not declare static members on generic types (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1000)
|
Run Tests (windows-2022, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/ArraysLeftRotation.cs#L29
In externally visible method 'List<int> ArraysLeftRotation.rotLeft(List<int> input, int d)', validate parameter 'input' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (windows-2022, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/ArraysLeftRotation.cs#L16
In externally visible method 'List<int> ArraysLeftRotation.rotLeftOne(List<int> input)', validate parameter 'input' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (windows-2022, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/TwoStrings.cs#L15
'string.Contains(char)' has a method overload that takes a 'StringComparison' parameter. Replace this call in 'algorithm_exercises_csharp.hackerrank.interview_preparation_kit.dictionaries_and_hashmaps.TwoStrings.twoStringsCompute(string, string)' with a call to 'string.Contains(char, System.StringComparison)' for clarity of intent. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1307)
|
Run Tests (windows-2022, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L8
Member 'next' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
|
Run Tests (windows-2022, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L1
Rename namespace algorithm_exercises_csharp.hackerrank.interview_preparation_kit.linked_list.lib so that it no longer conflicts with the reserved language keyword 'Lib'. Using a reserved keyword as the name of a namespace makes it harder for consumers in other languages to use the namespace. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1716)
|
Run Tests (windows-2025, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/NewYearChaos.cs#L55
The behavior of 'string.Format(string, params object[])' could vary based on the current user's locale settings. Replace this call in 'NewYearChaos.minimumBribesText(List<int>)' with a call to 'string.Format(IFormatProvider, string, params object[])'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1305)
|
Run Tests (windows-2025, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/NewYearChaos.cs#L51
The behavior of 'string.Format(string, object)' could vary based on the current user's locale settings. Replace this call in 'NewYearChaos.minimumBribesText(List<int>)' with a call to 'string.Format(IFormatProvider, string, params object[])'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1305)
|
Run Tests (windows-2025, 9.x):
src/algorithm_exercises_csharp/hackerrank/warmup/DiagonalDifference.cs#L13
In externally visible method 'int DiagonalDifference.diagonalDifference(List<List<int>> _arr)', validate parameter '_arr' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (windows-2025, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/greedy_algorithms/MinimumAbsoluteDifferenceInAnArray.cs#L14
In externally visible method 'int MinimumAbsoluteDifferenceInAnArray.minimumAbsoluteDifference(List<int> arr)', validate parameter 'arr' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (windows-2025, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/NewYearChaos.cs#L19
In externally visible method 'int NewYearChaos.minimumBribesCalculate(List<int> q)', validate parameter 'q' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (windows-2025, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays/TwoDArray.cs#L31
In externally visible method 'int TwoDArray.hourglassSum(List<List<int>> arr)', validate parameter 'arr' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (windows-2025, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L17
In externally visible method 'void LinkedList<T>.printSinglyLinkedList(Node? node, string sep, TextWriter textWriter)', validate parameter 'textWriter' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
Run Tests (windows-2025, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L11
Do not declare static members on generic types (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1000)
|
Run Tests (windows-2025, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L8
Member 'next' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
|
Run Tests (windows-2025, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/linked_list/lib/Node.cs#L1
Rename namespace algorithm_exercises_csharp.hackerrank.interview_preparation_kit.linked_list.lib so that it no longer conflicts with the reserved language keyword 'Lib'. Using a reserved keyword as the name of a namespace makes it harder for consumers in other languages to use the namespace. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1716)
|