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

Configuring the linter #440

Open
picoDoc opened this issue Oct 15, 2024 · 3 comments
Open

Configuring the linter #440

picoDoc opened this issue Oct 15, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@picoDoc
Copy link

picoDoc commented Oct 15, 2024

Hey,

I'm currently running VSCode 1.94.0, and 1.7.0 of the kdb extension. I have the linter enabled in extension options, and I'm able to get issues appearing in the "Problems" tab, so that's all good.

The issue I have is I can't configure the linter. I need to switch off some rules, like for example UNUSED_VAR. So far I've tried commenting in files, for example:

// @qlintrule UNUSED_VAR : false

but it seems to be ignoring these. How can I configure linting? Can I add a file, where should it be placed for it to pick it up etc.?

@ecmel
Copy link
Collaborator

ecmel commented Oct 15, 2024

Hi, have you installed qlint https://code.kx.com/developer/libraries/ If installed extension will support it.
Currently the built in linter does not have any configuration options it is on or off.

@picoDoc
Copy link
Author

picoDoc commented Oct 15, 2024

ah right, so there's no way to configure the built in linter in the VSCode extension? i.e. the Problems that appear like:

image

Is there any plan to add this as a feature? I'm not so interested in having to run the linter manually outside of VSCode

@ecmel
Copy link
Collaborator

ecmel commented Oct 16, 2024

qlint is also well integrated with the extension if you prefer it. Regarding the built in linter we are planning to add support for more config options.

@ecmel ecmel added the enhancement New feature or request label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants