I don't think we've ever really had a formal rule, certainly not one
that's been enforced. Personally I'd be satisfied with just doing
whatever IntelliJ or Eclipse are happy with.

I did finally take time to look and you can make IntelliJ recognize
"managed-schema" as an XML file with settings>>editor>>file types

Let's make 'em uniform and argue later.

Erick

On Wed, Mar 29, 2017 at 4:10 PM, Alexandre Rafalovitch
<[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]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to