[DISCUSS] Update our EditorConfig file

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[DISCUSS] Update our EditorConfig file

Aljoscha Krettek-2
Hi,

is anyone actually using our .editorconfig file? IntelliJ has a plugin
for this that is actually quite powerful.

I managed to write a .editorconfig file that I quite like:
https://github.com/aljoscha/flink/commits/new-editorconfig. For me to
use that, we would either need to update our Flink file to what I did
there or remove the "root = true" part from the file to allow me to
place my custom .editorconfig in the directory above.

It's probably a lost cause to find consensus on what settings we should
have in that file but it could be helpful if we all used the same
settings. For what it's worth, this will format code in such a way that
it pleases our (very lenient) checkstyle rules.

What do you think?

Best,
Aljoscha
Reply | Threaded
Open this post in threaded view
|

Re: [DISCUSS] Update our EditorConfig file

Jingsong Li
+1 looks more friendly to Flink newbies.

Best,
Jingsong Lee

On Wed, Jun 10, 2020 at 8:38 PM Aljoscha Krettek <[hidden email]>
wrote:

> Hi,
>
> is anyone actually using our .editorconfig file? IntelliJ has a plugin
> for this that is actually quite powerful.
>
> I managed to write a .editorconfig file that I quite like:
> https://github.com/aljoscha/flink/commits/new-editorconfig. For me to
> use that, we would either need to update our Flink file to what I did
> there or remove the "root = true" part from the file to allow me to
> place my custom .editorconfig in the directory above.
>
> It's probably a lost cause to find consensus on what settings we should
> have in that file but it could be helpful if we all used the same
> settings. For what it's worth, this will format code in such a way that
> it pleases our (very lenient) checkstyle rules.
>
> What do you think?
>
> Best,
> Aljoscha
>


--
Best, Jingsong Lee
Reply | Threaded
Open this post in threaded view
|

Re: [DISCUSS] Update our EditorConfig file

tison
> is anyone actually using our .editorconfig file?

I think IDEA already takes this file into consideration. So far it works
well for me.

Best,
tison.


Jingsong Li <[hidden email]> 于2020年6月11日周四 上午10:26写道:

> +1 looks more friendly to Flink newbies.
>
> Best,
> Jingsong Lee
>
> On Wed, Jun 10, 2020 at 8:38 PM Aljoscha Krettek <[hidden email]>
> wrote:
>
> > Hi,
> >
> > is anyone actually using our .editorconfig file? IntelliJ has a plugin
> > for this that is actually quite powerful.
> >
> > I managed to write a .editorconfig file that I quite like:
> > https://github.com/aljoscha/flink/commits/new-editorconfig. For me to
> > use that, we would either need to update our Flink file to what I did
> > there or remove the "root = true" part from the file to allow me to
> > place my custom .editorconfig in the directory above.
> >
> > It's probably a lost cause to find consensus on what settings we should
> > have in that file but it could be helpful if we all used the same
> > settings. For what it's worth, this will format code in such a way that
> > it pleases our (very lenient) checkstyle rules.
> >
> > What do you think?
> >
> > Best,
> > Aljoscha
> >
>
>
> --
> Best, Jingsong Lee
>
Reply | Threaded
Open this post in threaded view
|

Re: [DISCUSS] Update our EditorConfig file

Robert Metzger
It seems that nobody cares about the file, as it has been basically never
touched after its creation in late 2015.

I would be fine adding the changes you are proposing to the codebase.


On Thu, Jun 11, 2020 at 4:47 AM tison <[hidden email]> wrote:

> > is anyone actually using our .editorconfig file?
>
> I think IDEA already takes this file into consideration. So far it works
> well for me.
>
> Best,
> tison.
>
>
> Jingsong Li <[hidden email]> 于2020年6月11日周四 上午10:26写道:
>
> > +1 looks more friendly to Flink newbies.
> >
> > Best,
> > Jingsong Lee
> >
> > On Wed, Jun 10, 2020 at 8:38 PM Aljoscha Krettek <[hidden email]>
> > wrote:
> >
> > > Hi,
> > >
> > > is anyone actually using our .editorconfig file? IntelliJ has a plugin
> > > for this that is actually quite powerful.
> > >
> > > I managed to write a .editorconfig file that I quite like:
> > > https://github.com/aljoscha/flink/commits/new-editorconfig. For me to
> > > use that, we would either need to update our Flink file to what I did
> > > there or remove the "root = true" part from the file to allow me to
> > > place my custom .editorconfig in the directory above.
> > >
> > > It's probably a lost cause to find consensus on what settings we should
> > > have in that file but it could be helpful if we all used the same
> > > settings. For what it's worth, this will format code in such a way that
> > > it pleases our (very lenient) checkstyle rules.
> > >
> > > What do you think?
> > >
> > > Best,
> > > Aljoscha
> > >
> >
> >
> > --
> > Best, Jingsong Lee
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Re: [DISCUSS] Update our EditorConfig file

Yun Gao
+1 for have a editorconfig file that is more consistent with Flink's code sytle.

From my own experience, whenever I open the Flink repo for the first time, I have to manually change the continuation indent to 4 and disable the wildcard imports. I also think that it should be more nice to new developers if the above manual configuration could be omitted.

Best,
 Yun



 ------------------Original Mail ------------------
Sender:Robert Metzger <[hidden email]>
Send Date:Fri Jun 12 21:57:50 2020
Recipients:dev <[hidden email]>
Subject:Re: [DISCUSS] Update our EditorConfig file
It seems that nobody cares about the file, as it has been basically never
touched after its creation in late 2015.

I would be fine adding the changes you are proposing to the codebase.


On Thu, Jun 11, 2020 at 4:47 AM tison <[hidden email]> wrote:

> > is anyone actually using our .editorconfig file?
>
> I think IDEA already takes this file into consideration. So far it works
> well for me.
>
> Best,
> tison.
>
>
> Jingsong Li <[hidden email]> 于2020年6月11日周四 上午10:26写道:
>
> > +1 looks more friendly to Flink newbies.
> >
> > Best,
> > Jingsong Lee
> >
> > On Wed, Jun 10, 2020 at 8:38 PM Aljoscha Krettek <[hidden email]>
> > wrote:
> >
> > > Hi,
> > >
> > > is anyone actually using our .editorconfig file? IntelliJ has a plugin
> > > for this that is actually quite powerful.
> > >
> > > I managed to write a .editorconfig file that I quite like:
> > > https://github.com/aljoscha/flink/commits/new-editorconfig. For me to
> > > use that, we would either need to update our Flink file to what I did
> > > there or remove the "root = true" part from the file to allow me to
> > > place my custom .editorconfig in the directory above.
> > >
> > > It's probably a lost cause to find consensus on what settings we should
> > > have in that file but it could be helpful if we all used the same
> > > settings. For what it's worth, this will format code in such a way that
> > > it pleases our (very lenient) checkstyle rules.
> > >
> > > What do you think?
> > >
> > > Best,
> > > Aljoscha
> > >
> >
> >
> > --
> > Best, Jingsong Lee
> >
>