mirror of
https://github.com/dense-analysis/ale.git
synced 2026-05-04 12:55:46 +08:00
Compare commits
20 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| dd23b92ee9 | |||
| f90e72ae1f | |||
| 26ffb9dfa3 | |||
| db43854ca3 | |||
| b85e5191a3 | |||
| ecf815891d | |||
| bd591d47f2 | |||
| 06f4b6fe25 | |||
| 400857d758 | |||
| 2280d41b30 | |||
| cdbd218a82 | |||
| 73b568b071 | |||
| 4f4d68f153 | |||
| 25547c856e | |||
| cec1b26d82 | |||
| 33377583fd | |||
| 22c741648f | |||
| 338f3eeb73 | |||
| 8ee20eca4b | |||
| f3512cd778 |
@@ -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') ? '--apply-unsafe' : '--apply'
|
let l:apply = ale#Var(a:buffer, 'biome_fixer_apply_unsafe') ? '--write --unsafe' : '--write'
|
||||||
|
|
||||||
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 --apply %t'
|
\ . ' check --write %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 --apply-unsafe %t'
|
\ . ' check --write --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 --apply --foobar %t',
|
\ . ' check --write --foobar %t',
|
||||||
\ }
|
\ }
|
||||||
|
|||||||
Reference in New Issue
Block a user