Giter Site home page Giter Site logo

Comments (3)

pantajoe avatar pantajoe commented on May 18, 2024 2

Turns out, this was a stupid typo πŸ˜„
Anyway, i improved the highlight ranges of issues that yield a trigger.
I release a new version that fixes this issue and I'll close this issue for now.

from vscode-elixir-credo.

pantajoe avatar pantajoe commented on May 18, 2024 1

Hey! Uh, that is not supposed to happen πŸ˜„ Thanks for pointing out that issue. It would be great if you could send me the output of the command mix credo --format json in your workspace. Then, I'll probably be able to fix this issue quite quickly.

from vscode-elixir-credo.

PJUllrich avatar PJUllrich commented on May 18, 2024 1

Of course! Here's the warning in json format:

{
      "category": "warning",
      "check": "Credo.Check.Warning.ApplicationConfigInModuleAttribute",
      "column": null,
      "column_end": null,
      "filename": "lib/web/controllers/stripe_webhook/stripe_webhook_controller.ex",
      "line_no": 6,
      "message": "Module attribute @webhook_signing_key makes use of unsafe Application configuration call Application.get_env/2",
      "priority": 11,
      "scope": "Web.StripeWebhookController",
      "trigger": "Application.get_env/2"
    }

The warning references a module attribute. It looks something like this:

defmodule StripeWebhookController do

  @webhook_signing_key Application.get_env(:my_app, :webhook_signing_key)

   # ... Other module stuff ...

end

Thank you for having a look at this πŸ™

from vscode-elixir-credo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.