-
Notifications
You must be signed in to change notification settings - Fork 2
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
Example on how to set rule id in format? #15
Comments
|
there's only lines format nothing else. Will you add ID support for lines? |
there's also question for you in dotenv-linter/dotenv-linter#803 |
OK, I will add support capturing by user defined placeholder in the next update. |
* move to quickjs-emscripten from jexpr
[#15] support capturing by user defined plalaceholders
I've released {
"name": "cmd",
"binPath": "cmd",
"condition": "$.fileExtname == '.go'",
"on": [
"save"
],
"args": [
"/c",
"echo",
"F:\\work\\temp\\proto\\main.go:1 SpaceCharacter: The line has spaces around equal sign",
],
"diagnostic": {
"output": "stdout",
"type": "lines",
"format": "${file}:${startLine} ${ruleId}: ${message}",
"actions": [
{
"type": "openUri",
"title": "`Open ${$$.ruleId} rule document page`",
"uri": "`https://dotenv-linter.github.io/#/checks/${$$.ruleId.replace(/([a-z])([A-Z])/g, '$1_$2').toLowerCase()}`"
}
]
}
} |
superb :) once I'm finished with complete config for dotenv-lint I'll add PR for whole example in the folder ;) |
@tamayika something's up with new version as in any-lint output I get infinite loop of errors:
config: "any-lint.linters": [
{
"args": [
"poe",
"lint:dotenv",
"-f",
"${file}"
],
"binPath": "poetry",
"condition": "$.fileExtname.endsWith('.env')",
"cwd": "${workspaceFolder}",
"diagnostic": {
"actions": [
{
"title": "`Open ${$$.ruleId} rule document page`",
"type": "openUri",
// eslint-disable-next-line @stylistic/js/max-len
"uri": "`https://dotenv-linter.github.io/#/checks/${$$.ruleId.replace(/([a-z])([A-Z])/g, '$1_$2').toLowerCase()}`"
}
],
"format": "${file}:${startLine} ${message}",
"output": "stdout"
},
"name": "dotenv-linter",
"on": [
"change",
"save"
]
}
] |
for some reason |
Sorry, I found dynamic import error only in vscode production environment. |
Wow, these issues are old as hell. Is there anything you can do to rewrite the way you were trying? Because I feel like nothing will happen to fix the issues for ages |
yeah, if possible somehow to rethink the solution to not wait for these changes then probably the wisest thing would be to it... |
I will investigate if there is a work around in a week. |
I've released |
For example:
output from cli:
.internal/.src/.env/.0.env:1 SpaceCharacter: The line has spaces around equal sign
format:
${file}:${startLine} ${message}
But
SpaceCharacter
is ID of rule that I'd like to process inopenUri
action. Did not find any example how to do it with plain line output parsing and not json. Please advise.something like:
${file}:${startLine} ${ruleId}: ${message}
Then if I understood correctly use something like:
The text was updated successfully, but these errors were encountered: