vim-syntastic / syntastic

Syntax checking hacks for vim
Do What The F*ck You Want To Public License
11.3k stars 1.14k forks source link

Fix Erlang checker for test files with no test cfg #2372

Closed nickelization closed 3 years ago

nickelization commented 3 years ago

If we're editing a file in the "test" directory, the syntax checker assumes we should use the 'test' profile and attempts to read from "rebar.test.config" instead of "rebar.config". However, it is common to have Erlang projects with tests that don't necessarily use a separate "rebar.test.config" file, and in those types of projects the syntax checker will break. This patch handles this case by falling back to using "rebar.config" for tests if a separate "rebar.test.config" file is not found.

lcd047 commented 3 years ago

Merged, thank you.

nickelization commented 3 years ago

You're welcome! Thanks for the quick review and merge 😄