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

Add enum values (Ignore, Warn, Error) to GDScript warnings #59943

Merged
merged 1 commit into from
May 25, 2022

Conversation

jordi-star
Copy link
Contributor

Separating this PR from #59428 to make the changes easier to review, and because my implementation of proposal godotengine/godot-proposals#4310 is built around the changes included in this PR.

Closes godotengine/godot-proposals#3531


Warnings are now enum values (Ignore, Warn, Error) to allow setting whether you want a warning to be treated as either an error, a warning, or ignored.

The way warnings are initialized in gdscript.cpp has been improved to offer more flexibility. (Support for property info per warning and different default values.)

@akien-mga akien-mga merged commit f2a7bb6 into godotengine:master May 25, 2022
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow turning GDScript warning categories into errors individually (instead of a global setting)
3 participants