mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-25 20:36:51 +08:00
Add bandit linter for Python
This commit is contained in:
@@ -65,6 +65,45 @@ g:ale_python_autopep8_use_global *g:ale_python_autopep8_use_global*
|
||||
See |ale-integrations-local-executables|
|
||||
|
||||
|
||||
===============================================================================
|
||||
bandit *ale-python-bandit*
|
||||
|
||||
g:ale_python_bandit_executable *g:ale_python_bandit_executable*
|
||||
*b:ale_python_bandit_executable*
|
||||
Type: |String|
|
||||
Default: `'bandit'`
|
||||
|
||||
See |ale-integrations-local-executables|
|
||||
|
||||
Set this to `'pipenv'` to invoke `'pipenv` `run` `bandit'`.
|
||||
|
||||
|
||||
g:ale_python_bandit_options *g:ale_python_bandit_options*
|
||||
*b:ale_python_bandit_options*
|
||||
Type: |String|
|
||||
Default: `''`
|
||||
|
||||
This variable can be changed to add command-line arguments to the
|
||||
bandit invocation.
|
||||
|
||||
|
||||
g:ale_python_bandit_use_global *g:ale_python_bandit_use_global*
|
||||
*b:ale_python_bandit_use_global*
|
||||
Type: |Number|
|
||||
Default: `get(g:, 'ale_use_global_executables', 0)`
|
||||
|
||||
See |ale-integrations-local-executables|
|
||||
|
||||
|
||||
g:ale_python_bandit_auto_pipenv *g:ale_python_bandit_auto_pipenv*
|
||||
*b:ale_python_bandit_auto_pipenv*
|
||||
Type: |Number|
|
||||
Default: `0`
|
||||
|
||||
Detect whether the file is inside a pipenv, and set the executable to `pipenv`
|
||||
if true. This is overridden by a manually-set executable.
|
||||
|
||||
|
||||
===============================================================================
|
||||
black *ale-python-black*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user