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

Creating a plugin rule for maximum line length #1

Open
rkshthrmsh opened this issue Feb 23, 2023 · 3 comments
Open

Creating a plugin rule for maximum line length #1

rkshthrmsh opened this issue Feb 23, 2023 · 3 comments

Comments

@rkshthrmsh
Copy link

First off, thank you for the svls, sv-parser, and svlint tools! My question is, how can I create a custom plugin for setting a maximum line length? I would like to pass the plugin to svlint through the svls language server and use the result asynchronously on a text editor.

@dalance
Copy link
Owner

dalance commented Feb 27, 2023

The current plugin system supports to analyze syntax tree only.
So it is difficult to check max line length.

See the following issue. Max line length is planned.

dalance/svlint#237

@DaveMcEwan
Copy link
Contributor

@rkshthrmsh I've opened a PR on svlint which adds a check for maximum line length, though I've used the Vim name "textwidth": dalance/svlint#247
That PR adds a new type of rule which operates on lines of text (vs nodes of a syntax tree).

@DaveMcEwan
Copy link
Contributor

@rkshthrmsh There is now svlint v0.8.0 released which includes this functionality. Would you like to check it works for you and close this issue if you're satisfied?

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

No branches or pull requests

3 participants