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

Ignore linting in regex expressions #141

Open
ryonakano opened this issue Nov 2, 2020 · 0 comments
Open

Ignore linting in regex expressions #141

ryonakano opened this issue Nov 2, 2020 · 0 comments

Comments

@ryonakano
Copy link

ryonakano commented Nov 2, 2020

It seems like linting is ignored in strings:

// This code does not raise any error in vala-lint
var regex = new Regex ("^(xkb|m17n):(\\w+)");

However, if you use regex directly, vala-lint raise "space-before-paren" error:

// This code raise "space-before-paren" error in vala-lint
var regex = /^(xkb|m17n):(\w+)/;

You need to disable linting in the line to fix this, but I feel it's not smart:

var regex = /^(xkb|m17n):(\w+)/; // vala-lint=space-before-paren

It would be great if linting is disabled in regex expressions.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

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

1 participant