-
-
Notifications
You must be signed in to change notification settings - Fork 376
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
Code standards update May 2024. #6684
Code standards update May 2024. #6684
Conversation
Now might also be a good time to put the This will speed up PRs even further, as developers no longer need to manually adjust their IDE settings for Skript. Links:
|
Tud has already agreed to do this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just some thoughts :)
Co-authored-by: Patrick Miller <apickledwalrus@gmail.com>
b25d563
to
77199b2
Compare
* Add player chat completion suggestions * Add method exists check * Syntax adjustment and remove DataFlowIssue suppression * Docs improvements * Requested changes * Update src/main/java/ch/njol/skript/expressions/ExprPlayerChatCompletions.java Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com> * Remove license header (#6684) * Java 17 ready --------- Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com> Co-authored-by: Moderocky <admin@moderocky.com>
* Changeable max stack size for item and inventory * Changeable max stack size for item and inventory * Fix required plugins versioning * Fix human error and removing redundant debug message * Fix breaking change to inventory max stack size in 1.20.5 * Requested changes * Annotation correction * More tests * Check for ItemType#getRandom() nullability * Check for ItemType#getRandom() nullability * Remove license header (#6684) * Java 17 and some code optimisations * Requested changes * Improve examples * Requested changes * Minor logic change for changer * chezburger simplified --------- Co-authored-by: Moderocky <admin@moderocky.com> Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com>
* Add enchantment glint override * Add Skript docs and fix annotations * Add expr item with glint * Add condition item has enchantment glint * Add version check * Add tests * Correction to syntax patterns * License says hi * Expression said bye * Fix setExpr * Finally * Fix tests * Bulk requested changes * Implementation overhaul * Implementation overhaul * Implementation overhaul * Fix test * Fix test * Fix test * Fix test * Fix test * Remove license header (#6684) * Requested changes and optimise imports * Requested changes, reworked condition, and optimized for latest code convention * Fix and test revamp * Reorganize test * Indentation! * Test… --------- Co-authored-by: Moderocky <admin@moderocky.com>
* Add leash event and its methods * Fix a woopsy in EvtLeash.java * Attempt to fix branch * Make ExprUnleashReason extend EVE * Bulk requested changes * Requested changes * Remove license header (#6684) * Requested changes * Merge branch 'dev/feature' into feature/event-leash * Pickle changes * Replace Getter, optimize imports * Remove duplicate value registration. Co-authored-by: Moderocky <admin@moderocky.com> --------- Co-authored-by: Moderocky <admin@moderocky.com>
Description
Our standards committee have decided upon a set of changes to code conventions and contribution standards, designed to make things a little clearer and more modern.
Some former rules have been relaxed (where we no longer felt the restrictions were helpful/necessary) and some new things have been standardised.
Overview of Changes
@NotNull
) can now go before the value, rather than the method (e.g.public @NotNull Object myMethod()
){
brackets}
around single-line blocks.if ... else {...}
)Target Minecraft Versions: any
Requirements: none
Related Issues: none