Giter Club home page Giter Club logo

Comments (4)

olivierobert avatar olivierobert commented on July 30, 2024 1

I am more in favor in enforcing usage of aliases as it helps to clearly see the dependencies of each module at the top of the file. Also, it would be better to consistently use aliases and not on a case by case basis.

Based on the example:

# Better
defmodule MyApp.Web.Search do
  alias MyApp.External.TwitterAPI

  def twitter_mentions do
    TwitterAPI.search(...)
  end
end

# Less good
defmodule MyApp.Web.Search do
  def twitter_mentions do
    MyApp.External.TwitterAPI.search(...)
  end
end

from elixir-templates.

Tolsee avatar Tolsee commented on July 30, 2024

Thanks @olivierobert
Let's go with your suggestion for AliasUsage. I have updated #3 appropriately.

from elixir-templates.

andyduong1920 avatar andyduong1920 commented on July 30, 2024

Hi @Tolsee @olivierobert the AliasUsage seems didn't update in https://github.com/nimblehq/elixir-templates/pull/3/files#diff-78b22540b368040b6266f21dc737a6baR75 so I think to bring this issue up cc @rosle @bterone @hanam1ni

We would need to look at 2 topics

1/ Using credo --strictmode
2/ Improve the .credo.exs in priv/templates/nimble.phx.gen.template/.credo.exs

from elixir-templates.

andyduong1920 avatar andyduong1920 commented on July 30, 2024

Implemented in #31

from elixir-templates.

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.