Re: Config file indenting rules

David Smiley <[email protected]>
Newsgroups gmane.comp.jakarta.lucene.devel
Message-ID <CAKwGGTGg9+yER1VC4otFkLEtSjk_sNMtqn9nCm8NQhXzxRH7jg@mail.gmail.com>
This is an old thread but I agree on editorConfig.  It's one dot-file to
add to our repo, and there are plugins for IntelliJ, Eclipse, and VS Code.
I'll throw up a PR.

On Tue, Mar 13, 2018 at 1:16 AM Alex Ott <[email protected]> wrote:

> What about using something like http://editorconfig.org/ to handle this?
>
> David Smiley  at "Fri, 31 Mar 2017 03:00:51 +0000" wrote:
>  DS> bq. Let's make 'em uniform and argue later.
>
>  DS> Agreed. I find it very annoying that the indentation on some of them
> are internally inconsistent.
>
>  DS> On Wed, Mar 29, 2017 at 7:19 PM Erick Erickson <
> [email protected]> wrote:
>
>  DS>     I don't think we've ever really had a formal rule, certainly not
> one
>  DS>     that's been enforced. Personally I'd be satisfied with just doing
>  DS>     whatever IntelliJ or Eclipse are happy with.
>  DS>
>  DS>     I did finally take time to look and you can make IntelliJ
> recognize
>  DS>     "managed-schema" as an XML file with settings>>editor>>file types
>  DS>
>  DS>     Let's make 'em uniform and argue later.
>  DS>
>  DS>     Erick
>  DS>
>  DS>     On Wed, Mar 29, 2017 at 4:10 PM, Alexandre Rafalovitch
>  DS>     <[email protected]> wrote:
>  >> I am redoing an example and realized I have no idea what the
>  >> formatting rules are.
>  >>
>  >> In the code, the WIKI says, we should use 2-spaces offset.
>  >>
>  >> What about in config (XML) files?
>  >>
>  >> I see no tabs, so at least that part is clear. But with spaces, I see
>  >> all sorts of things.
>  >>
>  >> I seem to see a mix of 4 and 2 spaces in managed-schema. I seem to see
>  >> 2 spaces in solrconfig.xml. I am not sure what I see in DIH
>  >> configuration files.
>  >>
>  >> Also, there are comments and their multi-line internal comments. I
>  >> seem to see 1 space there. Also, does the text in the comment start on
>  >> the same line as comment indicator (<!---) or next line. Or
>  >> whatever.... ?
>  >>
>  >> Are there any resource or guideline on that? I am happy to apply a
>  >> style but not sure what that is.
>  >>
>  >> Regards,
>  >>   Alex.
>  >> P.s. I guess managed-schema gets rewritten anyway, but - until then -
>  >> I want it to look pretty with all the comments right.
>  >>
>  >> ----
>  >> http://www.solr-start.com/ - Resources for Solr users, new and
> experienced
>  >>
>  >> ---------------------------------------------------------------------
>  >> To unsubscribe, e-mail: [email protected]
>  >> For additional commands, e-mail: [email protected]
>  >>
>  DS>
>  DS>
>  ---------------------------------------------------------------------
>  DS>     To unsubscribe, e-mail: [email protected]
>  DS>     For additional commands, e-mail: [email protected]
>
>
>
> --
> With best wishes,                    Alex Ott
> http://alexott.net/
> Twitter: alexott_en (English), alexott (Russian)
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.