Skip to content

Sonar, formatting and others#37

Draft
Sefiraat wants to merge 1 commit intoNCBPFluffyBear:masterfrom
Sefiraat:chose/touch_ups
Draft

Sonar, formatting and others#37
Sefiraat wants to merge 1 commit intoNCBPFluffyBear:masterfrom
Sefiraat:chose/touch_ups

Conversation

@Sefiraat
Copy link

Untested! I will test as I work on Netheo. Just dropping this now for any immediate feedback, views or if you have optional additions while I am here.

@Sefiraat Sefiraat marked this pull request as draft July 12, 2022 17:02
Copy link
Owner

@NCBPFluffyBear NCBPFluffyBear left a comment

Choose a reason for hiding this comment

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

Some personal preferences, but changes seem functionally sound.

Files.createDirectory(itemsFolder.toPath());
} catch (IOException e) {
getInstance().getLogger().log(Level.SEVERE, "Failed to create saveditems folder", e);
getInstance().getLogger().log(Level.WARNING, "Failed to create saveditems folder", e);
Copy link
Owner

Choose a reason for hiding this comment

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

I'd like this to be left as severe, if a server owner sees this message I want them to stop the server and fix any file issues

Material progressItem, int energyProduction, int energyBuffer,
List<MachineFuel> customRecipes) {
@ParametersAreNonnullByDefault
public CustomGenerator(ItemGroup category,
Copy link
Owner

Choose a reason for hiding this comment

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

Keep all constructors the way they were (horizontal instead of one param per line)


} else {
this.replaceExistingItem(BACK_BUTTON_SLOT, new CustomItemStack(ChestMenuUtils.getBackButton(p, "", ChatColor.GRAY + Slimefun.getLocalization().getMessage(p, "guide.back.guide"))));
this.replaceExistingItem(
Copy link
Owner

Choose a reason for hiding this comment

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

Keep this on one line

SlimeCustomizer.getInstance().getLogger().log(Level.WARNING, "Your generators.yml file still contains" +
" the example generator! " +
"Did you forget to set up the plugin?");
SlimeCustomizer.getInstance().getLogger().warning(
Copy link
Owner

Choose a reason for hiding this comment

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

Keep all messages on one line (I know these exceed the 100 column limit, but I would prefer text to be limited to 1 or 2 lines)

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.

2 participants