[ 
https://issues.apache.org/jira/browse/LUCENE-10298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17455952#comment-17455952
 ] 

Uwe Schindler commented on LUCENE-10298:
----------------------------------------

Or maybe write the index names to a simple properties file that can be updated 
with plain stupid Java or Python and load it as resource?

> dev-tools/scripts/addBackcompatIndexes.py doesn't work well with spotless
> -------------------------------------------------------------------------
>
>                 Key: LUCENE-10298
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10298
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Adrien Grand
>            Priority: Minor
>
> addBackcompatIndexes.py expects that lists of index names have one entry per 
> line, e.g.
> {code}
> static final String oldNames = {
>   "xxxx"
> }
> {code}
> However, when the array is small, Spotless forces the array to be written on 
> a single line, and addBackcompatIndexes.py no longer recognizes the structure 
> of the file.
> It's probably fixable, but my Python skills are not good enough. Or maybe 
> this file should be one of the rare ones that we exclude from Spotless?



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to