Giter Site home page Giter Site logo

Comments (4)

pantajoe avatar pantajoe commented on May 18, 2024 1

Okay, thanks for the hint! Hm, I suppose I would add a config option to specify a git-merge-base that – when present – automatically activates the diff mode of credo. Will be starting working on it this week and tell you when you can try it out.

from vscode-elixir-credo.

pantajoe avatar pantajoe commented on May 18, 2024

Hi! Sorry for answering this late. I've had much on my plate lately and I overlooked the notification for this issue within all dependabot alerts πŸ˜„

Seems like a nice addition to Credo overall. So what would be your suggestion on how to display the new functionality?

A command or a setting to toggle the behavior to default or to the new diff behavior? And it would make sense to only show the new issues of the diff output command right?

I'm currently not sure what yields the best user experience, open to suggestions!

from vscode-elixir-credo.

bradleygolden avatar bradleygolden commented on May 18, 2024

Hey no worries! Ideally I wouldn't have to do anything if that's possible. Right now I'm using an alias to make mix credo diff ... the default when running credo. Here's an example:

  defp aliases do
    [
      credo: ["credo diff --from-git-merge-base origin/dev"],
      ...
    ]
  end

The problem though is that I've had to comment this out because it causes the vscode extension to fail because the new output format is different than what's expected.

And yes, ideally the extension would only show new issues from the diff output command and not all issues.

from vscode-elixir-credo.

pantajoe avatar pantajoe commented on May 18, 2024

Published in version 0.8.0. πŸš€

You can now specify in the settings whether to enable the diff mode or not with "elixir.credo.diffMode.enabled": true | false
and a custom merge base with "elixir.credo.diffMode.mergeBase": "feat-01" (default merge base is "main").

Let me know what you think!

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.