Lint Tool for Re:VIEW text in Vim with ale and prh
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ale_linters/review
autoload/ale/handlers
test
README.md

README.md

ale-prh-review

Lint Tool for Re:VIEW text

Installation

with Vim package management

mkdir -p ~/.vim/pack/git-plugins/start
git clone https://github.com/w0rp/ale.git ~/.vim/pack/git-plugins/start/ale
git clone https://github.com/tokorom/ale-prh-review.git ~/.vim/pack/git-plugins/start/ale-prh-review

with Volt

volt get w0rp/ale
volt get tokorom/ale-prh-review

Required Configuration

let g:ale_fixers = {
\   'review': ['prhreview'],
\}

# with redpen
# let g:ale_fixers = {
# \   'review': ['redpen', 'prhreview'],
# \}

Optional Configuration

" default
let g:ale_prhreview_ignore_line_patterns = [
\ '^#@# ',
\ ]

" default
let g:ale_prhreview_ignore_block_patterns = [
\ ['^//list\([ [].\+{\|{\)\s*$', '^//}\s*$'],
\ ['^//listnum\([ [].\+{\|{\)\s*$', '^//}\s*$'],
\ ['^//emlist\([ [].\+{\|{\)\s*$', '^//}\s*$'],
\ ['^//emlistnum\([ [].\+{\|{\)\s*$', '^//}\s*$'],
\ ['^//image\([ [].\+{\|{\)\s*$', '^//}\s*$'],
\ ['^//cmd\([ [].\+{\|{\)\s*$', '^//}\s*$'],
\ ]

" default
let g:ale_prhreview_ignore_inline_patterns = [
\ '^//\a\+\[[^]]\+\]',
\ '@<code>{[^}]*}',
\ '@<tt>{[^}]*}',
\ '@<fn>{[^}]*}',
\ '@<img>{[^}]*}',
\ '@<list>{[^}]*}',
\ ]