There's tons of trailing whitespace in the code, especially in solrconfig.xml.
Can we please remove that to conform to Drupal coding standards?

Comments

drunken monkey’s picture

Status: Active » Needs review
StatusFileSize
new1.09 KB

Patch attached.

drunken monkey’s picture

StatusFileSize
new30.81 KB

Oops, diffed the wrong part.

nick_vh’s picture

I'm ok with this - but be aware that these are exact copie from the default of the Solr project. Diffing then will become a little bit more complex.

In any case, I'm ok with this. Let's wait on Chris's opinion

cpliakas’s picture

Hi all.

My opinion on this is that since this is a Solr configuration file, it should conform to whatever standards Solr uses and not Drupal's. Anything that we can do to more closely match the default Solr files the better so that we can more easily update between versions and see the differences. Whitespaces are probably not a huge deal, but my vote would be to stick as close as possible to the default schema.xml file. However, I am not using the files as directly as you guys, so if you think this would be useful, go for it.

Chris

drunken monkey’s picture

Hm, OK, I guess that makes sense …
It's just that Git complained and I, of course, try to follow the Drupal coding guidelines as possible.
Your point, Chris, about this better following Solr's standards not Drupal's makes sense, though, and the practicality of easier diffing is very probably also more important for comparing with new Solr versions, and not existing Drupal config files.

So, I guess this is a “by design” then …

nick_vh’s picture

Status: Needs review » Closed (won't fix)