You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add tests for ThrowingExceptionInMain rule
* Update test case to throw exception inside main()
* Update test description (grammar)
* Consider parameterless main() in ThrowingExceptionInMain rule
Fixes#2248
* Add tests for parameterless main() and for some negative cases
* Refactor duplicated condition in isMainFunction()
This commit also fixes a codefactor warning.
* Add test for top level main with expression body
As of Kotlin 1.3, the explicit Array can be omitted but will still be available in the byte code.
Reference
Expected Behavior
The rule should also flag parameterless
main()
functions that throw an exception.Observed Behavior
The rule ignores parameterless
main()
functions.Your Environment
The text was updated successfully, but these errors were encountered: