GithubHelp home page GithubHelp logo

@lint rules ignores macros about credo HOT 4 CLOSED

rrrene avatar rrrene commented on August 15, 2024
@lint rules ignores macros

from credo.

Comments (4)

rrrene avatar rrrene commented on August 15, 2024 2

Thanks! I also enjoyed the conference very much. Such a great community.

from credo.

rrrene avatar rrrene commented on August 15, 2024 1

Just released v0.4.0-beta5.

Some notable changes to the duplicate code detection:

  • The minimal mass was increased from 16 to 40 (an unscientific study of elixir codebases yielded a mean of 30 with a stddev of 20 in reported DuplicatedCode issues, so I followed my gut in picking 40)
  • @lint should now work on macros.
  • You can now additionally configure DuplicatedCode with a excluded_macros parameter to exclude e.g. the embedded_schema macro by default (so you don't have to anntotate them all with @lint).

An example configuration could be:

    {Credo.Check.Design.DuplicatedCode, excluded_macros: [:embedded_schema, :schema, :setup, :test]},

from credo.

rrrene avatar rrrene commented on August 15, 2024

Thx for reporting! 👍 We briefly talked at ElixirConf, right?

from credo.

tomekowal avatar tomekowal commented on August 15, 2024

That is right :) Nice event and I really enjoyed your talk :)

from 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.