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

only check tools name from shebang/env #1200

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wangvisual
Copy link

close #1198

This is my first time to write rust code, any comments are welcome.

The original solution is to compare the whole path of shebang line, but the path might be different even for the same tool.

This only check the last word of the application, and check it twice.

The 1st time is do exactly match, then 2nd time to starts_with match.

The starts_with match might match python_abc for Python, but original solution already have that issue for the env check.

The commit also made changes to the languages.json, it remove all the path from shebangs line, and remove all env lines as it not required anymore. Also I made a few changes to the languages definition.

Thanks for your time.

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.

better handling of shebangs line
1 participant