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

Add taint analysis to language server #4869

Closed
wants to merge 2 commits into from
Closed

Conversation

Danysan1
Copy link
Contributor

@Danysan1 Danysan1 commented Dec 19, 2020

When the taint analysis feature was added in b2c0993 and 23ab0f1 it was added only for the psalm executable, not for psalm-language-server.
Hence, IDE plugins were not able to display security alerts (see for example psalm/psalm-vscode-plugin#25 ).

I this commit I have ported from psalm.php to psalm-language-server.php the lines which load the taint analysis configuration.

With these changes and psalm-vscode-plugin I have been able to display taint alerts on Visual Studio Code:
immagine

@muglug
Copy link
Collaborator

muglug commented Dec 21, 2020

Thanks! I won't be merging this, though – to be useful taint analysis requires a scan of the entire codebase, so it's not well-suites to operate in language server mode.

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.

None yet

2 participants