Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Refactor array reindexing helper #212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Refactor array reindexing helper #212
Changes from all commits
ee78aa3File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Check failure on line 14 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Refactor this method to reduce its Cognitive Complexity from 22 to the 15 allowed.
Check warning on line 55 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Define a constant instead of using this literal 'length' 47 times.
Check warning on line 105 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Remove the unused local variable 'valuesFn'.
Check warning on line 124 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Remove this unused method parameter 'thisValue'.
Check warning on line 144 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Define a constant instead of using this literal 'value' 5 times.
Check failure on line 459 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Refactor this method to reduce its Cognitive Complexity from 22 to the 15 allowed.
Check failure on line 758 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Refactor this method to reduce its Cognitive Complexity from 22 to the 15 allowed.
Check warning on line 788 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Check warning on line 788 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
'result' is null on at least one execution path.
Check warning on line 805 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Check warning on line 805 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
'result' is null on at least one execution path.
Check warning on line 809 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Check warning on line 854 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Change this condition so that it does not always evaluate to 'False'.
Check failure on line 868 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Refactor this method to reduce its Cognitive Complexity from 28 to the 15 allowed.
Check warning on line 901 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Extract this nested ternary operation into an independent statement.
Check failure on line 1119 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Refactor this method to reduce its Cognitive Complexity from 22 to the 15 allowed.
Check warning on line 1149 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Extract this nested ternary operation into an independent statement.
Check warning on line 1177 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Check warning on line 1370 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Use the opposite operator ('<=') instead.
Check failure on line 1416 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Refactor this method to reduce its Cognitive Complexity from 29 to the 15 allowed.
Check warning on line 1578 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Remove this unused method parameter 'host'.
Check failure on line 1613 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Refactor this method to reduce its Cognitive Complexity from 19 to the 15 allowed.
Check warning on line 1665 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Change this condition so that it does not always evaluate to 'True'.
Check failure on line 1753 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Refactor this method to reduce its Cognitive Complexity from 23 to the 15 allowed.
Check warning on line 1754 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Method has 8 parameters, which is greater than the 7 authorized.
Check failure on line 1831 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Refactor this method to reduce its Cognitive Complexity from 22 to the 15 allowed.
Check warning on line 1964 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Constructor has 8 parameters, which is greater than the 7 authorized.
Check failure on line 2300 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Refactor this method to reduce its Cognitive Complexity from 20 to the 15 allowed.
Check warning on line 2361 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Remove this unnecessary check for null.
Check warning on line 2413 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Check failure on line 2437 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Refactor this method to reduce its Cognitive Complexity from 20 to the 15 allowed.
Check warning on line 2439 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Method has 12 parameters, which is greater than the 7 authorized.
Check warning on line 2626 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Method has 9 parameters, which is greater than the 7 authorized.
Check warning on line 2724 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Do not check floating point equality with exact values, use a range instead.
Check failure on line 2754 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Refactor this method to reduce its Cognitive Complexity from 39 to the 15 allowed.
Check failure on line 2847 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Refactor this method to reduce its Cognitive Complexity from 20 to the 15 allowed.
Check failure on line 2913 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Refactor this method to reduce its Cognitive Complexity from 22 to the 15 allowed.
Check warning on line 2924 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Define a constant instead of using this literal '__value__' 4 times.
Check warning on line 3180 in src/Asynkron.JsEngine/StdLib/StandardLibrary.Array.cs
Uh oh!
There was an error while loading. Please reload this page.