Add SFTP remote file transfer functionality #3310
Quality Gate failed
Failed conditions
5.1% Duplication on New Code (required ≤ 3%)
Annotations
Check warning on line 891 in mRemoteNG/UI/Window/SftpFileManagerWindow.cs
sonarqubecloud / SonarCloud Code Analysis
Indexing at Count-1 should be used instead of the "Enumerable" extension method "Last"
See more on https://sonarcloud.io/project/issues?id=mRemoteNG_mRemoteNG&issues=AZ4l4wEe_X7v35SYv5Y9&open=AZ4l4wEe_X7v35SYv5Y9&pullRequest=3310
Check failure on line 28 in mRemoteNG/UI/Window/SftpFileManagerWindow.cs
sonarqubecloud / SonarCloud Code Analysis
Remove this unread private field '_sshClient' or refactor the code to use its value.
See more on https://sonarcloud.io/project/issues?id=mRemoteNG_mRemoteNG&issues=AZ4l4wEe_X7v35SYv5Yq&open=AZ4l4wEe_X7v35SYv5Yq&pullRequest=3310
Check warning on line 414 in mRemoteNG/UI/Window/SftpFileManagerWindow.cs
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of using this literal 'folder' 5 times.
See more on https://sonarcloud.io/project/issues?id=mRemoteNG_mRemoteNG&issues=AZ4l4wEe_X7v35SYv5Y4&open=AZ4l4wEe_X7v35SYv5Y4&pullRequest=3310
Check warning on line 1472 in mRemoteNG/UI/Window/SftpFileManagerWindow.cs
sonarqubecloud / SonarCloud Code Analysis
Make 'UpdateListViewItemSafe' a static method.
See more on https://sonarcloud.io/project/issues?id=mRemoteNG_mRemoteNG&issues=AZ4l4wEe_X7v35SYv5ZG&open=AZ4l4wEe_X7v35SYv5ZG&pullRequest=3310
Check warning on line 1450 in mRemoteNG/UI/Window/SftpFileManagerWindow.cs
sonarqubecloud / SonarCloud Code Analysis
Make 'UpdateStatusText' a static method.
See more on https://sonarcloud.io/project/issues?id=mRemoteNG_mRemoteNG&issues=AZ4l4wEe_X7v35SYv5ZC&open=AZ4l4wEe_X7v35SYv5ZC&pullRequest=3310
Check warning on line 1247 in mRemoteNG/UI/Window/SftpFileManagerWindow.cs
sonarqubecloud / SonarCloud Code Analysis
Indexing at Count-1 should be used instead of the "Enumerable" extension method "Last"
See more on https://sonarcloud.io/project/issues?id=mRemoteNG_mRemoteNG&issues=AZ4l4wEe_X7v35SYv5ZB&open=AZ4l4wEe_X7v35SYv5ZB&pullRequest=3310
Check warning on line 57 in mRemoteNG/UI/Window/SftpFileManagerWindow.cs
sonarqubecloud / SonarCloud Code Analysis
Remove the field '_btnRemoteHome' and declare it as a local variable in the relevant methods.
See more on https://sonarcloud.io/project/issues?id=mRemoteNG_mRemoteNG&issues=AZ4l4wEe_X7v35SYv5Yw&open=AZ4l4wEe_X7v35SYv5Yw&pullRequest=3310
Check warning on line 415 in mRemoteNG/UI/Window/SftpFileManagerWindow.cs
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of using this literal 'parent' 6 times.
See more on https://sonarcloud.io/project/issues?id=mRemoteNG_mRemoteNG&issues=AZ4l4wEe_X7v35SYv5Y5&open=AZ4l4wEe_X7v35SYv5Y5&pullRequest=3310
Check failure on line 1041 in mRemoteNG/UI/Window/SftpFileManagerWindow.cs
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 55 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=mRemoteNG_mRemoteNG&issues=AZ4l4wEe_X7v35SYv5Y-&open=AZ4l4wEe_X7v35SYv5Y-&pullRequest=3310
Check warning on line 1214 in mRemoteNG/UI/Window/SftpFileManagerWindow.cs
sonarqubecloud / SonarCloud Code Analysis
Remove the unused local variable 'uploaded'.
See more on https://sonarcloud.io/project/issues?id=mRemoteNG_mRemoteNG&issues=AZ4l4wEe_X7v35SYv5ZE&open=AZ4l4wEe_X7v35SYv5ZE&pullRequest=3310
Check warning on line 32 in mRemoteNG/UI/Window/SftpFileManagerWindow.cs
sonarqubecloud / SonarCloud Code Analysis
Remove unassigned field '_cancellationTokenSource', or set its value.
See more on https://sonarcloud.io/project/issues?id=mRemoteNG_mRemoteNG&issues=AZ4l4wEe_X7v35SYv5Yp&open=AZ4l4wEe_X7v35SYv5Yp&pullRequest=3310
Check warning on line 1476 in mRemoteNG/UI/Window/SftpFileManagerWindow.cs
sonarqubecloud / SonarCloud Code Analysis
Remove the unnecessary Boolean literal(s).
See more on https://sonarcloud.io/project/issues?id=mRemoteNG_mRemoteNG&issues=AZ4l4wEe_X7v35SYv5ZF&open=AZ4l4wEe_X7v35SYv5ZF&pullRequest=3310
Check warning on line 70 in mRemoteNG/UI/Window/SftpFileManagerWindow.cs
sonarqubecloud / SonarCloud Code Analysis
Remove the field '_remoteColSize' and declare it as a local variable in the relevant methods.
See more on https://sonarcloud.io/project/issues?id=mRemoteNG_mRemoteNG&issues=AZ4l4wEe_X7v35SYv5Y2&open=AZ4l4wEe_X7v35SYv5Y2&pullRequest=3310
Check warning on line 981 in mRemoteNG/UI/Window/SftpFileManagerWindow.cs
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of using this literal 'yyyy-MM-dd HH:mm' 4 times.
See more on https://sonarcloud.io/project/issues?id=mRemoteNG_mRemoteNG&issues=AZ4l4wEe_X7v35SYv5Y7&open=AZ4l4wEe_X7v35SYv5Y7&pullRequest=3310
Check warning on line 891 in mRemoteNG/UI/Window/SftpFileManagerWindow.cs
sonarqubecloud / SonarCloud Code Analysis
Remove this hardcoded path-delimiter.
See more on https://sonarcloud.io/project/issues?id=mRemoteNG_mRemoteNG&issues=AZ4l4wEe_X7v35SYv5Y8&open=AZ4l4wEe_X7v35SYv5Y8&pullRequest=3310
Check warning on line 33 in mRemoteNG/UI/Window/SftpFileManagerWindow.cs
sonarqubecloud / SonarCloud Code Analysis
Remove the field '_useExistingSession' and declare it as a local variable in the relevant methods.
See more on https://sonarcloud.io/project/issues?id=mRemoteNG_mRemoteNG&issues=AZ4l4wEe_X7v35SYv5Yr&open=AZ4l4wEe_X7v35SYv5Yr&pullRequest=3310
Check warning on line 1110 in mRemoteNG/UI/Window/SftpFileManagerWindow.cs
sonarqubecloud / SonarCloud Code Analysis
Extract this nested ternary operation into an independent statement.
See more on https://sonarcloud.io/project/issues?id=mRemoteNG_mRemoteNG&issues=AZ4l4wEe_X7v35SYv5Y_&open=AZ4l4wEe_X7v35SYv5Y_&pullRequest=3310
Check warning on line 431 in mRemoteNG/UI/Window/SftpFileManagerWindow.cs
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of using this literal 'Upload' 4 times.
See more on https://sonarcloud.io/project/issues?id=mRemoteNG_mRemoteNG&issues=AZ4l4wEe_X7v35SYv5Y6&open=AZ4l4wEe_X7v35SYv5Y6&pullRequest=3310
Check warning on line 1128 in mRemoteNG/UI/Window/SftpFileManagerWindow.cs
sonarqubecloud / SonarCloud Code Analysis
Extract this nested ternary operation into an independent statement.
See more on https://sonarcloud.io/project/issues?id=mRemoteNG_mRemoteNG&issues=AZ4l4wEe_X7v35SYv5ZA&open=AZ4l4wEe_X7v35SYv5ZA&pullRequest=3310
Check warning on line 56 in mRemoteNG/UI/Window/SftpFileManagerWindow.cs
sonarqubecloud / SonarCloud Code Analysis
Remove the field '_btnRemoteUp' and declare it as a local variable in the relevant methods.
See more on https://sonarcloud.io/project/issues?id=mRemoteNG_mRemoteNG&issues=AZ4l4wEe_X7v35SYv5Yv&open=AZ4l4wEe_X7v35SYv5Yv&pullRequest=3310
Check warning on line 117 in mRemoteNG/UI/Window/SftpFileManagerWindow.cs
sonarqubecloud / SonarCloud Code Analysis
Provide a getter for 'Password' or replace the property with a 'SetPassword' method.
See more on https://sonarcloud.io/project/issues?id=mRemoteNG_mRemoteNG&issues=AZ4l4wEe_X7v35SYv5Yo&open=AZ4l4wEe_X7v35SYv5Yo&pullRequest=3310
Check warning on line 1495 in mRemoteNG/UI/Window/SftpFileManagerWindow.cs
sonarqubecloud / SonarCloud Code Analysis
Make 'GetParentPath' a static method.
See more on https://sonarcloud.io/project/issues?id=mRemoteNG_mRemoteNG&issues=AZ4l4wEe_X7v35SYv5ZH&open=AZ4l4wEe_X7v35SYv5ZH&pullRequest=3310
Check warning on line 67 in mRemoteNG/UI/Window/SftpFileManagerWindow.cs
sonarqubecloud / SonarCloud Code Analysis
Remove the field '_localColSize' and declare it as a local variable in the relevant methods.
See more on https://sonarcloud.io/project/issues?id=mRemoteNG_mRemoteNG&issues=AZ4l4wEe_X7v35SYv5Yz&open=AZ4l4wEe_X7v35SYv5Yz&pullRequest=3310
Check warning on line 1503 in mRemoteNG/UI/Window/SftpFileManagerWindow.cs
sonarqubecloud / SonarCloud Code Analysis
Make 'FormatFileSize' a static method.
See more on https://sonarcloud.io/project/issues?id=mRemoteNG_mRemoteNG&issues=AZ4l4wEe_X7v35SYv5ZI&open=AZ4l4wEe_X7v35SYv5ZI&pullRequest=3310
Check warning on line 61 in mRemoteNG/UI/Window/SftpFileManagerWindow.cs
sonarqubecloud / SonarCloud Code Analysis
Remove the field '_mainSplitContainer' and declare it as a local variable in the relevant methods.
See more on https://sonarcloud.io/project/issues?id=mRemoteNG_mRemoteNG&issues=AZ4l4wEe_X7v35SYv5Yx&open=AZ4l4wEe_X7v35SYv5Yx&pullRequest=3310