Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

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>{[^}]*}',
\ ]

About

Lint Tool for Re:VIEW text in Vim with ale and prh

Resources

Releases

No releases published

Packages

No packages published