mirror of
https://github.com/dense-analysis/ale.git
synced 2026-11-04 11:22:50 +08:00
Add fixer for json: python's json.tool (#4847)
Resolves #4314. Add a fixer that's built into python for json formatting. Include a couple arguments in docs to make these features more discoverable. Uses stdin-based fixing so you don't need to save the file to fix.
This commit is contained in:
1 parent
699c0dbe80
commit
d38a3f7739
6 files changed
+62
No files matched your search
@@ -477,6 +477,11 @@ let s:default_registry = {
|
||||
\ 'suggested_filetypes': ['json'],
|
||||
\ 'description': 'Fix JSON files with jq.',
|
||||
\ },
|
||||
\ 'json_pytool': {
|
||||
\ 'function': 'ale#fixers#json_pytool#Fix',
|
||||
\ 'suggested_filetypes': ['json'],
|
||||
\ 'description': "Fix JSON files with python's built-in json.tool module.",
|
||||
\ },
|
||||
\ 'protolint': {
|
||||
\ 'function': 'ale#fixers#protolint#Fix',
|
||||
\ 'suggested_filetypes': ['proto'],
|
||||
|
||||
Reference in new issue
Block a user