-
-
Notifications
You must be signed in to change notification settings - Fork 374
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
Unreachable Code #6960
Unreachable Code #6960
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
…chable code warning using config or the suppress warning effect
src/main/java/org/skriptlang/skript/lang/script/ScriptWarning.java
Outdated
Show resolved
Hide resolved
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.
looking really good
Also, I am a little unsure about the config option. I don't think that it is necessary given the suppress effect exists. I'd like to see what others think though. |
All warnings that may be suppressed by the suppress effect, excluding the deprecated syntax warning, have a config option equivalent. So, I think it's more consistent that way. |
…is even happened in the first place)
…e and there are no sections present
# Conflicts: # src/main/java/ch/njol/skript/effects/EffContinue.java # src/main/java/ch/njol/skript/effects/EffExit.java # src/main/java/ch/njol/skript/effects/EffReturn.java # src/main/java/ch/njol/skript/effects/EffSuppressWarnings.java
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.
excellent work. i think this is ready to go (apart from the one small issue...)
Co-authored-by: Patrick Miller <apickledwalrus@gmail.com>
Description
This PR adds a warning for unreachable code using a new API that gives statements/sections a way to define what happens after its execution.
Currently, the Intent API only supports "stop" intentions.
As well as fixing a bug where the
return
effect would always stop the trigger rather than just the returning section.Target Minecraft Versions: any
Requirements: none
Related Issues: none