Comments (4)
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.
Thanks @olivierobert
Let's go with your suggestion for AliasUsage
. I have updated #3 appropriately.
from elixir-templates.
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 --strict
mode
2/ Improve the .credo.exs
in priv/templates/nimble.phx.gen.template/.credo.exs
from elixir-templates.
Implemented in #31
from elixir-templates.
Related Issues (20)
- Fix: Infinite loop in the `Upgrade stack` task
- [Chore] Resolve the Gettext warning in config HOT 4
- Remove the reference to `ExVCR.Mock` in FeatureCase by default
- RFC: Refactoring optional addons prompt HOT 1
- [Chore] Add default `.iex.exs` file HOT 6
- Add `compass_credo_plugin` addon HOT 1
- Fix: Invalid "Project" struct when initializing Elixir project with custom module name
- Add `excellent_migrations` addon
- Refactoring flow of displaying optional add-ons prompts
- Fix: Loses all uncommitted changes after running `VersionTest`
- Refactor the "File not found" error logging messages for absent files when disabling credo checks?
- Add `ex_check` library HOT 8
- Improve the NimbleTemplate docs
- Add Phoenix authentication addon
- Fix invalid disable Credo rule on not existing file HOT 1
- Fix helper files naming
- Fix: Error when generating the web variant HOT 3
- Support Phoenix 1.7.0
- Upgrade alpine to latest version
- Upgrade `dart_sass` to fix CI build
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elixir-templates.