exercism / exercism/elixir-analyzer

Remote Control Car: Analyzer recommends a default argument for an arity zero function.

Open
#447 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Elixir
Stars
33
Forks
33
PR merge metrics
No merged PRs in 30d

Description

If I'm reading this correctly, the analysis recommends that I "Use a default argument for defining the function `new.` despite the instructions asking for an arity/0 function.

![Image](https://github.com/user-attachments/assets/9acd1d51-c41d-45e0-9da8-ad1fe2bc4bb2)
![Image](https://github.com/user-attachments/assets/d708eb8d-91e4-43c9-8360-3a555245a3c8)

Unless this is recommending a default argument for the arity/1 function, it conflicts with the instructions of the exercise to have a default argument for a function that should take zero arguments. Maybe I'm wrong, though?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.