pietervdvn / MapComplete

An easy-to-use webapp to edit OpenStreetMap
https://mapcomplete.org
194 stars 89 forks source link

Property `enableImproveAccuraccy` is not allowed #1928

Closed tordans closed 2 months ago

tordans commented 2 months ago

I created new theme but the UI warns me about this property enableImproveAccuraccy. I don't know what to do with this and it feels bad to have errors like that in the Configuration file UI.

  "allowMove": {
    "enableRelocation": false,
    "enableImproveAccuraccy": true
  },
image
pietervdvn commented 2 months ago

You madeThere is a typo. accuracy is written with a single c (for the last one)

tordans commented 2 months ago

@pietervdvn I cannot remember writing this myself. Is it possible that I copied it from a theme. But given there are a few occurrences of the typo in this codebase https://github.com/search?q=repo%3Apietervdvn%2FMapComplete%20enableImproveAccuraccy&type=code maybe something else is going on? (Or maybe I copied it from there…)

I wil reopen to at least remove the typo from the repo.

pietervdvn commented 2 months ago

Seems like I'm the one who often made this typo ;)

I have a theme linting script lying around; I've used that to correct this typo and I've added an error message for it so that this cannot happen in the future anymore.