You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JSON files with tabs aren't replaced by spaces like any sane formatter should do.
Or if we prefer tabs, spaces aren't being replaced by tabs.
How can one reproduce the bug?
Save a JSON file with tabs (accidentally, of course) and another one with spaces in an IDE configured for 4-space indent.
Run ./gradlew spotlessApply
Observe that no changes have occurred, and the result looks different on different editors/environments (e.g., GitHub which for some insane reason loves 8 character tab indent)
What is the expected behavior?
Pick one:
No tabs used as indentation in any files representing structured data (like YAML or JSON).
Tabs always used as indentation in any files representing structured data (like YAML or JSON).
Apparently tabs are forbidden in OpenSearch so we. must use spaces.
Execution failed for task ':forbiddenPatterns'.
> Found invalid patterns:
- tab on line 2 of src/test/resources/template/datademo.json
- tab on line 3 of src/test/resources/template/datademo.json
- tab on line 4 of src/test/resources/template/datademo.json
- tab on line 5 of src/test/resources/template/datademo.json
- tab on line 6 of src/test/resources/template/datademo.json
- tab on line 7 of src/test/resources/template/datademo.json
- tab on line 8 of src/test/resources/template/datademo.json
- tab on line 9 of src/test/resources/template/datademo.json
- tab on line 10 of src/test/resources/template/datademo.json
- tab on line 11 of src/test/resources/template/datademo.json
- tab on line 12 of src/test/resources/template/datademo.json
- tab on line 13 of src/test/resources/template/datademo.json
- tab on line 14 of src/test/resources/template/datademo.json
- tab on line 15 of src/test/resources/template/datademo.json
- tab on line 16 of src/test/resources/template/datademo.json
- tab on line 17 of src/test/resources/template/datademo.json
- tab on line 18 of src/test/resources/template/datademo.json
- tab on line 19 of src/test/resources/template/datademo.json
- ```
What is the bug?
JSON files with tabs aren't replaced by spaces like any sane formatter should do.
Or if we prefer tabs, spaces aren't being replaced by tabs.
How can one reproduce the bug?
./gradlew spotlessApply
What is the expected behavior?
Pick one:
Do you have any screenshots?
Do you have any additional context?
https://www.reddit.com/r/programming/comments/p1j1c/tabs_vs_spaces_vs_both/
The text was updated successfully, but these errors were encountered: