mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-08 11:33:52 -05:00
Show warnings only for DEV build
This commit is contained in:
@@ -218,7 +218,7 @@ let s:globs = {
|
|||||||
\ 'vmasm': '*.mar',
|
\ 'vmasm': '*.mar',
|
||||||
\ 'vue': '*.vue,*.wpy',
|
\ 'vue': '*.vue,*.wpy',
|
||||||
\ 'xdc': '*.xdc',
|
\ 'xdc': '*.xdc',
|
||||||
\ 'xml': '*.xml,*.adml,*.admx,*.ant,*.axml,*.builds,*.ccproj,*.ccxml,*.clixml,*.cproject,*.cscfg,*.csdef,*.csl,*.csproj,*.ct,*.depproj,*.dita,*.ditamap,*.ditaval,*.dll.config,*.dotsettings,*.filters,*.fsproj,*.fxml,*.glade,*.gml,*.gmx,*.grxml,*.gst,*.iml,*.ivy,*.jelly,*.jsproj,*.kml,*.launch,*.mdpolicy,*.mjml,*.mm,*.mod,*.mxml,*.natvis,*.ncl,*.ndproj,*.nproj,*.nuspec,*.odd,*.osm,*.pkgproj,*.pluginspec,*.proj,*.props,*.ps1xml,*.psc1,*.pt,*.rdf,*.resx,*.rss,*.sch,*.scxml,*.sfproj,*.shproj,*.srdf,*.storyboard,*.sublime-snippet,*.targets,*.tml,*.ui,*.urdf,*.ux,*.vbproj,*.vcxproj,*.vsixmanifest,*.vssettings,*.vstemplate,*.vxml,*.wixproj,*.workflow,*.wsdl,*.wsf,*.wxi,*.wxl,*.wxs,*.x3d,*.xacro,*.xaml,*.xib,*.xlf,*.xliff,*.xmi,*.xml.dist,*.xproj,*.xsd,*.xspec,*.xul,*.zcml,*.cdxml,*.tpm,*.csproj.user,*.wpl,.classpath,.cproject,.project,App.config,NuGet.config,Settings.StyleCop,Web.Debug.config,Web.Release.config,Web.config,packages.config',
|
\ 'xml': '*.xml,*.adml,*.admx,*.ant,*.axml,*.builds,*.ccproj,*.ccxml,*.clixml,*.cproject,*.cscfg,*.csdef,*.csl,*.csproj,*.ct,*.depproj,*.dita,*.ditamap,*.ditaval,*.dll.config,*.dotsettings,*.filters,*.fsproj,*.fxml,*.glade,*.gml,*.gmx,*.grxml,*.gst,*.iml,*.ivy,*.jelly,*.jsproj,*.kml,*.launch,*.mdpolicy,*.mjml,*.mm,*.mod,*.mxml,*.natvis,*.ncl,*.ndproj,*.nproj,*.nuspec,*.odd,*.osm,*.pkgproj,*.pluginspec,*.proj,*.props,*.ps1xml,*.psc1,*.pt,*.rdf,*.resx,*.rss,*.sch,*.scxml,*.sfproj,*.shproj,*.srdf,*.storyboard,*.sublime-snippet,*.targets,*.tml,*.ui,*.urdf,*.ux,*.vbproj,*.vcxproj,*.vsixmanifest,*.vssettings,*.vstemplate,*.vxml,*.wixproj,*.workflow,*.wsdl,*.wsf,*.wxi,*.wxl,*.wxs,*.x3d,*.xacro,*.xaml,*.xib,*.xlf,*.xliff,*.xmi,*.xml.dist,*.xproj,*.xsd,*.xspec,*.xul,*.zcml,*.cdxml,*.tpm,*.csproj.user,*.wpl,*.fglrxrc,.classpath,.cproject,.project,App.config,NuGet.config,Settings.StyleCop,Web.Debug.config,Web.Release.config,Web.config,packages.config',
|
||||||
\ 'xml.twig': '*.xml.twig',
|
\ 'xml.twig': '*.xml.twig',
|
||||||
\ 'xs': '*.xs',
|
\ 'xs': '*.xs',
|
||||||
\ 'xsl': '*.xslt,*.xsl',
|
\ 'xsl': '*.xslt,*.xsl',
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ if !has_key(s:disabled_packages, 'ampl')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if !has_key(s:disabled_packages, 'xml')
|
if !has_key(s:disabled_packages, 'xml')
|
||||||
au! BufRead,BufNewFile *.csproj,*.ui,*.wsdl,*.wsf,*.xlf,*.xliff,*.xmi,*.xsd,*.xul,*.tpm,*.csproj.user,*.wpl
|
au! BufRead,BufNewFile *.csproj,*.ui,*.wsdl,*.wsf,*.xlf,*.xliff,*.xmi,*.xsd,*.xul,*.tpm,*.csproj.user,*.wpl,*/etc/blkid.tab,*/etc/blkid.tab.old,*/etc/xdg/menus/*.menu
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if !has_key(s:disabled_packages, 'ant')
|
if !has_key(s:disabled_packages, 'ant')
|
||||||
@@ -610,6 +610,7 @@ if !has_key(s:disabled_packages, 'xml')
|
|||||||
au BufNewFile,BufRead *.ditaval set ft=xml
|
au BufNewFile,BufRead *.ditaval set ft=xml
|
||||||
au BufNewFile,BufRead *.dll.config set ft=xml
|
au BufNewFile,BufRead *.dll.config set ft=xml
|
||||||
au BufNewFile,BufRead *.dotsettings set ft=xml
|
au BufNewFile,BufRead *.dotsettings set ft=xml
|
||||||
|
au BufNewFile,BufRead *.fglrxrc set ft=xml
|
||||||
au BufNewFile,BufRead *.filters set ft=xml
|
au BufNewFile,BufRead *.filters set ft=xml
|
||||||
au BufNewFile,BufRead *.fsproj set ft=xml
|
au BufNewFile,BufRead *.fsproj set ft=xml
|
||||||
au BufNewFile,BufRead *.fxml set ft=xml
|
au BufNewFile,BufRead *.fxml set ft=xml
|
||||||
@@ -687,6 +688,9 @@ if !has_key(s:disabled_packages, 'xml')
|
|||||||
au BufNewFile,BufRead *.xspec set ft=xml
|
au BufNewFile,BufRead *.xspec set ft=xml
|
||||||
au BufNewFile,BufRead *.xul set ft=xml
|
au BufNewFile,BufRead *.xul set ft=xml
|
||||||
au BufNewFile,BufRead *.zcml set ft=xml
|
au BufNewFile,BufRead *.zcml set ft=xml
|
||||||
|
au BufNewFile,BufRead */etc/blkid.tab set ft=xml
|
||||||
|
au BufNewFile,BufRead */etc/blkid.tab.old set ft=xml
|
||||||
|
au BufNewFile,BufRead */etc/xdg/menus/*.menu set ft=xml
|
||||||
au BufNewFile,BufRead {.,}classpath set ft=xml
|
au BufNewFile,BufRead {.,}classpath set ft=xml
|
||||||
au BufNewFile,BufRead {.,}cproject set ft=xml
|
au BufNewFile,BufRead {.,}cproject set ft=xml
|
||||||
au BufNewFile,BufRead {.,}project set ft=xml
|
au BufNewFile,BufRead {.,}project set ft=xml
|
||||||
|
|||||||
@@ -1731,6 +1731,11 @@ filetypes:
|
|||||||
- tpm
|
- tpm
|
||||||
- csproj.user
|
- csproj.user
|
||||||
- wpl
|
- wpl
|
||||||
|
- fglrxrc
|
||||||
|
extra_filenames:
|
||||||
|
- '*/etc/blkid.tab'
|
||||||
|
- '*/etc/blkid.tab.old'
|
||||||
|
- '*/etc/xdg/menus/*.menu'
|
||||||
ignored_extensions:
|
ignored_extensions:
|
||||||
- ts
|
- ts
|
||||||
- tsx
|
- tsx
|
||||||
|
|||||||
@@ -726,6 +726,9 @@ def process_list(list, extras)
|
|||||||
end
|
end
|
||||||
|
|
||||||
def show_warnings(all_filetypes, expected_filetypes)
|
def show_warnings(all_filetypes, expected_filetypes)
|
||||||
|
if !ENV["DEV"]
|
||||||
|
return
|
||||||
|
end
|
||||||
all_expected = process_list(expected_filetypes, false) do |f|
|
all_expected = process_list(expected_filetypes, false) do |f|
|
||||||
(f["extensions"] || []).map { |e| "*." + e } + (f["filenames"] || [])
|
(f["extensions"] || []).map { |e| "*." + e } + (f["filenames"] || [])
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user