gappleto97/p2p-project

View on GitHub

Showing 45 of 45 total issues

Wrong lexicographical order for 'java.util.ArrayList' import. Should be before 'java.util.Arrays'.
Open

import java.util.ArrayList;
Severity: Minor
Found in jv_src/InternalMessage.java by checkstyle

Checks that the groups of import declarations appear in the order specifiedby the user. If there is an import but its group is not specified in theconfiguration such an import should be placed at the end of the import list.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

Parameter name 'msg_type' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'.
Open

    public InternalMessage(String msg_type, String sender, String[] payload, long timestamp) {
Severity: Minor
Found in jv_src/InternalMessage.java by checkstyle

Checks that method parameter names conform to a specified pattern.By using accessModifiers property it is possibleto specify different formats for methods at different visibility levels.

To validate catch parameters please useCatchParameterName.

To validate lambda parameters please useLambdaParameterName.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

Local variable name 'pack_len' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'.
Open

            byte[] pack_len = Arrays.copyOfRange(fed_string, processed, processed + 4);
Severity: Minor
Found in jv_src/InternalMessage.java by checkstyle

Checks that local, non-final variable names conform to a specified pattern.A catch parameter is considered to be a local variable.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

Type name 'base' must match pattern '^[A-Z][a-zA-Z0-9]*$'.
Open

public class base   {
Severity: Minor
Found in jv_src/base.java by checkstyle

Wrong lexicographical order for 'java.math.BigInteger' import. Should be before 'java.security.NoSuchAlgorithmException'.
Open

import java.math.BigInteger;
Severity: Minor
Found in jv_src/InternalMessage.java by checkstyle

Checks that the groups of import declarations appear in the order specifiedby the user. If there is an import but its group is not specified in theconfiguration such an import should be placed at the end of the import list.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

Parameter name 'msg_type' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'.
Open

    public InternalMessage(String msg_type, String sender, String[] payload)    {
Severity: Minor
Found in jv_src/InternalMessage.java by checkstyle

Checks that method parameter names conform to a specified pattern.By using accessModifiers property it is possibleto specify different formats for methods at different visibility levels.

To validate catch parameters please useCatchParameterName.

To validate lambda parameters please useLambdaParameterName.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

Local variable name 'encoded_lengths' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'.
Open

        byte[] encoded_lengths = new byte[4 * packets.length];
Severity: Minor
Found in jv_src/InternalMessage.java by checkstyle

Checks that local, non-final variable names conform to a specified pattern.A catch parameter is considered to be a local variable.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

Parameter name 'i' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'.
Open

    public static String to_base_58(long i)    {
Severity: Minor
Found in jv_src/base.java by checkstyle

Checks that method parameter names conform to a specified pattern.By using accessModifiers property it is possibleto specify different formats for methods at different visibility levels.

To validate catch parameters please useCatchParameterName.

To validate lambda parameters please useLambdaParameterName.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

Line is longer than 100 characters (found 128).
Open

    public static InternalMessage feed_string(byte[] fed_string, boolean sizeless, byte[][] compressions) throws Exception     {
Severity: Minor
Found in jv_src/InternalMessage.java by checkstyle

Checks for long lines.

Rationale: Long lines are hard to read in printouts or if developershave limited screen space for the source code, e.g. if the IDEdisplays additional information like project tree, class hierarchy,etc.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

Local variable name 'total_length' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'.
Open

        int total_length = 4 * packets.length;
Severity: Minor
Found in jv_src/InternalMessage.java by checkstyle

Checks that local, non-final variable names conform to a specified pattern.A catch parameter is considered to be a local variable.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

Local variable name 'non_len_string' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'.
Open

        byte[] non_len_string = this.non_len_string();
Severity: Minor
Found in jv_src/InternalMessage.java by checkstyle

Checks that local, non-final variable names conform to a specified pattern.A catch parameter is considered to be a local variable.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

Wrong lexicographical order for 'java.lang.StringBuilder' import. Should be before 'java.security.NoSuchAlgorithmException'.
Open

import java.lang.StringBuilder;
Severity: Minor
Found in jv_src/InternalMessage.java by checkstyle

Checks that the groups of import declarations appear in the order specifiedby the user. If there is an import but its group is not specified in theconfiguration such an import should be placed at the end of the import list.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

Local variable name 'working_value' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'.
Open

        BigInteger working_value = i;
Severity: Minor
Found in jv_src/base.java by checkstyle

Checks that local, non-final variable names conform to a specified pattern.A catch parameter is considered to be a local variable.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

Member name 'msg_type' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'.
Open

    String msg_type;
Severity: Minor
Found in jv_src/InternalMessage.java by checkstyle

Parameter name 'msg_type' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'.
Open

    public InternalMessage(String msg_type, String sender, String[] payload, byte[][] compression, long timestamp)   {
Severity: Minor
Found in jv_src/InternalMessage.java by checkstyle

Checks that method parameter names conform to a specified pattern.By using accessModifiers property it is possibleto specify different formats for methods at different visibility levels.

To validate catch parameters please useCatchParameterName.

To validate lambda parameters please useLambdaParameterName.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

Line is longer than 100 characters (found 101).
Open

    public InternalMessage(String msg_type, String sender, String[] payload, byte[][] compression)  {
Severity: Minor
Found in jv_src/InternalMessage.java by checkstyle

Checks for long lines.

Rationale: Long lines are hard to read in printouts or if developershave limited screen space for the source code, e.g. if the IDEdisplays additional information like project tree, class hierarchy,etc.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

Parameter name 'fed_string' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'.
Open

    public static InternalMessage feed_string(byte[] fed_string, boolean sizeless, byte[][] compressions) throws Exception     {
Severity: Minor
Found in jv_src/InternalMessage.java by checkstyle

Checks that method parameter names conform to a specified pattern.By using accessModifiers property it is possibleto specify different formats for methods at different visibility levels.

To validate catch parameters please useCatchParameterName.

To validate lambda parameters please useLambdaParameterName.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

Local variable name 'i' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'.
Open

        BigInteger i = new BigInteger(1, digest);
Severity: Minor
Found in jv_src/InternalMessage.java by checkstyle

Checks that local, non-final variable names conform to a specified pattern.A catch parameter is considered to be a local variable.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

Parameter name 'fed_string' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'.
Open

    private static byte[] sanitize_string(byte[] fed_string, boolean sizeless) throws Exception    {
Severity: Minor
Found in jv_src/InternalMessage.java by checkstyle

Checks that method parameter names conform to a specified pattern.By using accessModifiers property it is possibleto specify different formats for methods at different visibility levels.

To validate catch parameters please useCatchParameterName.

To validate lambda parameters please useLambdaParameterName.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

Parameter name 'fed_string' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'.
Open

    private static byte[] decompress_string(byte[] fed_string, byte[][] compressions)   {
Severity: Minor
Found in jv_src/InternalMessage.java by checkstyle

Checks that method parameter names conform to a specified pattern.By using accessModifiers property it is possibleto specify different formats for methods at different visibility levels.

To validate catch parameters please useCatchParameterName.

To validate lambda parameters please useLambdaParameterName.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

Severity
Category
Status
Source
Language