Feature/refactor #5
Annotations
80 warnings
Run Tests (ubuntu-24.04, 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 (ubuntu-24.04, 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 (ubuntu-24.04, 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 (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/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 (ubuntu-24.04, 9.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 (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/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/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/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/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/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/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, 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/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 (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/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, 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 (macos-14, 9.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, 9.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, 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 (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/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/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, 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 (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/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/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 (ubuntu-24.04, 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 (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-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/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 (windows-2022, 9.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 (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/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/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, 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/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 (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/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/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/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, 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/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/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/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 (windows-2025, 9.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 (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/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/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/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, 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)
|
Run Tests (windows-2025, 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 (windows-2025, 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-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/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/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-2025, 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 (windows-2025, 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 (windows-2025, 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-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)
|