Details
"linter.linters": {
"brakeman": {
"capabilities": [],
"command": [
[
"$isBundler",
"bundle",
"exec"
],
"brakeman",
"--format",
"json",
"--no-progress",
"--quiet",
"--absolute-paths",
[
"$config",
"--config-file",
"$config"
],
"$rootDir"
],
"configFiles": [
"brakeman.yml",
"config/brakeman.yml",
".brakeman/config.yml"
],
"enabled": true,
"languages": [
"ruby",
"ruby-puma",
"ruby-bundler",
"ruby-test",
"erb"
],
"name": "brakeman",
"url": "https://brakemanscanner.org/",
"when": [
"$isRails"
]
},
"credo": {
"capabilities": [
"ignore-line",
"ignore-file"
],
"command": [
"mix",
"credo",
"--format",
"json",
"--read-from-stdin",
"--all-priorities",
"$file"
],
"configFiles": [],
"enabled": true,
"languages": [
"elixir"
],
"name": "credo",
"url": "https://hexdocs.pm/credo/"
},
"dart": {
"capabilities": [],
"command": [
"dart",
"analyze",
"$file"
],
"configFiles": [],
"enabled": true,
"languages": [
"dart"
],
"name": "dart",
"url": "https://dart.dev/tools/linter-rules"
},
"eslint": {
"capabilities": [
"ignore-line",
"ignore-file",
"fix-one",
"fix-all",
"fix-inline"
],
"command": [
"eslint",
"--format",
"json",
[
"$config",
"--config",
"$config"
],
[
"$debug",
"--loglevel",
"debug",
"--debug"
],
[
"$fixAll",
"--fix-dry-run"
],
[
"$fixOne",
"--fix-dry-run"
],
"--stdin-filename",
"$file",
"--stdin"
],
"configFiles": [
".eslintrc.js",
".eslintrc.cjs",
".eslintrc.yaml",
".eslintrc.yml",
".eslintrc.json",
".eslintrc"
],
"enabled": true,
"languages": [
"javascript",
"jsx",
"typescript",
"typescriptreact"
],
"name": "eslint",
"url": "https://eslint.org"
},
"hadolint": {
"capabilities": [
"ignore-line"
],
"command": [
"hadolint",
"--format",
"json",
[
"$config",
"--config",
"$config"
],
"-"
],
"configFiles": [
".hadolint.yml",
".hadolint.yaml"
],
"enabled": true,
"languages": [
"dockerfile"
],
"name": "hadolint",
"url": "https://github.com/hadolint/hadolint"
},
"language-tool": {
"capabilities": [],
"command": [
"languagetool",
"--json",
"--autoDetect"
],
"configFiles": [],
"enabled": true,
"languages": [
"markdown",
"html",
"plaintext"
],
"name": "language-tool",
"url": "https://github.com/languagetool-org/languagetool"
},
"luacheck": {
"capabilities": [],
"command": [
"luacheck",
"--formatter",
"plain",
"--codes",
"--ranges",
[
"$config",
"--config",
"$config"
],
"-"
],
"configFiles": [
".luacheckrc"
],
"enabled": true,
"languages": [
"lua"
],
"name": "luacheck",
"url": "https://luacheck.readthedocs.io/en/stable/"
},
"markdownlint": {
"capabilities": [
"fix-inline"
],
"command": [
"markdownlint",
"--json",
[
"$fixAll",
"--fix"
],
[
"$config",
"--config",
"$config"
],
"--stdin"
],
"configFiles": [
".markdownlint.json",
".markdownlint.yaml",
".markdownlint.yml",
".markdownlintrc"
],
"enabled": true,
"languages": [
"markdown"
],
"name": "markdownlint",
"url": "https://github.com/DavidAnson/markdownlint"
},
"php-code-sniffer": {
"capabilities": [],
"command": [
"phpcs",
"--report",
"json",
[
"$config",
"--standard",
"$config"
],
[
"!$config",
"--standard",
"PSR12"
],
"--stdin-path",
"$file",
"-q",
"-"
],
"configFiles": [
".phpcs.xml",
"phpcs.xml",
".phpcs.xml.dist",
"phpcs.xml.dist"
],
"enabled": true,
"languages": [
"php"
],
"name": "php-code-sniffer",
"url": "https://github.com/squizlabs/PHP_CodeSniffer"
},
"proselint": {
"capabilities": [
"fix-inline"
],
"command": [
"proselint",
"--json",
[
"$config",
"--config",
"$config"
],
"-"
],
"configFiles": [
".proselintrc"
],
"enabled": true,
"languages": [
"markdown",
"html",
"plaintext"
],
"name": "proselint",
"url": "https://github.com/amperser/proselint/"
},
"pylint": {
"capabilities": [
"ignore-file"
],
"command": [
"pylint",
"--from-stdin",
"--output-format",
"json",
[
"$config",
"--rcfile",
"$config"
],
"$file"
],
"configFiles": [
".pylintrc"
],
"enabled": true,
"languages": [
"python"
],
"name": "pylint",
"url": "https://www.pylint.org"
},
"reek": {
"capabilities": [
"ignore-line"
],
"command": [
"reek",
"--format",
"json",
"--no-progress",
[
"$config",
"--config",
"$config"
],
"--stdin-filename",
"$file"
],
"configFiles": [
".reek.yml"
],
"enabled": true,
"languages": [
"ruby",
"ruby-test",
"ruby-puma",
"ruby-bundler"
],
"name": "reek",
"url": "https://github.com/troessner/reek"
},
"rubocop": {
"capabilities": [
"ignore-eol",
"fix-category",
"fix-all"
],
"command": [
[
"$isBundler",
"bundle",
"exec"
],
"rubocop",
[
"$lint",
"--format",
"json",
"--extra-details"
],
[
"$config",
"--config",
"$config"
],
[
"$debug",
"--debug"
],
[
"$fixAll",
"--auto-correct-all",
"--stderr"
],
[
"$fixCategory",
"--auto-correct-all",
"--only",
"$code",
"--stderr"
],
"--stdin",
"$file"
],
"configFiles": [
".rubocop.yml"
],
"enabled": true,
"languages": [
"ruby",
"ruby-test",
"ruby-puma",
"ruby-bundler"
],
"name": "rubocop",
"url": "https://rubocop.org"
},
"ruby": {
"capabilities": [],
"command": [
"ruby",
"-c",
"-w"
],
"configFiles": [],
"enabled": true,
"languages": [
"ruby",
"ruby-test",
"ruby-puma",
"ruby-bundler"
],
"name": "ruby",
"url": "https://www.ruby-lang.org"
},
"shellcheck": {
"args": {
"$bash": {
"extensions": [
".bash"
]
},
"$shellscript": {
"languages": [
"shellscript"
]
}
},
"capabilities": [],
"command": [
"shellcheck",
"--format",
"json",
"--enable",
"all",
"-"
],
"configFiles": [],
"enabled": true,
"languages": [
"shellscript",
"bash"
],
"name": "shellcheck",
"url": "https://github.com/koalaman/shellcheck"
},
"sqlfluff": {
"args": {
"$mysql": {
"languages": [
"mysql"
]
},
"$postgres": {
"languages": [
"postgres"
]
}
},
"capabilities": [
"fix-all",
"ignore-eol"
],
"command": [
"sqlfluff",
[
"$lint",
"lint",
"--format",
"json"
],
[
"$fixAll",
"fix"
],
[
"$postgres",
"--dialect",
"postgres"
],
[
"$mysql",
"--dialect",
"mysql"
],
"-"
],
"configFiles": [
".sqlfluff"
],
"enabled": true,
"languages": [
"mysql",
"postgres"
],
"name": "sqlfluff",
"url": "https://docs.sqlfluff.com/en/stable/index.html"
},
"stylelint": {
"capabilities": [
"fix-all"
],
"command": [
"stylelint",
"--formatter",
"json",
[
"$fixAll",
"--fix"
],
[
"$config",
"--config",
"$config"
],
"--stdin-filename",
"$file",
"--stdin"
],
"configFiles": [
"stylelint.config.js",
".stylelintrc.json",
".stylelintrc.yml",
".stylelintrc.yaml",
".stylelintrc.js"
],
"enabled": true,
"languages": [
"css",
"css-in-js",
"html",
"less",
"markdown",
"sass",
"scss",
"sugarss"
],
"name": "stylelint",
"url": "https://stylelint.io"
},
"swiftlint": {
"capabilities": [
"ignore-line",
"ignore-file"
],
"command": [
"swiftlint",
"--use-stdin",
"--reporter",
"json",
[
"$fixAll",
"--fix",
"--format"
],
[
"$config",
"--config",
"$config"
]
],
"configFiles": [
".swiftlint.yml",
".swiftlint.yaml"
],
"enabled": true,
"languages": [
"swift"
],
"name": "swiftlint",
"url": "https://realm.github.io/SwiftLint/"
},
"textlint": {
"capabilities": [
"fix-inline"
],
"command": [
"textlint",
"--format",
"json",
[
"$debug",
"--debug"
],
[
"$config",
"--config",
"$config"
],
"--stdin",
"--stdin-filename",
"$file"
],
"configFiles": [
".textlintrc",
".textlintrc.js",
".textlintrc.json",
".textlintrc.yaml",
".textlintrc.yml"
],
"enabled": true,
"languages": [
"markdown",
"plaintext",
"html"
],
"name": "textlint",
"url": "https://textlint.github.io"
},
"vale": {
"capabilities": [],
"command": [
"vale",
"--output",
"JSON",
[
"$config",
"--config",
"$config"
],
"--ext",
"$extension"
],
"configFiles": [
".vale.ini"
],
"enabled": true,
"languages": [
"markdown",
"plaintext",
"html"
],
"name": "vale",
"url": "https://github.com/errata-ai/vale"
},
"yamllint": {
"capabilities": [
"ignore-line"
],
"command": [
"yamllint",
"--format",
"parsable",
[
"$config",
"--config-file",
"$config"
],
"-"
],
"configFiles": [
".yamllint.yml",
".yamllint.yaml",
".yamllint"
],
"enabled": true,
"languages": [
"yaml"
],
"name": "yamllint",
"url": "https://github.com/adrienverge/yamllint"
}
}
Output linter
[02/11/2022, 10:21:37] No linters found for "Log"
[02/11/2022, 10:21:37] Reading from cache? false
I've noticed that this extension will
- delay a file from being saved until linters run
- block GitHub copilot from making inline suggestions
Are there any plans to address these things? I've started to read in the code to see if I can figure out where these things happen but I'm not super savvy with VSCode extensions (recently converted from vim). Happy to try and work on these things if someone pointed me in the right direction on where to start!
The tagline for the package in VSCode reads:
An extension for VSCode that provides linting for multiple languages in on package.
It should say,
An extension for VSCode that provides linting for multiple languages in >>> one <<< package.
Hi,
I tested this extension on a shell script
It worked when i opened a folder containing the script
But it didn't worked when i opened a workspace (with only 1 folder) containing this folder
Right now the only place to get this extension is via MS marketplace. Due to licensing issues VSCodium and other open source versions are unable to use that store.
Please register this extension in https://open-vsx.org/
Since a number of linters are npm packages it would be great to support node_modules/.bin in addition to $PATH so that we can add the various linters as devDependencies of the current project avoiding the need for developers to install them globally and we can control the version to avoid issues where different developers can be using different versions.
Hello:
I have sqlfluff
installed but when I save my postgres
migration file with .sql
extension, linter reports No linters found for "sql"
.
Does it need extra configuration? What should I do to work it around? Please lend a hand!
PHPCS Version: 3.7.2 (stable)
Searched for any of /Users/jacob/.vscode-insiders/extensions/fnando.linter-0.0.19/shims/phpcs-shim; couldn't be found within $PATH
It then goes on to print my $PATH
, which includes all the proper paths, including the one to the phpcs
script.
It's worth mentioning that I don't think this error message is particularly helpful or accurate.
I tried debugged the phpcs-shim
. I get an exit code of 127 from the phpcs call.
I then tried replicating the command using phpcs
directly. However, I discovered that it's hanging with using STDIN. Passing the file as the last argument seems to work, without using STDIN, using phpcs
directly.
phpcs --report=json --standard=/path/to/phpcs.xml /path/to/file.php -q
I then tried modifying the /Users/jacob/.vscode-insiders/extensions/fnando.linter-0.0.19/shims/phpcs-shim
arguments to match the successful command from phpcs
. I'm able to get the command
array to print what seems to be the correct arguments, but I suspect the shim isn't written to handle the file being at the end of the command, without a flag.
"command": [
"/Users/jacob/.vscode-insiders/extensions/fnando.linter-0.0.19/shims/phpcs-shim",
"--report",
"json",
"--standard",
"/path/to/phpcs.xml",
"/path/to/file.php",
"-q"
]
At this point, maybe that shim can be rewritten to process the /path/to/file.php
without a flag. But, I don't want to go down that path if there is something else going on here that I'm overlooking.
Any ideas?
I've created some ignore rule in .yamllint.yaml
like the following
rules:
indentation:
ignore:
- "base/templates/deployment.yaml"
When I run yamllint
from the command line all works fine.
But in VS-Code I still get a line to long error.
After some experimentation I stumbled about this in .settings
"yamllint": {
"capabilities": ["ignore-line"],
"command": [
"yamllint",
"--format",
"parsable",
["$config", "--config-file", "$config"],
"-"
],
...
which means, yamllint
reads the file from stdin
and obvious has no filename.
I can get around this problem by calling yamllint
with the filename
"yamllint": {
"capabilities": ["ignore-line"],
"command": [
"yamllint",
"--format",
"parsable",
["$config", "--config-file", "$config"],
"$file" # <-- change!
],
...
but I have to re-write the ignore rules to
rules:
indentation:
ignore:
- "**/base/templates/deployment.yaml"
because it seems, that yamllint
is not executed from the root of the workspace.
After these changes my yaml files are linted as they were linted from the command line.
Is there anything that I miss, or is there a better way to tackle this problem?
Clippy lints for Rust files aren't working for me. In the linter
log, every lint produces a message like this:
offense is for another file {
"src": "file://d:\\Documents\\Creation\\Rust\\project\\src\\main.rs",
"uri": "file:///d%3A/Documents/Creation/Rust/project/src/main.rs"
}
or
offense is for another file {
"src": "file://d:\\Documents\\Creation\\Rust\\project\\src\\main.rs",
"uri": "file:///d%3A/Documents/Creation/Rust/project/src/app.rs"
}
This appears to happen for main.rs
as well as all other files. Using Clippy 0.1.72 on Windows, VSCode version 1.84.0, extension version 0.0.19.
I am using this extension on VS Code in Windows with gherkin-lint and am having some issues. If I look at the output, I get something like this:
Language id: cucumber
Matching linters: [
"gherkin-lint"
]
Reading from cache? false
Linter config: {
"capabilities": [],
"command": [
"gherkin-lint",
"--config",
"$config",
"--format",
"json",
"$file"
],
"configFiles": [
".gherkin-lintrc"
],
"enabled": true,
"languages": [
"cucumber"
],
"name": "gherkin-lint",
"url": "https://github.com/vsiakka/gherkin-lint"
}
Args: {
"$rootDir": "c:\Projects\AyaHealthcare\Applications\QaAutomation",
"$file": "/c:/Projects/AyaHealthcare/Applications/QaAutomation/cypress/e2e/smoke/travelx/ticketing-smoke-tests.feature",
"$extension": ".feature",
"$extensionBare": "feature",
"$config": "c:\Projects\AyaHealthcare\Applications\QaAutomation\.gherkin-lintrc",
"$debug": false,
"$lint": true,
"$language": "cucumber",
"$shebang": ""
}
{
"rootDir": "c:\Projects\AyaHealthcare\Applications\QaAutomation",
"configFile": "c:\Projects\AyaHealthcare\Applications\QaAutomation\.gherkin-lintrc",
"command": [
"gherkin-lint",
"--config",
"c:\Projects\AyaHealthcare\Applications\QaAutomation\.gherkin-lintrc",
"--format",
"json",
"/c:/Projects/AyaHealthcare/Applications/QaAutomation/cypress/e2e/smoke/travelx/ticketing-smoke-tests.feature"
]
}
Error while running "gherkin-lint": spawnSync gherkin-lint ENOENT
gherkin-lint's command took 37ms
Just trying to throw things at the wall and see what would stick, I customized the command used in my settings.json so that it would add the .cmd extension to it, and that does cause it to at least no longer return the error running the command.
"linter.linters": {
"gherkin-lint": {
"command": [
"gherkin-lint.cmd",
"--config",
"$config",
"--format",
"json",
"$file"
]
}
},
But it doesn't return any issues, even if there are issues reported running gherkin-lint directly. I noticed the $file path generated always seems to have a / at the beginning, and I'm thinking perhaps that's causing a problem?
Language id: cucumber
Matching linters: [
"gherkin-lint"
]
Reading from cache? false
Linter config: {
"capabilities": [],
"command": [
"gherkin-lint.cmd",
"--config",
"$config",
"--format",
"json",
"$file"
],
"configFiles": [
".gherkin-lintrc"
],
"enabled": true,
"languages": [
"cucumber"
],
"name": "gherkin-lint",
"url": "https://github.com/vsiakka/gherkin-lint"
}
Args: {
"$rootDir": "c:\Projects\AyaHealthcare\Applications\QaAutomation",
"$file": "/c:/Projects/AyaHealthcare/Applications/QaAutomation/cypress/e2e/smoke/travelx/ticketing-smoke-tests.feature",
"$extension": ".feature",
"$extensionBare": "feature",
"$config": "c:\Projects\AyaHealthcare\Applications\QaAutomation\.gherkin-lintrc",
"$debug": false,
"$lint": true,
"$language": "cucumber",
"$shebang": ""
}
{
"rootDir": "c:\Projects\AyaHealthcare\Applications\QaAutomation",
"configFile": "c:\Projects\AyaHealthcare\Applications\QaAutomation\.gherkin-lintrc",
"command": [
"gherkin-lint.cmd",
"--config",
"c:\Projects\AyaHealthcare\Applications\QaAutomation\.gherkin-lintrc",
"--format",
"json",
"/c:/Projects/AyaHealthcare/Applications/QaAutomation/cypress/e2e/smoke/travelx/ticketing-smoke-tests.feature"
]
}
gherkin-lint's command took 493ms
If I run the command exactly as it is laid out in the output directly in my terminal, but without that slash at the beginning of the file path, gherkin-lint runs successfully and returns the list of issues:
gherkin-lint.cmd --config c:\Projects\AyaHealthcare\Applications\QaAutomation.gherkin-lintrc --format json c:/Projects/AyaHealthcare/Applications/QaAutomation/cypress/e2e/smoke/travelx/ticketing-smoke-tests.feature
[{"filePath":"c:\Projects\AyaHealthcare\Applications\QaAutomation\cypress\e2e\smoke\travelx\ticketing-smoke-tests.feature","errors":[{"message":"Missing Feature name","rule":"no-unnamed-features","line":1},{"message":"Forbidden tag @Focus on Scenario","rule":"no-restricted-tags","line":3}]}]
Hi,
I'm using vscode-linter to lint my yaml and docker-compose.yml (which is yaml) files.
Since I have also the "composer" extension for docker, the Language id changed from yaml to dockercompose. and yamllint don't recognize this.
It works if I run yamllint manually:
yamllint -c ~/.yamllint.yml docker-compose.yml
Output in vscode:
Language id: dockercompose
No linters found for "dockercompose"
settings.json:
"linter.linters": {
"yamllint": {
"capabilities": [
"ignore-line"
],
"command": [
"yamllint",
"--format",
"parsable",
[
"$config",
"--config-file",
"$config"
],
"-"
],
"configFiles": [
".yamllint.yml",
".yamllint.yaml",
".yamllint"
],
"enabled": true,
"languages": [
"yaml",
],
"name": "yamllint",
"url": "https://github.com/adrienverge/yamllint"
}
},
I have added dockercompose to languages, but no result:
"languages": [
"yaml",
"dockercompose"
],
I also added a complete new section, with language only set to dockercompose, no luck...
"linter.linters": {
"yamllint": {
"capabilities": [
"ignore-line"
],
"command": [
"yamllint",
"--format",
"parsable",
[
"$config",
"--config-file",
"$config"
],
"-"
],
"configFiles": [
".yamllint.yml",
".yamllint.yaml",
".yamllint"
],
"enabled": true,
"languages": [
"yaml",
],
"name": "yamllint",
"url": "https://github.com/adrienverge/yamllint"
},
"yamllint_dockercompose": {
"capabilities": [
"ignore-line"
],
"command": [
"yamllint",
"--format",
"parsable",
[
"$config",
"--config-file",
"$config"
],
"-"
],
"configFiles": [
".yamllint.yml",
".yamllint.yaml",
".yamllint"
],
"enabled": true,
"languages": [
"dockercompose"
],
"name": "yamllint_dockercompose",
"url": "https://github.com/adrienverge/yamllint"
}
},
What can I do here? Do i something wrong?
Thanks for help :)
I have set up a simple custom linter according to the instructions here.
It worked just fine until I removed the configFiles
property from the configuration in package.json
.
When it's missing, the plugin builds, get loaded (it's listed in "available linters" log entry), but it never gets executed. No errors or warnings are issues anywhere (or at least in all places I searched for).
This is very counter-intuitive - some simple linters may not require or even support configuration files.
Adding an empty list: "configFiles": []
resolves the issue, but I spent quite some time to find it out.
Type: Bug
Made prettier to load a lot when saving file
Extension version: 0.0.13
VS Code version: Code 1.70.1 (6d9b74a70ca9c7733b29f0456fd8195364076dda, 2022-08-10T06:08:33.642Z)
OS version: Windows_NT x64 10.0.22000
Modes:
Connection to 'wsl+Ubuntu' could not be established
System Info
Item |
Value |
CPUs |
Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz (12 x 2592) |
GPU Status |
2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_renderer: enabled_on video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled |
Load (avg) |
undefined |
Memory (System) |
31.91GB (16.38GB free) |
Process Argv |
--crash-reporter-id 65355a84-9a99-4d60-9d6b-3ca1bb3e980a |
Screen Reader |
no |
VM |
0% |
Connection to 'wsl+Ubuntu' could not be established
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
wslgetstarted:30449410
cppdebug:30492333
pylanb8912:30545647
vsclangdf:30486550
c4g48928:30535728
hb751961:30543456
dsvsc012:30540252
azure-dev_surveyone:30548225
Could you please tell me how can I specify config for yamllint in VScode?
Hi, the pylint doc url needs an update/removal:
|
return `http://pylint-messages.wikidot.com/messages:${code.toLowerCase()}`; |
Currently the wikidot is no longer pylint message documentation:
http://pylint-messages.wikidot.com/
Recommend Projects
-
-
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
An Open Source Machine Learning Framework for Everyone
-
The Web framework for perfectionists with deadlines.
-
A PHP framework for web artisans
-
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
Some thing interesting about web. New door for the world.
-
A server is a program made to process requests and deliver data to clients.
-
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Some thing interesting about visualization, use data art
-
Some thing interesting about game, make everyone happy.
-
Recommend Org
-
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Open source projects and samples from Microsoft.
-
Google ❤️ Open Source for everyone.
-
Alibaba Open Source for everyone
-
Data-Driven Documents codes.
-
China tencent open source team.
-