connectbot/sshlib

View on GitHub

Showing 244 of 412 total issues

Method onConnect has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

private void onConnect(Socks5Server server) throws IOException {
final Channel cn;
 
String destHost = server.getHostName();
if (destHost == null) {
Severity: Minor
Found in src/main/java/com/trilead/ssh2/channel/DynamicAcceptThread.java - About 25 mins to fix

Method init has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

@Override
public void init(String name) throws IOException {
final ECParameterSpec spec;
 
if ("ecdh-sha2-nistp256".equals(name)) {
Severity: Minor
Found in src/main/java/com/trilead/ssh2/crypto/dh/EcDhExchange.java - About 25 mins to fix

Method decodePublicKey has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

@Override
public PublicKey decodePublicKey(byte[] key) throws IOException {
TypesReader tr = new TypesReader(key);
 
String key_format = tr.readString();
Severity: Minor
Found in src/main/java/com/trilead/ssh2/signature/ECDSASHA2Verify.java - About 25 mins to fix

Method decodeSSHECDSASignature has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

private byte[] decodeSSHECDSASignature(byte[] sig) throws IOException {
byte[] rsArray;
 
TypesReader tr = new TypesReader(sig);
 
 
Severity: Minor
Found in src/main/java/com/trilead/ssh2/signature/ECDSASHA2Verify.java - About 25 mins to fix
Severity
Category
Status
Source
Language