mirror of
https://github.com/dense-analysis/ale.git
synced 2026-05-04 12:55:46 +08:00
Compare commits
19 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e1c8d665d6 | |||
| fe50a711cb | |||
| 19e1b5a9d3 | |||
| 33a902f489 | |||
| a1c57918ef | |||
| 1aae83497d | |||
| f4af0dc84b | |||
| 7f43666fb3 | |||
| bcd1a12949 | |||
| 53f036fe9f | |||
| 3dfebe45c6 | |||
| 964e0a2e39 | |||
| ee975196ff | |||
| 3f7ea86ae1 | |||
| dd8d7cb4b4 | |||
| 8216ee4a65 | |||
| 9a251b2865 | |||
| 61a1fcc92f | |||
| c9eb8f9d15 |
@@ -1,7 +1,7 @@
|
|||||||
function! ale#fixers#biome#Fix(buffer) abort
|
function! ale#fixers#biome#Fix(buffer) abort
|
||||||
let l:executable = ale#handlers#biome#GetExecutable(a:buffer)
|
let l:executable = ale#handlers#biome#GetExecutable(a:buffer)
|
||||||
let l:options = ale#Var(a:buffer, 'biome_options')
|
let l:options = ale#Var(a:buffer, 'biome_options')
|
||||||
let l:apply = ale#Var(a:buffer, 'biome_fixer_apply_unsafe') ? '--write --unsafe' : '--write'
|
let l:apply = ale#Var(a:buffer, 'biome_fixer_apply_unsafe') ? '--apply-unsafe' : '--apply'
|
||||||
|
|
||||||
return {
|
return {
|
||||||
\ 'read_temporary_file': 1,
|
\ 'read_temporary_file': 1,
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ Execute(The default biome command should be correct):
|
|||||||
\ {
|
\ {
|
||||||
\ 'read_temporary_file': 1,
|
\ 'read_temporary_file': 1,
|
||||||
\ 'command': ale#Escape('biome')
|
\ 'command': ale#Escape('biome')
|
||||||
\ . ' check --write %t'
|
\ . ' check --apply %t'
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
Execute(Unsafe fixes can be applied via an option):
|
Execute(Unsafe fixes can be applied via an option):
|
||||||
@@ -28,7 +28,7 @@ Execute(Unsafe fixes can be applied via an option):
|
|||||||
\ {
|
\ {
|
||||||
\ 'read_temporary_file': 1,
|
\ 'read_temporary_file': 1,
|
||||||
\ 'command': ale#Escape('biome')
|
\ 'command': ale#Escape('biome')
|
||||||
\ . ' check --write --unsafe %t'
|
\ . ' check --apply-unsafe %t'
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
Execute(The fixer should accept options):
|
Execute(The fixer should accept options):
|
||||||
@@ -39,5 +39,5 @@ Execute(The fixer should accept options):
|
|||||||
\ {
|
\ {
|
||||||
\ 'read_temporary_file': 1,
|
\ 'read_temporary_file': 1,
|
||||||
\ 'command': ale#Escape('biome')
|
\ 'command': ale#Escape('biome')
|
||||||
\ . ' check --write --foobar %t',
|
\ . ' check --apply --foobar %t',
|
||||||
\ }
|
\ }
|
||||||
|
|||||||
Reference in New Issue
Block a user