You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Vladimir Sitnikov (Jira)" <ji...@apache.org> on 2021/06/21 11:32:00 UTC

[jira] [Updated] (CALCITE-4658) Introduce refaster for automatic code refactoring

     [ https://issues.apache.org/jira/browse/CALCITE-4658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vladimir Sitnikov updated CALCITE-4658:
---------------------------------------
    Summary: Introduce refaster for automatic code refactoring  (was: Introduce refaster for automatic reformat of the code)

> Introduce refaster for automatic code refactoring
> -------------------------------------------------
>
>                 Key: CALCITE-4658
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4658
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: Vladimir Sitnikov
>            Priority: Major
>
> Sometimes we have API usage rules which require manual actions to correct.
> For instance, we "forbid" the use of {{Lists#newArrayList()}}, and suggest replacing it with {{new ArrayList()}}.
> It would be better if the build script could perform such replacements automatically.
> Refaster is a smart refactoring library for Java: https://errorprone.info/docs/refaster, and it could help us to keep the code up to date.
> Of course, forbidden-apis checks might still be there (e.g. for those who prefer manual replacements), however, adding automatic code cleanups would be great.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)