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
Following custom implementation to throw exception on Wildcard fails spotless apply when updating to 7.0.x. I have seen another issue with related to 'com.diffplug.spotless.ConfigurationCacheHackList@f33bd971' cannot be serialized.here Updating to 7.0.2 also did not solve the issue, (if there is a better way to check for wildcard import I would be happy to replace this)
java {
removeUnusedImports()
googleJavaFormat()
custom("Refuse wildcard imports") { // this check raise the exception// Wildcard imports can't be resolved by spotless itself.// This will require the developer themselves to adhere to best practices.if (it.contains("\nimport .*\\*;".toRegex())) {
throwAssertionError("Do not use wildcard imports. 'spotlessApply' cannot resolve this issue.")
}
it
}
}
Following custom implementation to throw exception on Wildcard fails spotless apply when updating to 7.0.x. I have seen another issue with related to
'com.diffplug.spotless.ConfigurationCacheHackList@f33bd971' cannot be serialized.
here Updating to 7.0.2 also did not solve the issue, (if there is a better way to check for wildcard import I would be happy to replace this)Error message when running spotlessJava:
The text was updated successfully, but these errors were encountered: