mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 04:34:25 +08:00
Redpen linter previously had hardcoded command-line options and duplicated linter definitions across all supported file types (asciidoc, markdown, review, rst, tex, text). This refactoring centralizes the linter definition and adds support for user-configurable options via g:ale_redpen_options. Key changes: - Created ale#handlers#redpen#DefineLinter() to eliminate code duplication - Added ale#handlers#redpen#GetCommand() to support configurable options - All file types now use shared configuration and command building - Added comprehensive test coverage for option handling - Updated documentation for all affected file types This allows users to customize redpen behavior with additional command-line options while maintaining backward compatibility and reducing maintenance overhead.
62 lines
2.2 KiB
Plaintext
62 lines
2.2 KiB
Plaintext
===============================================================================
|
|
ALE Text Integration *ale-text-options*
|
|
|
|
|
|
==============================================================================
|
|
cspell *ale-text-cspell*
|
|
|
|
See |ale-cspell-options|
|
|
|
|
|
|
===============================================================================
|
|
textlint *ale-text-textlint*
|
|
|
|
The options for the textlint linter are global because it does not make
|
|
sense to have them specified on a per-language basis.
|
|
|
|
*ale-options.textlint_executable*
|
|
*g:ale_textlint_executable*
|
|
*b:ale_textlint_executable*
|
|
textlint_executable
|
|
g:ale_textlint_executable
|
|
Type: |String|
|
|
Default: `'textlint'`
|
|
|
|
See |ale-integrations-local-executables|
|
|
|
|
*ale-options.textlint_options*
|
|
*g:ale_textlint_options*
|
|
*b:ale_textlint_options*
|
|
textlint_options
|
|
g:ale_textlint_options
|
|
Type: |String|
|
|
Default: `''`
|
|
|
|
This variable can be set to pass additional options to textlint.
|
|
|
|
*ale-options.textlint_use_global*
|
|
*g:ale_textlint_use_global*
|
|
*b:ale_textlint_use_global*
|
|
textlint_use_global
|
|
g:ale_textlint_use_global
|
|
Type: |Number|
|
|
Default: `get(g:, 'ale_use_global_executables', 0)`
|
|
|
|
See |ale-integrations-local-executables|
|
|
|
|
|
|
===============================================================================
|
|
write-good *ale-text-write-good*
|
|
|
|
See |ale-write-good-options|
|
|
|
|
|
|
===============================================================================
|
|
redpen *ale-text-redpen*
|
|
|
|
See |ale-redpen-options|
|
|
|
|
|
|
===============================================================================
|
|
vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl:
|