Comments (9)
Same thing happening on my machine.
mix deps.compile
==> credo
Compiled lib/credo/check/code_pattern.ex
Compiled lib/credo.ex
Compiled lib/credo/check.ex
Compiled lib/credo/check/params.ex
Compiled lib/credo/check/property_value.ex
Compiled lib/credo/check/refactor/helper.ex
Compiled lib/credo/cli/command/categories.ex
Compiled lib/credo/cli/command/version.ex
Compiled lib/credo/cli/command/help.ex
Compiled lib/credo/cli/filename.ex
Compiled lib/credo/cli/output/categories.ex
Compiled lib/credo/cli/output.ex
Compiled lib/credo/cli/output/ui.ex
Compiled lib/credo/code/name.ex
== Compilation error on file lib/credo/code/module.ex ==
** (ArgumentError) argument error
:erlang.++(nil, [:when])
lib/credo/code/module.ex:41: (module)
(stdlib) erl_eval.erl:669: :erl_eval.do_apply/6
could not compile dependency :credo, "mix compile" failed. You can recompile this dependency with "mix deps.compile credo", update it with "mix deps.update credo" or clean it with "mix deps.clean credo"
12:10:21 Mini:erlman > iex --version
Erlang/OTP 18 [erts-7.1] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
Elixir 1.1.1
from credo.
Seems like the problem is in this line in module.ex
@def_ops Application.get_env(:credo, :def_ops)
Maybe if you put in a suitable default value.
from credo.
Seems like maybe I misunderstood the configuration of apps.
I thought I could define the default values for Credo in Credo's config/config.exs
. Isn't that the case?
from credo.
I don't believe that's the case. config/config.exs
applies to Credo itself, but not the app that is using it. So you could probably add some notes to the README about what the config option should be, or set the default in the code itself instead of in config/config.exs
.
from credo.
I could be wrong though. My app/OTP skills are not the best :)
from credo.
Mmmh ... now I feel pretty stupid. Will fix right away!
from credo.
@paulcsmith @bbense pushed v0.1.3
can you please check if it compiles?
from credo.
@rrrene Works for me now! Thank you! This is a very beautiful tool so far. Can't wait to dive in more :D
from credo.
0.1.3 compiles and works fine for me as well.
from credo.
Related Issues (20)
- Checking multiple files (not all the project) does not work
- In Windows folder path with ending `\` does not work with `--format json` HOT 4
- Credo segfaults (Elixir 1.14.2, Credo 1.6.7, Ubuntu 22.04) HOT 3
- False positive on NestedFunctionCalls check HOT 2
- False positive on MultiAliasImportRequireUse when using multiple modules in same file HOT 1
- False positive of `Credo.Check.Warning.UnusedStringOperation` HOT 3
- False positive: Identical sub-expression of || and && operator HOT 4
- False positive: snake_case warning for operators HOT 6
- MissedMetadataKeyInLoggerConfig shouldn't warn if you don't use the console logger backend HOT 6
- mix credo diff --from-git-ref master showing issues in files not modified HOT 5
- False negative: Nested blocks inside an if/else clause are not detected HOT 4
- Parse error with escaped heredocs HOT 2
- coworker wrote this, you may want to add it to credo HOT 3
- MissedMetadataKeyInLoggerConfig breaks with `metadata: :all` HOT 1
- Readability.NestedFunctionCalls triggered on function calls in interpolated strings
- Ignore ansi_color metadata key
- Sarif output cannot be parsed by `github/codeql-action/upload-sarif@v2` HOT 4
- False positive: Use a pipeline when there are nested function calls HOT 2
- Compilation error in file lib/credo/check/consistency/exception_names.ex
- `Credo.Check.Warning.MissedMetadataKeyInLoggerConfig` should by default allow Erlang's metadata keys
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 credo.