virtualdogbert / enterprise-groovy-plugin

A gradle plugin for adding @CompileStatic by default with optional configurable enforcement.
Apache License 2.0
8 stars 2 forks source link

Provide a way to allow def in selected code locations #15

Open demus-nine opened 4 years ago

demus-nine commented 4 years ago

I have a pull request where I implemented a possible way of allowing to suppress the def checking only in selected locations, where def is unavoidable. Fx. we have a compiledynamic method, that is passed a variant, which then resolves the overloads of another method at runtime. This can't be achieved without def, but the only way to allow this at the moment, is to completely disable the def check.

The pull request

virtualdogbert commented 4 years ago

Ok I'll take a look this weekend. I would also like to see if I can get Anton(a contributor that helped me in testing the earlier versions) to take a look and test it, just to have more eyes on it before I release it. Thanks.

apryamostanov commented 4 years ago

Issue: #15 Plugin PR: https://github.com/virtualdogbert/enterprise-groovy-plugin/pull/16 Linked plugin PR: https://github.com/virtualdogbert/enterprise-groovy-plugin/pull/14 Correspondent library PR: https://github.com/virtualdogbert/enterprise-groovy/pull/2