# \#linter

**URL:** https://discourse.julialang.org/tag/linter/1239.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Is there a ruff like linter](https://discourse.julialang.org/t/is-there-a-ruff-like-linter/130871)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 15\
**Last updated:** [August 1, 2026, 7:58am UTC](https://discourse.julialang.org/t/is-there-a-ruff-like-linter/130871 "2026-08-01T07:58:21Z")

</div>

In the Python universe ruff handles code formatting and linting. Is there anything in Julia that I could call like Linter.lint(".")?

---

## [Possible method call error -\> docstring above struct fields](https://discourse.julialang.org/t/possible-method-call-error-docstring-above-struct-fields/125825)

<div class="topic-metadata">

**Author:** [@JADekker](https://discourse.julialang.org/u/JADekker)\
**Replies:** 4\
**Last updated:** [February 12, 2025, 3:23pm UTC](https://discourse.julialang.org/t/possible-method-call-error-docstring-above-struct-fields/125825 "2025-02-12T15:23:47Z")

</div>

In VS Code, I keep getting that the linter returns a “possible method call error” if I try to create an instance of a struct with fields to which I’ve added docstrings; see the below MWE where the linter doesn’t complain…

---

## [Linter highlights missing references in Project.toml file](https://discourse.julialang.org/t/linter-highlights-missing-references-in-project-toml-file/122211)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 6\
**Last updated:** [November 12, 2024, 6:21pm UTC](https://discourse.julialang.org/t/linter-highlights-missing-references-in-project-toml-file/122211 "2024-11-12T18:21:32Z")

</div>

Sometimes the Julia VS Code linter highlights missing references in the Project.toml file (screenshot below). I’ve seen this before but never got around to reporting or asking about it. Has anyone else seen this? Is ther…

---

## [VSCode linter warning "A non-DataType has been used in a type declaration statement."](https://discourse.julialang.org/t/vscode-linter-warning-a-non-datatype-has-been-used-in-a-type-declaration-statement/118482)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 1\
**Last updated:** [August 22, 2024, 12:35pm UTC](https://discourse.julialang.org/t/vscode-linter-warning-a-non-datatype-has-been-used-in-a-type-declaration-statement/118482 "2024-08-22T12:35:06Z")

</div>

Why does the VSCode extension highlight such cases as “A non-DataType has been used in a type declaration statement.”, when this is a valid type declaration? I understand that this may be disabled, but what is the purp…

---

## [False warning in VSCode](https://discourse.julialang.org/t/false-warning-in-vscode/112638)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [April 7, 2024, 12:47pm UTC](https://discourse.julialang.org/t/false-warning-in-vscode/112638 "2024-04-07T12:47:21Z")

</div>

I have the following code: mutable struct KiteObserver length::Vector{Float64} elevation::Vector{Float64} end function KiteObserver() KiteObserver(Float64\[\], Float64\[\]) end I get the warning: Possible meth…

---

## [FromFile.jl's @from should be recognized by the julia-vscode extension](https://discourse.julialang.org/t/fromfile-jls-from-should-be-recognized-by-the-julia-vscode-extension/105293)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 6\
**Last updated:** [October 23, 2023, 3:00pm UTC](https://discourse.julialang.org/t/fromfile-jls-from-should-be-recognized-by-the-julia-vscode-extension/105293 "2023-10-23T15:00:30Z")

</div>

FromFile.jl fans are pushing to integrate FromFile.jl functionality integrated into Julia itself. Part of the motivation is to improve compatability of the VSCode extension with FromFile.jl. There was pull request to do…

---

## [VSCode warns about "possible method call error" in function definition](https://discourse.julialang.org/t/vscode-warns-about-possible-method-call-error-in-function-definition/103458)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 2\
**Last updated:** [September 1, 2023, 11:51pm UTC](https://discourse.julialang.org/t/vscode-warns-about-possible-method-call-error-in-function-definition/103458 "2023-09-01T23:51:41Z")

</div>

Here’s the screenshot. When the mouse hovers over the wiggly blue line, I see “Possible method call error. No quick fix available.” Has anyone encountered something like this?

---

## [How to flag Base functions that are being shadowed?](https://discourse.julialang.org/t/how-to-flag-base-functions-that-are-being-shadowed/102289)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 4\
**Last updated:** [July 31, 2023, 10:40am UTC](https://discourse.julialang.org/t/how-to-flag-base-functions-that-are-being-shadowed/102289 "2023-07-31T10:40:30Z")

</div>

Is there a way to highlight instances of function shadowing such as julia\> struct MyType end julia\> Matrix(::MyType) = ones(2,2) Matrix (generic function with 1 method) where a new Matrix function is created in a modu…

---

## [VS Code linter options?](https://discourse.julialang.org/t/vs-code-linter-options/92333)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 2\
**Last updated:** [January 7, 2023, 10:31am UTC](https://discourse.julialang.org/t/vs-code-linter-options/92333 "2023-01-07T10:31:40Z")

</div>

According to the Linter · Julia in VS Code documentation You can … configure it via various options with the julia.lint. prefix. However if I select it (View → Command Palette → insert julia.lint. ) I do not see any …
