Skip to content

[IMP] Adding script for detecting snippet repeated

Fix https://github.com/Vauxoo/docker-odoo-image/issues/199

This script can be run python odoo-shippable/scripts/fix-vim-snippet.py --extension sh

And the output is

Snippet repeated for 'sh' named 'case'
First defined in /root/.vim/bundle/vim-snippets/UltiSnips/sh.snippets line(51:56)
+++++
Snippet defined in /root/.vim/bundle/vim-snippets/snippets/sh.snippets line(36:40)
Snippet defined in /root/.vim/bundle/vim-openerp/snippets/sh.snippets line(24:28)
+++++
Snippet repeated for 'sh' named 'elif'
First defined in /root/.vim/bundle/vim-snippets/UltiSnips/sh.snippets line(58:61)
+++++
Snippet defined in /root/.vim/bundle/vim-snippets/snippets/sh.snippets line(17:19)
Snippet defined in /root/.vim/bundle/vim-openerp/snippets/sh.snippets line(9:11)
+++++
Snippet repeated for 'sh' named 'sbash'
First defined in /root/.vim/bundle/vim-snippets/UltiSnips/sh.snippets line(36:41)
+++++
Snippet defined in /root/.vim/bundle/vim-snippets/snippets/sh.snippets line(8:12)
+++++
Snippet repeated for 'sh' named '#!'
First defined in /root/.vim/bundle/vim-snippets/UltiSnips/sh.snippets line(28:30)
+++++
Snippet defined in /root/.vim/bundle/vim-snippets/snippets/sh.snippets line(2:4)
Snippet defined in /root/.vim/bundle/vim-openerp/snippets/sh.snippets line(2:4)
+++++
Snippet repeated for 'sh' named 'for'
First defined in /root/.vim/bundle/vim-snippets/UltiSnips/sh.snippets line(63:67)
+++++
Snippet defined in /root/.vim/bundle/vim-snippets/snippets/sh.snippets line(20:23)
Snippet defined in /root/.vim/bundle/vim-openerp/snippets/sh.snippets line(12:15)
+++++
Snippet repeated for 'sh' named 'wh'
First defined in /root/.vim/bundle/vim-snippets/snippets/sh.snippets line(28:31)
+++++
Snippet defined in /root/.vim/bundle/vim-openerp/snippets/sh.snippets line(16:19)
+++++
Snippet repeated for 'sh' named 'until'
First defined in /root/.vim/bundle/vim-snippets/UltiSnips/sh.snippets line(87:91)
+++++
Snippet defined in /root/.vim/bundle/vim-snippets/snippets/sh.snippets line(32:35)
Snippet defined in /root/.vim/bundle/vim-openerp/snippets/sh.snippets line(20:23)
+++++
Snippet repeated for 'sh' named 'if'
First defined in /root/.vim/bundle/vim-snippets/UltiSnips/sh.snippets line(81:85)
+++++
Snippet defined in /root/.vim/bundle/vim-snippets/snippets/sh.snippets line(13:16)
Snippet defined in /root/.vim/bundle/vim-openerp/snippets/sh.snippets line(5:8)
+++++

Merge request reports