Thank you Nihal, I support the plan.

I only ask that we delay landing the changes on 5.2 until after we have
released 5.2.1.
( I really hope to cut the next RC next week, as all HBase 2.6.1 related
issues seem to be fixed.)

On Fri, Oct 18, 2024 at 6:09 PM Nihal Jain <nihaljain...@gmail.com> wrote:

> Hi all,
>
> Following  previous discussions on this thread and recent discussion in PR
> https://github.com/apache/phoenix/pull/1995, I would like to revisit the
> topic of implementing the Spotless plugin for code formatting in Phoenix.
> The goal is to improve code consistency across the project and make it
> easier for new contributors to onboard.
>
> Here is a summary of the proposed plan based on recent discussions and past
> experiences:
>
> 1) Integrate the Spotless plugin and update the code template:
>
> * Integrate the Spotless plugin into the Phoenix project. This will allow
> us to standardize code formatting through Maven, reducing reliance on
> IDE-specific formatting rules.
>
> * Update the development template (dev/PhoenixCodeTemplate.xml) to sync the
> formatting standards used in HBase.
>
> * Align the license header with the one used by HBase for consistency.
>
> 2) Apply Spotless to reformat the entire codebase:
>
> * Apply the Spotless plugin to reformat the entire codebase. This will be
> done in a single commit to minimize noise in future patches.
>
> * No manual changes should be made in this PR, for ease of review
>
> 3) Add Spotless to the pre-commit checks:
>
> * Integrate Spotless checks into the pre-commit process to ensure code
> consistency moving forward.
>
> * We may want to add this step only after the initial reformatting is
> complete to avoid build failures and ease of backport to other branches.
>
> Hence we plan to create 3 separate JIRA sub-tasks to handle each of above
> memtioned steps independently and repeat for all active branches i.e 5.1,
> 5.2 and master.
>
> I want to acknowledge that Aman Poonia initially raised this topic and
> began the work. My involvement was unintentional, and I am grateful for the
> foundation laid by Aman.
>
> Additionally, I would like to thank Istvan Toth and Lars Francke for their
> interest and for pointing me to the right resources. Your feedback and
> suggestions are crucial.
>
> Please let me know if you have any concerns or additional points to
> consider.
>
> Best regards,
>
> Nihal Jain
>
>
>
>
> On Fri, 18 Oct 2024 at 5:07 PM, Lars Francke <lars.fran...@gmail.com>
> wrote:
>
> > Ah! Excellent, I managed to miss that in my research. Thank you very
> much.
> >
> > On Fri, Oct 18, 2024 at 1:26 PM Istvan Toth <st...@cloudera.com.invalid>
> > wrote:
> > >
> > > Nihal Jain has taken this up recently, and has opened
> > >
> > > https://github.com/apache/phoenix/pull/1995
> > >
> > >
> > >
> > > On Fri, Oct 18, 2024 at 12:50 PM Lars Francke <larsfran...@apache.org>
> > > wrote:
> > >
> > > > Sorry to dig up this old thread.
> > > >
> > > > I'm working with the Phoenix source code for the first time in years
> > and
> > > > as Istvan said: The current codebase is not great in terms of
> > consistency.
> > > > It makes life for new contributors harder than it needs to be.
> > > >
> > > > I actually checked and there are old Eclipse style files checked in.
> I
> > > > can't load them in recent versions of IntelliJ and I suspect most
> > people
> > > > don't look at this at all....
> > > >
> > > > Aman, can I ask about your plans on this? Do you plan on pushing this
> > > > forward? If not, I might try to take over.
> > > >
> > >
> > >
> > > --
> > > *István Tóth* | Sr. Staff Software Engineer
> > > *Email*: st...@cloudera.com
> > > cloudera.com <https://www.cloudera.com>
> > > [image: Cloudera] <https://www.cloudera.com/>
> > > [image: Cloudera on Twitter] <https://twitter.com/cloudera> [image:
> > > Cloudera on Facebook] <https://www.facebook.com/cloudera> [image:
> > Cloudera
> > > on LinkedIn] <https://www.linkedin.com/company/cloudera>
> > > ------------------------------
> > > ------------------------------
> >
>


-- 
*István Tóth* | Sr. Staff Software Engineer
*Email*: st...@cloudera.com
cloudera.com <https://www.cloudera.com>
[image: Cloudera] <https://www.cloudera.com/>
[image: Cloudera on Twitter] <https://twitter.com/cloudera> [image:
Cloudera on Facebook] <https://www.facebook.com/cloudera> [image: Cloudera
on LinkedIn] <https://www.linkedin.com/company/cloudera>
------------------------------
------------------------------

Reply via email to