roof removal: change override.json file extension to .jsonc
JSON itself doesn't natively support true comments (the official way is to include it as data), which means that every syntax highlighter wants to scream when it reads the file, despite the fact that GSON ignores comments perfectly fine. JSONC however supports true comments, and is supported by all the syntax highlighters we use (GH, IJ), while also staying as entirely normal JSON otherwise.
This commit is contained in:
@@ -175,7 +175,7 @@ public class RoofRemovalPlugin extends Plugin
|
||||
|
||||
private void loadRoofOverrides() throws IOException
|
||||
{
|
||||
try (InputStream in = getClass().getResourceAsStream("overrides.json"))
|
||||
try (InputStream in = getClass().getResourceAsStream("overrides.jsonc"))
|
||||
{
|
||||
final InputStreamReader data = new InputStreamReader(in, StandardCharsets.UTF_8);
|
||||
//CHECKSTYLE:OFF
|
||||
|
||||
Reference in New Issue
Block a user