Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement autocommand support #104

Closed
wants to merge 2 commits into from
Closed

Implement autocommand support #104

wants to merge 2 commits into from

Conversation

neersighted
Copy link
Member

This pull adds a simple autocommand, ALELint, called by the core after all linters have been executed. This is useful for third-party integrations.

@@ -108,6 +108,9 @@ function! s:HandleExit(job) abort
call ale#sign#SetSigns(l:buffer, g:ale_buffer_loclist_map[l:buffer])
endif

" Call user autocommands. This allows users to hook into ALE's lint cycle.
doautocmd User ALELint
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I totally approve of this.

Could you document this behaviour in the documentation? I'll make a note to write a test which checks that the autocmd event is fired.

@w0rp w0rp mentioned this pull request Oct 13, 2016
15 tasks
@w0rp
Copy link
Member

w0rp commented Oct 13, 2016

I just merged this via the commandline after fixing the trivial conflict. Cheers! 🍻

@w0rp w0rp closed this Oct 13, 2016
@neersighted
Copy link
Member Author

Wait! I just pushed a test! 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants