You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.4 KiB
Erlang

#!/usr/bin/env escript
Squashed 'vim/bundle/syntastic/' changes from 106c772b0..56e19eb81 56e19eb81 Sphinx checker: update maintainer's address. 131ec84e6 New checker for reStructuredText: sphinx. e46c64701 Bug fix: more findfile() fun. a728268d7 Bug fix: finding files in parent directories. 98e79d85f Nix checker: cleanup. c840655d1 Add support for .nix files b609b3bdd Checker ghc-mod: attempt to fix filename encodings. 84b4da7cf Manual: add a note about :mksession. b8682c302 Merge remote-tracking branch 'origin/pr/1447' 3dda9b833 Apps should be used for include_lib too cb9424c9e README: formatting. 7055ff936 Crystal external checker 0470fff0c Checker python/pylama: add option "--force". e15ebd336 Go checker: no longer attempt to redirect output of "go build". 5c6e78a27 README: suggest a safer cabbrev in FAQ. a7fde99ea Add support for Vera++ C++ checker 25ad02e12 README: add a link to the vim-eastwood plugin. 981196fdc Flow checker: use the "status" command. ae405fed8 Manual: add a note about zsh and rvm with MacVim. 5dba05af4 Bashate: make errorformat more permissive. 48b75c455 Tslint is a style checker. a8771fe6b Puppet-lint checker: --log-format now expects %{line}. 24bb29357 Minor comment fix. 4605886ea Safer opening of the error window (@blueyed). 3a30321fd Fix loclist timestamps for refresh (@blueyed). 9af644dac Remove comments from the tidy checker. 4fbe5f52c Flow checker: recover from negative end offsets. 48090a19f Updates to the manual. 615c890e7 Gfortran checker: bug fix: column handling and sorting for ifort. b152ac3db The gfortran checker now supports Intel Fortran. 80c5a047c Bug fix: b:cflags again. 2cf32d7be Bug fix: b:cflags applies only to C and C++ checkers. fe436371b Checker tsc: version 1.5 has option "--noEmit". a17db15e7 In some cases vim will set the filetype of *.pp files to 'pe-puppet' instead of 'puppet'. There is no functional difference so lets map 'pe-puppet' to 'puppet' so we can use the same default checkers. 710a854f6 Remove shellcheck checker for zsh ebfba7ec3 Puppet-lint no longer requires puppet. 2337c65b3 Keep track of b:changedtick. dac07db61 Cleanup: shut up most vint warnings. ac96ae4a2 Manual: add notes about powerline, vim-airline, and vim-go. ebadf9aff Windows brain damage: executable('foo') doesn't mean 'foo' is executable. b905f6d08 Mercury checker: cleanup. 4e0ac804c added mercury syntax checker 0cde75895 replaced erlang checker with the one from vimerl that works without rebar 84add5b7f Checkers using curl(1): allow redirections. 7b8526b96 Flow checker: bail out if there is no .flowconfig. 5b0d3dc8b README: rephrase. da1ecc0bb FAQ: add a note about $PATH. 231a78f5d Manual: update. 67fc031e0 Manual: fix examples to use g:syntastic_shell. 47eabae37 New global option: "shell". 869c5a726 Camlp4o checker: better error highlighting. 48812d833 Cleanup: exit codes are meaningless for checkers without exec. c297fbebb README: update address of tidy-html5. 69d20efc6 Elixir: handle warnings. fe3a48f33 Ruby checkers: make warning flags configurable. 272fc7df3 Manual: update the note about vim-auto-save. 413cdb354 Flow checker: make exe configurable. 5214f00a1 New checker for API Blueprint: snowcrash. a7758aa18 New checker for Vim: vint. b427af1e0 Cleanup: case-sensitive comparisons. 0e23cb097 Cleanup. fc8f8e500 RAEDME: minor rephrase. 9e5a6e657 README: add a link to vint-syntastic. 2a07c4acd New checker for SML: smlnj. c45293538 README: add a link syntastic-more. 399389c84 README: add links to a few third party checkers. c233c9bbd README: update URL for the Rust checker. f4b064e2d README: rephrase. 71aa71bc1 README: more details about enabling checkers. bccfdea4e Handling redefinition of exec: minor optimisation. 8256e4351 Typo. 471ce96af Remove the xcrun checker for Swift. d73546dd4 Java checker: more path fixes. cf4e18d3f Java checker: fix path detection. 776d4175c Handle redefinition of exec after the checker has run. 478218402 Security: disable the swift/xcrun checker by default. 372daff1a Reek checker: update. 157ad8d43 Minor cleanup. a7841c869 Minor cleanup. dde4a9be9 Formatting. 4401a23f2 Merge pull request #1323 from Shizmob/patch-1 b70e9af18 Don't warn on python/prospector with no messages. 7cbb79b73 More detailed debug information. c1a209895 New checker for JavaScript: standard. 1c6cae0d2 Merge pull request #1320 from ametheus/patch-1 0a310ca0a Fix typo 3ea613f53 Xmllint: make "--xinclude" and "--postvalid" optional. 7d9aec0be Prospector no longer accepts option "--external-config". 6b76c26cb Puppet checker: don't redirect stderr when checking version. abff1d81e Merge pull request #1313 from tomfogg/master 5cc56dbde missing comma in swift errorformat after cleanup b69efd072 README: Swift is now supported. cf012bdea Version logging: minor cleanup. b9608e77b Xcrun: cleanup. 46fc1ec68 Merge branch 'master' of https://github.com/scrooloose/syntastic 3e33785d8 add licence for swift syntax checker a76370c14 add swift syntax checker support using xcrun git-subtree-dir: vim/bundle/syntastic git-subtree-split: 56e19eb81a5cdf75542def5b0b07f68aab50809f
10 years ago
main([File]) ->
Dir = get_root(filename:dirname(File)),
Defs = [strong_validation,
warn_export_all,
warn_export_vars,
warn_shadow_vars,
warn_obsolete_guard,
warn_unused_import,
report,
{i, Dir ++ "/include"}],
RebarFile = rebar_file(Dir),
RebarOpts = rebar_opts(Dir ++ "/" ++ RebarFile),
code:add_patha(filename:absname("ebin")),
compile:file(File, Defs ++ RebarOpts);
Squashed 'vim/bundle/syntastic/' changes from 106c772b0..56e19eb81 56e19eb81 Sphinx checker: update maintainer's address. 131ec84e6 New checker for reStructuredText: sphinx. e46c64701 Bug fix: more findfile() fun. a728268d7 Bug fix: finding files in parent directories. 98e79d85f Nix checker: cleanup. c840655d1 Add support for .nix files b609b3bdd Checker ghc-mod: attempt to fix filename encodings. 84b4da7cf Manual: add a note about :mksession. b8682c302 Merge remote-tracking branch 'origin/pr/1447' 3dda9b833 Apps should be used for include_lib too cb9424c9e README: formatting. 7055ff936 Crystal external checker 0470fff0c Checker python/pylama: add option "--force". e15ebd336 Go checker: no longer attempt to redirect output of "go build". 5c6e78a27 README: suggest a safer cabbrev in FAQ. a7fde99ea Add support for Vera++ C++ checker 25ad02e12 README: add a link to the vim-eastwood plugin. 981196fdc Flow checker: use the "status" command. ae405fed8 Manual: add a note about zsh and rvm with MacVim. 5dba05af4 Bashate: make errorformat more permissive. 48b75c455 Tslint is a style checker. a8771fe6b Puppet-lint checker: --log-format now expects %{line}. 24bb29357 Minor comment fix. 4605886ea Safer opening of the error window (@blueyed). 3a30321fd Fix loclist timestamps for refresh (@blueyed). 9af644dac Remove comments from the tidy checker. 4fbe5f52c Flow checker: recover from negative end offsets. 48090a19f Updates to the manual. 615c890e7 Gfortran checker: bug fix: column handling and sorting for ifort. b152ac3db The gfortran checker now supports Intel Fortran. 80c5a047c Bug fix: b:cflags again. 2cf32d7be Bug fix: b:cflags applies only to C and C++ checkers. fe436371b Checker tsc: version 1.5 has option "--noEmit". a17db15e7 In some cases vim will set the filetype of *.pp files to 'pe-puppet' instead of 'puppet'. There is no functional difference so lets map 'pe-puppet' to 'puppet' so we can use the same default checkers. 710a854f6 Remove shellcheck checker for zsh ebfba7ec3 Puppet-lint no longer requires puppet. 2337c65b3 Keep track of b:changedtick. dac07db61 Cleanup: shut up most vint warnings. ac96ae4a2 Manual: add notes about powerline, vim-airline, and vim-go. ebadf9aff Windows brain damage: executable('foo') doesn't mean 'foo' is executable. b905f6d08 Mercury checker: cleanup. 4e0ac804c added mercury syntax checker 0cde75895 replaced erlang checker with the one from vimerl that works without rebar 84add5b7f Checkers using curl(1): allow redirections. 7b8526b96 Flow checker: bail out if there is no .flowconfig. 5b0d3dc8b README: rephrase. da1ecc0bb FAQ: add a note about $PATH. 231a78f5d Manual: update. 67fc031e0 Manual: fix examples to use g:syntastic_shell. 47eabae37 New global option: "shell". 869c5a726 Camlp4o checker: better error highlighting. 48812d833 Cleanup: exit codes are meaningless for checkers without exec. c297fbebb README: update address of tidy-html5. 69d20efc6 Elixir: handle warnings. fe3a48f33 Ruby checkers: make warning flags configurable. 272fc7df3 Manual: update the note about vim-auto-save. 413cdb354 Flow checker: make exe configurable. 5214f00a1 New checker for API Blueprint: snowcrash. a7758aa18 New checker for Vim: vint. b427af1e0 Cleanup: case-sensitive comparisons. 0e23cb097 Cleanup. fc8f8e500 RAEDME: minor rephrase. 9e5a6e657 README: add a link to vint-syntastic. 2a07c4acd New checker for SML: smlnj. c45293538 README: add a link syntastic-more. 399389c84 README: add links to a few third party checkers. c233c9bbd README: update URL for the Rust checker. f4b064e2d README: rephrase. 71aa71bc1 README: more details about enabling checkers. bccfdea4e Handling redefinition of exec: minor optimisation. 8256e4351 Typo. 471ce96af Remove the xcrun checker for Swift. d73546dd4 Java checker: more path fixes. cf4e18d3f Java checker: fix path detection. 776d4175c Handle redefinition of exec after the checker has run. 478218402 Security: disable the swift/xcrun checker by default. 372daff1a Reek checker: update. 157ad8d43 Minor cleanup. a7841c869 Minor cleanup. dde4a9be9 Formatting. 4401a23f2 Merge pull request #1323 from Shizmob/patch-1 b70e9af18 Don't warn on python/prospector with no messages. 7cbb79b73 More detailed debug information. c1a209895 New checker for JavaScript: standard. 1c6cae0d2 Merge pull request #1320 from ametheus/patch-1 0a310ca0a Fix typo 3ea613f53 Xmllint: make "--xinclude" and "--postvalid" optional. 7d9aec0be Prospector no longer accepts option "--external-config". 6b76c26cb Puppet checker: don't redirect stderr when checking version. abff1d81e Merge pull request #1313 from tomfogg/master 5cc56dbde missing comma in swift errorformat after cleanup b69efd072 README: Swift is now supported. cf012bdea Version logging: minor cleanup. b9608e77b Xcrun: cleanup. 46fc1ec68 Merge branch 'master' of https://github.com/scrooloose/syntastic 3e33785d8 add licence for swift syntax checker a76370c14 add swift syntax checker support using xcrun git-subtree-dir: vim/bundle/syntastic git-subtree-split: 56e19eb81a5cdf75542def5b0b07f68aab50809f
10 years ago
main(_) ->
io:format("Usage: ~s <file>~n", [escript:script_name()]),
halt(1).
Squashed 'vim/bundle/syntastic/' changes from 106c772b0..56e19eb81 56e19eb81 Sphinx checker: update maintainer's address. 131ec84e6 New checker for reStructuredText: sphinx. e46c64701 Bug fix: more findfile() fun. a728268d7 Bug fix: finding files in parent directories. 98e79d85f Nix checker: cleanup. c840655d1 Add support for .nix files b609b3bdd Checker ghc-mod: attempt to fix filename encodings. 84b4da7cf Manual: add a note about :mksession. b8682c302 Merge remote-tracking branch 'origin/pr/1447' 3dda9b833 Apps should be used for include_lib too cb9424c9e README: formatting. 7055ff936 Crystal external checker 0470fff0c Checker python/pylama: add option "--force". e15ebd336 Go checker: no longer attempt to redirect output of "go build". 5c6e78a27 README: suggest a safer cabbrev in FAQ. a7fde99ea Add support for Vera++ C++ checker 25ad02e12 README: add a link to the vim-eastwood plugin. 981196fdc Flow checker: use the "status" command. ae405fed8 Manual: add a note about zsh and rvm with MacVim. 5dba05af4 Bashate: make errorformat more permissive. 48b75c455 Tslint is a style checker. a8771fe6b Puppet-lint checker: --log-format now expects %{line}. 24bb29357 Minor comment fix. 4605886ea Safer opening of the error window (@blueyed). 3a30321fd Fix loclist timestamps for refresh (@blueyed). 9af644dac Remove comments from the tidy checker. 4fbe5f52c Flow checker: recover from negative end offsets. 48090a19f Updates to the manual. 615c890e7 Gfortran checker: bug fix: column handling and sorting for ifort. b152ac3db The gfortran checker now supports Intel Fortran. 80c5a047c Bug fix: b:cflags again. 2cf32d7be Bug fix: b:cflags applies only to C and C++ checkers. fe436371b Checker tsc: version 1.5 has option "--noEmit". a17db15e7 In some cases vim will set the filetype of *.pp files to 'pe-puppet' instead of 'puppet'. There is no functional difference so lets map 'pe-puppet' to 'puppet' so we can use the same default checkers. 710a854f6 Remove shellcheck checker for zsh ebfba7ec3 Puppet-lint no longer requires puppet. 2337c65b3 Keep track of b:changedtick. dac07db61 Cleanup: shut up most vint warnings. ac96ae4a2 Manual: add notes about powerline, vim-airline, and vim-go. ebadf9aff Windows brain damage: executable('foo') doesn't mean 'foo' is executable. b905f6d08 Mercury checker: cleanup. 4e0ac804c added mercury syntax checker 0cde75895 replaced erlang checker with the one from vimerl that works without rebar 84add5b7f Checkers using curl(1): allow redirections. 7b8526b96 Flow checker: bail out if there is no .flowconfig. 5b0d3dc8b README: rephrase. da1ecc0bb FAQ: add a note about $PATH. 231a78f5d Manual: update. 67fc031e0 Manual: fix examples to use g:syntastic_shell. 47eabae37 New global option: "shell". 869c5a726 Camlp4o checker: better error highlighting. 48812d833 Cleanup: exit codes are meaningless for checkers without exec. c297fbebb README: update address of tidy-html5. 69d20efc6 Elixir: handle warnings. fe3a48f33 Ruby checkers: make warning flags configurable. 272fc7df3 Manual: update the note about vim-auto-save. 413cdb354 Flow checker: make exe configurable. 5214f00a1 New checker for API Blueprint: snowcrash. a7758aa18 New checker for Vim: vint. b427af1e0 Cleanup: case-sensitive comparisons. 0e23cb097 Cleanup. fc8f8e500 RAEDME: minor rephrase. 9e5a6e657 README: add a link to vint-syntastic. 2a07c4acd New checker for SML: smlnj. c45293538 README: add a link syntastic-more. 399389c84 README: add links to a few third party checkers. c233c9bbd README: update URL for the Rust checker. f4b064e2d README: rephrase. 71aa71bc1 README: more details about enabling checkers. bccfdea4e Handling redefinition of exec: minor optimisation. 8256e4351 Typo. 471ce96af Remove the xcrun checker for Swift. d73546dd4 Java checker: more path fixes. cf4e18d3f Java checker: fix path detection. 776d4175c Handle redefinition of exec after the checker has run. 478218402 Security: disable the swift/xcrun checker by default. 372daff1a Reek checker: update. 157ad8d43 Minor cleanup. a7841c869 Minor cleanup. dde4a9be9 Formatting. 4401a23f2 Merge pull request #1323 from Shizmob/patch-1 b70e9af18 Don't warn on python/prospector with no messages. 7cbb79b73 More detailed debug information. c1a209895 New checker for JavaScript: standard. 1c6cae0d2 Merge pull request #1320 from ametheus/patch-1 0a310ca0a Fix typo 3ea613f53 Xmllint: make "--xinclude" and "--postvalid" optional. 7d9aec0be Prospector no longer accepts option "--external-config". 6b76c26cb Puppet checker: don't redirect stderr when checking version. abff1d81e Merge pull request #1313 from tomfogg/master 5cc56dbde missing comma in swift errorformat after cleanup b69efd072 README: Swift is now supported. cf012bdea Version logging: minor cleanup. b9608e77b Xcrun: cleanup. 46fc1ec68 Merge branch 'master' of https://github.com/scrooloose/syntastic 3e33785d8 add licence for swift syntax checker a76370c14 add swift syntax checker support using xcrun git-subtree-dir: vim/bundle/syntastic git-subtree-split: 56e19eb81a5cdf75542def5b0b07f68aab50809f
10 years ago
rebar_file(Dir) ->
DirList = filename:split(Dir),
case lists:last(DirList) of
"test" ->
"rebar.test.config";
_ ->
"rebar.config"
end.
Squashed 'vim/bundle/syntastic/' changes from 106c772b0..56e19eb81 56e19eb81 Sphinx checker: update maintainer's address. 131ec84e6 New checker for reStructuredText: sphinx. e46c64701 Bug fix: more findfile() fun. a728268d7 Bug fix: finding files in parent directories. 98e79d85f Nix checker: cleanup. c840655d1 Add support for .nix files b609b3bdd Checker ghc-mod: attempt to fix filename encodings. 84b4da7cf Manual: add a note about :mksession. b8682c302 Merge remote-tracking branch 'origin/pr/1447' 3dda9b833 Apps should be used for include_lib too cb9424c9e README: formatting. 7055ff936 Crystal external checker 0470fff0c Checker python/pylama: add option "--force". e15ebd336 Go checker: no longer attempt to redirect output of "go build". 5c6e78a27 README: suggest a safer cabbrev in FAQ. a7fde99ea Add support for Vera++ C++ checker 25ad02e12 README: add a link to the vim-eastwood plugin. 981196fdc Flow checker: use the "status" command. ae405fed8 Manual: add a note about zsh and rvm with MacVim. 5dba05af4 Bashate: make errorformat more permissive. 48b75c455 Tslint is a style checker. a8771fe6b Puppet-lint checker: --log-format now expects %{line}. 24bb29357 Minor comment fix. 4605886ea Safer opening of the error window (@blueyed). 3a30321fd Fix loclist timestamps for refresh (@blueyed). 9af644dac Remove comments from the tidy checker. 4fbe5f52c Flow checker: recover from negative end offsets. 48090a19f Updates to the manual. 615c890e7 Gfortran checker: bug fix: column handling and sorting for ifort. b152ac3db The gfortran checker now supports Intel Fortran. 80c5a047c Bug fix: b:cflags again. 2cf32d7be Bug fix: b:cflags applies only to C and C++ checkers. fe436371b Checker tsc: version 1.5 has option "--noEmit". a17db15e7 In some cases vim will set the filetype of *.pp files to 'pe-puppet' instead of 'puppet'. There is no functional difference so lets map 'pe-puppet' to 'puppet' so we can use the same default checkers. 710a854f6 Remove shellcheck checker for zsh ebfba7ec3 Puppet-lint no longer requires puppet. 2337c65b3 Keep track of b:changedtick. dac07db61 Cleanup: shut up most vint warnings. ac96ae4a2 Manual: add notes about powerline, vim-airline, and vim-go. ebadf9aff Windows brain damage: executable('foo') doesn't mean 'foo' is executable. b905f6d08 Mercury checker: cleanup. 4e0ac804c added mercury syntax checker 0cde75895 replaced erlang checker with the one from vimerl that works without rebar 84add5b7f Checkers using curl(1): allow redirections. 7b8526b96 Flow checker: bail out if there is no .flowconfig. 5b0d3dc8b README: rephrase. da1ecc0bb FAQ: add a note about $PATH. 231a78f5d Manual: update. 67fc031e0 Manual: fix examples to use g:syntastic_shell. 47eabae37 New global option: "shell". 869c5a726 Camlp4o checker: better error highlighting. 48812d833 Cleanup: exit codes are meaningless for checkers without exec. c297fbebb README: update address of tidy-html5. 69d20efc6 Elixir: handle warnings. fe3a48f33 Ruby checkers: make warning flags configurable. 272fc7df3 Manual: update the note about vim-auto-save. 413cdb354 Flow checker: make exe configurable. 5214f00a1 New checker for API Blueprint: snowcrash. a7758aa18 New checker for Vim: vint. b427af1e0 Cleanup: case-sensitive comparisons. 0e23cb097 Cleanup. fc8f8e500 RAEDME: minor rephrase. 9e5a6e657 README: add a link to vint-syntastic. 2a07c4acd New checker for SML: smlnj. c45293538 README: add a link syntastic-more. 399389c84 README: add links to a few third party checkers. c233c9bbd README: update URL for the Rust checker. f4b064e2d README: rephrase. 71aa71bc1 README: more details about enabling checkers. bccfdea4e Handling redefinition of exec: minor optimisation. 8256e4351 Typo. 471ce96af Remove the xcrun checker for Swift. d73546dd4 Java checker: more path fixes. cf4e18d3f Java checker: fix path detection. 776d4175c Handle redefinition of exec after the checker has run. 478218402 Security: disable the swift/xcrun checker by default. 372daff1a Reek checker: update. 157ad8d43 Minor cleanup. a7841c869 Minor cleanup. dde4a9be9 Formatting. 4401a23f2 Merge pull request #1323 from Shizmob/patch-1 b70e9af18 Don't warn on python/prospector with no messages. 7cbb79b73 More detailed debug information. c1a209895 New checker for JavaScript: standard. 1c6cae0d2 Merge pull request #1320 from ametheus/patch-1 0a310ca0a Fix typo 3ea613f53 Xmllint: make "--xinclude" and "--postvalid" optional. 7d9aec0be Prospector no longer accepts option "--external-config". 6b76c26cb Puppet checker: don't redirect stderr when checking version. abff1d81e Merge pull request #1313 from tomfogg/master 5cc56dbde missing comma in swift errorformat after cleanup b69efd072 README: Swift is now supported. cf012bdea Version logging: minor cleanup. b9608e77b Xcrun: cleanup. 46fc1ec68 Merge branch 'master' of https://github.com/scrooloose/syntastic 3e33785d8 add licence for swift syntax checker a76370c14 add swift syntax checker support using xcrun git-subtree-dir: vim/bundle/syntastic git-subtree-split: 56e19eb81a5cdf75542def5b0b07f68aab50809f
10 years ago
rebar_opts(RebarFile) ->
Dir = get_root(filename:dirname(RebarFile)),
case file:consult(RebarFile) of
{ok, Terms} ->
RebarLibDirs = proplists:get_value(lib_dirs, Terms, []),
lists:foreach(
fun(LibDir) ->
code:add_pathsa(filelib:wildcard(LibDir ++ "/*/ebin"))
end, RebarLibDirs),
RebarDepsDir = proplists:get_value(deps_dir, Terms, "deps"),
code:add_pathsa(filelib:wildcard(RebarDepsDir ++ "/*/ebin")),
IncludeDeps = {i, filename:join(Dir, RebarDepsDir)},
proplists:get_value(erl_opts, Terms, []) ++ [IncludeDeps];
{error, _} when RebarFile == "rebar.config" ->
fallback_opts();
{error, _} ->
rebar_opts("rebar.config")
end.
Squashed 'vim/bundle/syntastic/' changes from 106c772b0..56e19eb81 56e19eb81 Sphinx checker: update maintainer's address. 131ec84e6 New checker for reStructuredText: sphinx. e46c64701 Bug fix: more findfile() fun. a728268d7 Bug fix: finding files in parent directories. 98e79d85f Nix checker: cleanup. c840655d1 Add support for .nix files b609b3bdd Checker ghc-mod: attempt to fix filename encodings. 84b4da7cf Manual: add a note about :mksession. b8682c302 Merge remote-tracking branch 'origin/pr/1447' 3dda9b833 Apps should be used for include_lib too cb9424c9e README: formatting. 7055ff936 Crystal external checker 0470fff0c Checker python/pylama: add option "--force". e15ebd336 Go checker: no longer attempt to redirect output of "go build". 5c6e78a27 README: suggest a safer cabbrev in FAQ. a7fde99ea Add support for Vera++ C++ checker 25ad02e12 README: add a link to the vim-eastwood plugin. 981196fdc Flow checker: use the "status" command. ae405fed8 Manual: add a note about zsh and rvm with MacVim. 5dba05af4 Bashate: make errorformat more permissive. 48b75c455 Tslint is a style checker. a8771fe6b Puppet-lint checker: --log-format now expects %{line}. 24bb29357 Minor comment fix. 4605886ea Safer opening of the error window (@blueyed). 3a30321fd Fix loclist timestamps for refresh (@blueyed). 9af644dac Remove comments from the tidy checker. 4fbe5f52c Flow checker: recover from negative end offsets. 48090a19f Updates to the manual. 615c890e7 Gfortran checker: bug fix: column handling and sorting for ifort. b152ac3db The gfortran checker now supports Intel Fortran. 80c5a047c Bug fix: b:cflags again. 2cf32d7be Bug fix: b:cflags applies only to C and C++ checkers. fe436371b Checker tsc: version 1.5 has option "--noEmit". a17db15e7 In some cases vim will set the filetype of *.pp files to 'pe-puppet' instead of 'puppet'. There is no functional difference so lets map 'pe-puppet' to 'puppet' so we can use the same default checkers. 710a854f6 Remove shellcheck checker for zsh ebfba7ec3 Puppet-lint no longer requires puppet. 2337c65b3 Keep track of b:changedtick. dac07db61 Cleanup: shut up most vint warnings. ac96ae4a2 Manual: add notes about powerline, vim-airline, and vim-go. ebadf9aff Windows brain damage: executable('foo') doesn't mean 'foo' is executable. b905f6d08 Mercury checker: cleanup. 4e0ac804c added mercury syntax checker 0cde75895 replaced erlang checker with the one from vimerl that works without rebar 84add5b7f Checkers using curl(1): allow redirections. 7b8526b96 Flow checker: bail out if there is no .flowconfig. 5b0d3dc8b README: rephrase. da1ecc0bb FAQ: add a note about $PATH. 231a78f5d Manual: update. 67fc031e0 Manual: fix examples to use g:syntastic_shell. 47eabae37 New global option: "shell". 869c5a726 Camlp4o checker: better error highlighting. 48812d833 Cleanup: exit codes are meaningless for checkers without exec. c297fbebb README: update address of tidy-html5. 69d20efc6 Elixir: handle warnings. fe3a48f33 Ruby checkers: make warning flags configurable. 272fc7df3 Manual: update the note about vim-auto-save. 413cdb354 Flow checker: make exe configurable. 5214f00a1 New checker for API Blueprint: snowcrash. a7758aa18 New checker for Vim: vint. b427af1e0 Cleanup: case-sensitive comparisons. 0e23cb097 Cleanup. fc8f8e500 RAEDME: minor rephrase. 9e5a6e657 README: add a link to vint-syntastic. 2a07c4acd New checker for SML: smlnj. c45293538 README: add a link syntastic-more. 399389c84 README: add links to a few third party checkers. c233c9bbd README: update URL for the Rust checker. f4b064e2d README: rephrase. 71aa71bc1 README: more details about enabling checkers. bccfdea4e Handling redefinition of exec: minor optimisation. 8256e4351 Typo. 471ce96af Remove the xcrun checker for Swift. d73546dd4 Java checker: more path fixes. cf4e18d3f Java checker: fix path detection. 776d4175c Handle redefinition of exec after the checker has run. 478218402 Security: disable the swift/xcrun checker by default. 372daff1a Reek checker: update. 157ad8d43 Minor cleanup. a7841c869 Minor cleanup. dde4a9be9 Formatting. 4401a23f2 Merge pull request #1323 from Shizmob/patch-1 b70e9af18 Don't warn on python/prospector with no messages. 7cbb79b73 More detailed debug information. c1a209895 New checker for JavaScript: standard. 1c6cae0d2 Merge pull request #1320 from ametheus/patch-1 0a310ca0a Fix typo 3ea613f53 Xmllint: make "--xinclude" and "--postvalid" optional. 7d9aec0be Prospector no longer accepts option "--external-config". 6b76c26cb Puppet checker: don't redirect stderr when checking version. abff1d81e Merge pull request #1313 from tomfogg/master 5cc56dbde missing comma in swift errorformat after cleanup b69efd072 README: Swift is now supported. cf012bdea Version logging: minor cleanup. b9608e77b Xcrun: cleanup. 46fc1ec68 Merge branch 'master' of https://github.com/scrooloose/syntastic 3e33785d8 add licence for swift syntax checker a76370c14 add swift syntax checker support using xcrun git-subtree-dir: vim/bundle/syntastic git-subtree-split: 56e19eb81a5cdf75542def5b0b07f68aab50809f
10 years ago
fallback_opts() ->
code:add_pathsa(filelib:wildcard("deps/*/ebin")),
code:add_pathsa(nested_app_ebins()),
[
{ i, filename:absname("apps") }, { i, filename:absname("deps") } | [ { i, filename:absname(Path) } || Path <- filelib:wildcard("deps/*/apps")]
].
Squashed 'vim/bundle/syntastic/' changes from 106c772b0..56e19eb81 56e19eb81 Sphinx checker: update maintainer's address. 131ec84e6 New checker for reStructuredText: sphinx. e46c64701 Bug fix: more findfile() fun. a728268d7 Bug fix: finding files in parent directories. 98e79d85f Nix checker: cleanup. c840655d1 Add support for .nix files b609b3bdd Checker ghc-mod: attempt to fix filename encodings. 84b4da7cf Manual: add a note about :mksession. b8682c302 Merge remote-tracking branch 'origin/pr/1447' 3dda9b833 Apps should be used for include_lib too cb9424c9e README: formatting. 7055ff936 Crystal external checker 0470fff0c Checker python/pylama: add option "--force". e15ebd336 Go checker: no longer attempt to redirect output of "go build". 5c6e78a27 README: suggest a safer cabbrev in FAQ. a7fde99ea Add support for Vera++ C++ checker 25ad02e12 README: add a link to the vim-eastwood plugin. 981196fdc Flow checker: use the "status" command. ae405fed8 Manual: add a note about zsh and rvm with MacVim. 5dba05af4 Bashate: make errorformat more permissive. 48b75c455 Tslint is a style checker. a8771fe6b Puppet-lint checker: --log-format now expects %{line}. 24bb29357 Minor comment fix. 4605886ea Safer opening of the error window (@blueyed). 3a30321fd Fix loclist timestamps for refresh (@blueyed). 9af644dac Remove comments from the tidy checker. 4fbe5f52c Flow checker: recover from negative end offsets. 48090a19f Updates to the manual. 615c890e7 Gfortran checker: bug fix: column handling and sorting for ifort. b152ac3db The gfortran checker now supports Intel Fortran. 80c5a047c Bug fix: b:cflags again. 2cf32d7be Bug fix: b:cflags applies only to C and C++ checkers. fe436371b Checker tsc: version 1.5 has option "--noEmit". a17db15e7 In some cases vim will set the filetype of *.pp files to 'pe-puppet' instead of 'puppet'. There is no functional difference so lets map 'pe-puppet' to 'puppet' so we can use the same default checkers. 710a854f6 Remove shellcheck checker for zsh ebfba7ec3 Puppet-lint no longer requires puppet. 2337c65b3 Keep track of b:changedtick. dac07db61 Cleanup: shut up most vint warnings. ac96ae4a2 Manual: add notes about powerline, vim-airline, and vim-go. ebadf9aff Windows brain damage: executable('foo') doesn't mean 'foo' is executable. b905f6d08 Mercury checker: cleanup. 4e0ac804c added mercury syntax checker 0cde75895 replaced erlang checker with the one from vimerl that works without rebar 84add5b7f Checkers using curl(1): allow redirections. 7b8526b96 Flow checker: bail out if there is no .flowconfig. 5b0d3dc8b README: rephrase. da1ecc0bb FAQ: add a note about $PATH. 231a78f5d Manual: update. 67fc031e0 Manual: fix examples to use g:syntastic_shell. 47eabae37 New global option: "shell". 869c5a726 Camlp4o checker: better error highlighting. 48812d833 Cleanup: exit codes are meaningless for checkers without exec. c297fbebb README: update address of tidy-html5. 69d20efc6 Elixir: handle warnings. fe3a48f33 Ruby checkers: make warning flags configurable. 272fc7df3 Manual: update the note about vim-auto-save. 413cdb354 Flow checker: make exe configurable. 5214f00a1 New checker for API Blueprint: snowcrash. a7758aa18 New checker for Vim: vint. b427af1e0 Cleanup: case-sensitive comparisons. 0e23cb097 Cleanup. fc8f8e500 RAEDME: minor rephrase. 9e5a6e657 README: add a link to vint-syntastic. 2a07c4acd New checker for SML: smlnj. c45293538 README: add a link syntastic-more. 399389c84 README: add links to a few third party checkers. c233c9bbd README: update URL for the Rust checker. f4b064e2d README: rephrase. 71aa71bc1 README: more details about enabling checkers. bccfdea4e Handling redefinition of exec: minor optimisation. 8256e4351 Typo. 471ce96af Remove the xcrun checker for Swift. d73546dd4 Java checker: more path fixes. cf4e18d3f Java checker: fix path detection. 776d4175c Handle redefinition of exec after the checker has run. 478218402 Security: disable the swift/xcrun checker by default. 372daff1a Reek checker: update. 157ad8d43 Minor cleanup. a7841c869 Minor cleanup. dde4a9be9 Formatting. 4401a23f2 Merge pull request #1323 from Shizmob/patch-1 b70e9af18 Don't warn on python/prospector with no messages. 7cbb79b73 More detailed debug information. c1a209895 New checker for JavaScript: standard. 1c6cae0d2 Merge pull request #1320 from ametheus/patch-1 0a310ca0a Fix typo 3ea613f53 Xmllint: make "--xinclude" and "--postvalid" optional. 7d9aec0be Prospector no longer accepts option "--external-config". 6b76c26cb Puppet checker: don't redirect stderr when checking version. abff1d81e Merge pull request #1313 from tomfogg/master 5cc56dbde missing comma in swift errorformat after cleanup b69efd072 README: Swift is now supported. cf012bdea Version logging: minor cleanup. b9608e77b Xcrun: cleanup. 46fc1ec68 Merge branch 'master' of https://github.com/scrooloose/syntastic 3e33785d8 add licence for swift syntax checker a76370c14 add swift syntax checker support using xcrun git-subtree-dir: vim/bundle/syntastic git-subtree-split: 56e19eb81a5cdf75542def5b0b07f68aab50809f
10 years ago
nested_app_ebins() ->
DetectedAppSrcFiles = filelib:wildcard("deps/*/apps/**/*.app.src"),
[apps_dir_from_src(AppSrcFile)||AppSrcFile<-DetectedAppSrcFiles].
Squashed 'vim/bundle/syntastic/' changes from 106c772b0..56e19eb81 56e19eb81 Sphinx checker: update maintainer's address. 131ec84e6 New checker for reStructuredText: sphinx. e46c64701 Bug fix: more findfile() fun. a728268d7 Bug fix: finding files in parent directories. 98e79d85f Nix checker: cleanup. c840655d1 Add support for .nix files b609b3bdd Checker ghc-mod: attempt to fix filename encodings. 84b4da7cf Manual: add a note about :mksession. b8682c302 Merge remote-tracking branch 'origin/pr/1447' 3dda9b833 Apps should be used for include_lib too cb9424c9e README: formatting. 7055ff936 Crystal external checker 0470fff0c Checker python/pylama: add option "--force". e15ebd336 Go checker: no longer attempt to redirect output of "go build". 5c6e78a27 README: suggest a safer cabbrev in FAQ. a7fde99ea Add support for Vera++ C++ checker 25ad02e12 README: add a link to the vim-eastwood plugin. 981196fdc Flow checker: use the "status" command. ae405fed8 Manual: add a note about zsh and rvm with MacVim. 5dba05af4 Bashate: make errorformat more permissive. 48b75c455 Tslint is a style checker. a8771fe6b Puppet-lint checker: --log-format now expects %{line}. 24bb29357 Minor comment fix. 4605886ea Safer opening of the error window (@blueyed). 3a30321fd Fix loclist timestamps for refresh (@blueyed). 9af644dac Remove comments from the tidy checker. 4fbe5f52c Flow checker: recover from negative end offsets. 48090a19f Updates to the manual. 615c890e7 Gfortran checker: bug fix: column handling and sorting for ifort. b152ac3db The gfortran checker now supports Intel Fortran. 80c5a047c Bug fix: b:cflags again. 2cf32d7be Bug fix: b:cflags applies only to C and C++ checkers. fe436371b Checker tsc: version 1.5 has option "--noEmit". a17db15e7 In some cases vim will set the filetype of *.pp files to 'pe-puppet' instead of 'puppet'. There is no functional difference so lets map 'pe-puppet' to 'puppet' so we can use the same default checkers. 710a854f6 Remove shellcheck checker for zsh ebfba7ec3 Puppet-lint no longer requires puppet. 2337c65b3 Keep track of b:changedtick. dac07db61 Cleanup: shut up most vint warnings. ac96ae4a2 Manual: add notes about powerline, vim-airline, and vim-go. ebadf9aff Windows brain damage: executable('foo') doesn't mean 'foo' is executable. b905f6d08 Mercury checker: cleanup. 4e0ac804c added mercury syntax checker 0cde75895 replaced erlang checker with the one from vimerl that works without rebar 84add5b7f Checkers using curl(1): allow redirections. 7b8526b96 Flow checker: bail out if there is no .flowconfig. 5b0d3dc8b README: rephrase. da1ecc0bb FAQ: add a note about $PATH. 231a78f5d Manual: update. 67fc031e0 Manual: fix examples to use g:syntastic_shell. 47eabae37 New global option: "shell". 869c5a726 Camlp4o checker: better error highlighting. 48812d833 Cleanup: exit codes are meaningless for checkers without exec. c297fbebb README: update address of tidy-html5. 69d20efc6 Elixir: handle warnings. fe3a48f33 Ruby checkers: make warning flags configurable. 272fc7df3 Manual: update the note about vim-auto-save. 413cdb354 Flow checker: make exe configurable. 5214f00a1 New checker for API Blueprint: snowcrash. a7758aa18 New checker for Vim: vint. b427af1e0 Cleanup: case-sensitive comparisons. 0e23cb097 Cleanup. fc8f8e500 RAEDME: minor rephrase. 9e5a6e657 README: add a link to vint-syntastic. 2a07c4acd New checker for SML: smlnj. c45293538 README: add a link syntastic-more. 399389c84 README: add links to a few third party checkers. c233c9bbd README: update URL for the Rust checker. f4b064e2d README: rephrase. 71aa71bc1 README: more details about enabling checkers. bccfdea4e Handling redefinition of exec: minor optimisation. 8256e4351 Typo. 471ce96af Remove the xcrun checker for Swift. d73546dd4 Java checker: more path fixes. cf4e18d3f Java checker: fix path detection. 776d4175c Handle redefinition of exec after the checker has run. 478218402 Security: disable the swift/xcrun checker by default. 372daff1a Reek checker: update. 157ad8d43 Minor cleanup. a7841c869 Minor cleanup. dde4a9be9 Formatting. 4401a23f2 Merge pull request #1323 from Shizmob/patch-1 b70e9af18 Don't warn on python/prospector with no messages. 7cbb79b73 More detailed debug information. c1a209895 New checker for JavaScript: standard. 1c6cae0d2 Merge pull request #1320 from ametheus/patch-1 0a310ca0a Fix typo 3ea613f53 Xmllint: make "--xinclude" and "--postvalid" optional. 7d9aec0be Prospector no longer accepts option "--external-config". 6b76c26cb Puppet checker: don't redirect stderr when checking version. abff1d81e Merge pull request #1313 from tomfogg/master 5cc56dbde missing comma in swift errorformat after cleanup b69efd072 README: Swift is now supported. cf012bdea Version logging: minor cleanup. b9608e77b Xcrun: cleanup. 46fc1ec68 Merge branch 'master' of https://github.com/scrooloose/syntastic 3e33785d8 add licence for swift syntax checker a76370c14 add swift syntax checker support using xcrun git-subtree-dir: vim/bundle/syntastic git-subtree-split: 56e19eb81a5cdf75542def5b0b07f68aab50809f
10 years ago
apps_dir_from_src(SrcFile) ->
SrcDir = filename:dirname(SrcFile),
filename:join(SrcDir, "../../ebin").
get_root(Dir) ->
Path = filename:split(filename:absname(Dir)),
filename:join(get_root(lists:reverse(Path), Path)).
get_root([], Path) ->
Path;
get_root(["src" | Tail], _Path) ->
lists:reverse(Tail);
get_root(["test" | Tail], _Path) ->
lists:reverse(Tail);
get_root([_ | Tail], Path) ->
get_root(Tail, Path).