Skip to content
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

feat:break change v0.28.0 transaction response #97

Merged
merged 1 commit into from
Mar 16, 2023

Conversation

GrapeBaBa
Copy link
Owner

No description provided.

Signed-off-by: grapebaba <281165273@qq.com>
deserializer.decrease_container_depth();
return builder.build();
}

public static ObjectFormatOptions bcsDeserialize(byte[] input) throws com.novi.serde.DeserializationError {
public static MoveLocationOpt bcsDeserialize(byte[] input) throws com.novi.serde.DeserializationError {
if (input == null) {
throw new com.novi.serde.DeserializationError("Cannot deserialize null array");
}
com.novi.serde.Deserializer deserializer = new com.novi.bcs.BcsDeserializer(input);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

11% of developers fix this issue

UnnecessarilyFullyQualified: This fully qualified name is unambiguous to the compiler if imported.


Suggested change
com.novi.serde.Deserializer deserializer = new com.novi.bcs.BcsDeserializer(input);
public static MoveLocationOpt deserialize(Deserializer deserializer) throws com.novi.serde.DeserializationError {

❗❗ 710 similar findings have been found in this PR

🔎 Expand here to view all instances of this finding
File Path Line Number
src/main/java/io/sui/bcsgen/ExecutionFailureStatus.java 1169
src/main/java/io/sui/bcsgen/MoveLocation.java 14
src/main/java/io/sui/bcsgen/TransactionExpiration.java 13
src/main/java/io/sui/bcsgen/CommandArgumentError.java 247
src/main/java/io/sui/bcsgen/CommandArgumentError.java 198
src/main/java/io/sui/bcsgen/TraitHelpers.java 382
src/main/java/io/sui/bcsgen/Argument.java 90
src/main/java/io/sui/bcsgen/TraitHelpers.java 325
src/main/java/io/sui/bcsgen/CommandArgumentError.java 205
src/main/java/io/sui/bcsgen/ConsensusCommitPrologue.java 6

Showing 10 of 710 findings. Visit the Lift Web Console to see all.


ℹ️ Expand to see all @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.


Help us improve LIFT! (Sonatype LiftBot external survey)

Was this a good recommendation for you? Answering this survey will not impact your Lift settings.

[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

*
* @param splitCoin the split coin
*/
public void setSplitCoin(Command.SplitCoin splitCoin) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

50% of developers fix this issue

InconsistentCapitalization: Found the field 'SplitCoin' with the same name as the parameter 'splitCoin' but with different capitalization.


Suggested change
public void setSplitCoin(Command.SplitCoin splitCoin) {
public void setSplitCoin(Command.SplitCoin SplitCoin) {

❗❗ 11 similar findings have been found in this PR

🔎 Expand here to view all instances of this finding
File Path Line Number
src/main/java/io/sui/models/transactions/Argument.java 56
src/main/java/io/sui/models/transactions/TransactionKind.java 98
src/main/java/io/sui/models/transactions/Argument.java 150
src/main/java/io/sui/models/transactions/Command.java 51
src/main/java/io/sui/models/transactions/TransactionKind.java 197
src/main/java/io/sui/models/transactions/Command.java 239
src/main/java/io/sui/models/transactions/Argument.java 103
src/main/java/io/sui/models/transactions/Command.java 192
src/main/java/io/sui/models/transactions/Command.java 98
src/main/java/io/sui/models/transactions/TransactionKind.java 146

Showing 10 of 11 findings. Visit the Lift Web Console to see all.


ℹ️ Expand to see all @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.


Help us improve LIFT! (Sonatype LiftBot external survey)

Was this a good recommendation for you? Answering this survey will not impact your Lift settings.

[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]


@SuppressWarnings("checkstyle:MemberName")
private TransferSui TransferSui;
private ProgrammableTransaction ProgrammableTransaction;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

28% of developers fix this issue

VariableNameSameAsType: Variable named ProgrammableTransaction has the type ProgrammableTransaction. Calling methods using "ProgrammableTransaction.something" are difficult to distinguish between static and instance methods.

❗❗ 8 similar findings have been found in this PR

🔎 Expand here to view all instances of this finding
File Path Line Number
src/main/java/io/sui/models/transactions/Command.java 176
src/main/java/io/sui/models/transactions/TransactionKind.java 82
src/main/java/io/sui/models/transactions/Command.java 270
src/main/java/io/sui/models/transactions/Command.java 129
src/main/java/io/sui/models/transactions/TransactionKind.java 129
src/main/java/io/sui/models/transactions/Argument.java 134
src/main/java/io/sui/models/transactions/Command.java 82
src/main/java/io/sui/models/transactions/Command.java 35

Visit the Lift Web Console to find more details in your report.


ℹ️ Expand to see all @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.


Help us improve LIFT! (Sonatype LiftBot external survey)

Was this a good recommendation for you? Answering this survey will not impact your Lift settings.

[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sonatype-lift ignoreall

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ignoreall command is active on this PR, all the existing Lift issues are ignored.

@sonatype-lift
Copy link

sonatype-lift bot commented Mar 16, 2023

🛠 Lift Auto-fix

Some of the Lift findings in this PR can be automatically fixed. You can download and apply these changes in your local project directory of your branch to review the suggestions before committing.1

# Download the patch
curl https://lift.sonatype.com/api/patch/github.com/GrapeBaBa/sui4j/97.diff -o lift-autofixes.diff

# Apply the patch with git
git apply lift-autofixes.diff

# Review the changes
git diff

Want it all in a single command? Open a terminal in your project's directory and copy and paste the following command:

curl https://lift.sonatype.com/api/patch/github.com/GrapeBaBa/sui4j/97.diff | git apply

Once you're satisfied, commit and push your changes in your project.

Footnotes

  1. You can preview the patch by opening the patch URL in the browser.

@GrapeBaBa GrapeBaBa merged commit 5b3ca44 into main Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant