Feature/refactor #6
Annotations
80 warnings
Run Tests (ubuntu-24.04, 9.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, 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 (ubuntu-24.04, 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 (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/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/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 (ubuntu-24.04, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/greedy_algorithms/LuckBalance.cs#L20
In externally visible method 'int LuckBalance.luckBalance(int k, List<List<int>> contests)', validate parameter 'contests' 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/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 (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/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, 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/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 (macos-14, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/RansomNote.cs#L43
In externally visible method 'bool RansomNote.checkMagazineCompute(List<string> magazine, List<string> note)', validate parameter 'note' 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/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 (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 (macos-14, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/greedy_algorithms/LuckBalance.cs#L20
In externally visible method 'int LuckBalance.luckBalance(int k, List<List<int>> contests)', validate parameter 'contests' 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/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/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 (windows-2022, 9.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/greedy_algorithms/LuckBalance.cs#L20
In externally visible method 'int LuckBalance.luckBalance(int k, List<List<int>> contests)', validate parameter 'contests' 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/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/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/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#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-2025, 9.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 (windows-2025, 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-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/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/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/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-2022, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/greedy_algorithms/LuckBalance.cs#L20
In externally visible method 'int LuckBalance.luckBalance(int k, List<List<int>> contests)', validate parameter 'contests' 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/RansomNote.cs#L34
In externally visible method 'bool RansomNote.checkMagazineCompute(List<string> magazine, List<string> note)', validate parameter 'magazine' 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/RansomNote.cs#L43
In externally visible method 'bool RansomNote.checkMagazineCompute(List<string> magazine, List<string> note)', validate parameter 'note' 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/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 (windows-2022, 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-2022, 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-2022, 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-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/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, 8.x):
src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/greedy_algorithms/LuckBalance.cs#L20
In externally visible method 'int LuckBalance.luckBalance(int k, List<List<int>> contests)', validate parameter 'contests' 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/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/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/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/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/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/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/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)
|