90b9597d50
This fixer enables buildifier's formatting and "lint fix" modes. Additional options can be provided via `bazel_buildifier_options`. It also implements some basic logic for guessing the file's type. buildifier itself usually does this based on the filenames provided on the command line, but because we're piping our buffer via stdin, we need to do this manually.
28 lines
1.1 KiB
Text
28 lines
1.1 KiB
Text
===============================================================================
|
|
ALE Bazel Integration *ale-bazel-options*
|
|
|
|
===============================================================================
|
|
buildifier *ale-bazel-buildifier*
|
|
|
|
g:ale_bazel_buildifier_executable *g:ale_bazel_buildifier_executable*
|
|
*b:ale_bazel_buildifier_executable*
|
|
Type: |String|
|
|
Default: `'buildifier'`
|
|
|
|
See |ale-integrations-local-executables|
|
|
|
|
|
|
g:ale_bazel_buildifier_options *g:ale_bazel_buildifier_options*
|
|
*b:ale_bazel_buildifier_options*
|
|
Type: |String|
|
|
Default: `''`
|
|
|
|
This variable can be set to pass extra options to buildifier.
|
|
|
|
|
|
g:ale_bazel_buildifier_use_global *g:ale_bazel_buildifier_use_global*
|
|
*b:ale_bazel_buildifier_use_global*
|
|
Type: |Number|
|
|
Default: `get(g:, 'ale_use_global_executables', 0)`
|
|
|
|
See |ale-integrations-local-executables|
|