pantajoe / vscode-elixir-credo

VSCode support for Elixir Linter 'Credo'.

Home Page:https://marketplace.visualstudio.com/items?itemName=pantajoe.vscode-elixir-credo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Configuration file setting doesn't work

alex-strizhakov opened this issue Β· comments

Hi! πŸ‘‹

Big thanks for your work on the extension.

There is one problem with extension configuration through credo configuration file.

I've set configurationFile option into settings.json file, like this:

"elixir.credo.configurationFile": "config/.credo.exs"

and have these settings in .credo.exs.

%{
  configs: [
    %{
      name: "default",
      files: %{
        included: ["mix.exs", "lib/"],
        excluded: ["test/"]
      }
    }
  ]
}

When I run mix credo it works as expected, but in vscode, I have warnings in test modules, that Modules should have a @moduledoc tag.
Screenshot 2021-01-31 at 13 29 43

Am I doing something wrong?

Hi! Thanks for pointing that out. No, you are not doing anything wrong πŸ˜„ Simply put, this is not supported yet. The extension does not respect such preferences. However, I'll work on that soon. Currently, my time is rather limited, but I'll let you know here as soon as I got something ready.

Hey @alex-strizhakov, I released a new version respecting credos' configuration regarding file inclusion/exclusion.
Thus, I'll close this issue.