i-net-software / i-net-software/JWebAssembly

Configure Compiler Warnings and Errors

Open
#8 2 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Java
Stars
1.1k
Forks
61
PR merge metrics
No merged PRs in 30d

Description

There should be the option to customize the error or warning behavior of the compiler.

| Possible problem | description |
| ----------------------- | ------ |
| native Methode | There is a reference to a native method without replacement. This can result in a break or an unreachable code exception. Then only if the method is called an runtime error occur. |
| missing class/method | There is a reference to a library that is not ship. |
| exclude classes | There are classes in a library that should not be included to reduce the compile size. |

| Possible scopes | description |
| ---------------- | ------ |
| all | Problems in all classes should be ignored |
| library | Problem classes from library and Java runtime should be ignored |
| java | Problem classes from Java runtime should be ignored |
| none | Any problem should be break the compiler run |
| pattern | Problems in classes that match a pattern like java.lang.* should be ignored. The pattern should follow the calling script like Gradle. |

Samples:

* ignoreNative=all
* ignoreMissing=library
* excludeClasses=java.net.*

Are there more possible problems and scopes? Is the syntax understandable? Suggestions are welcome.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.