exercism / exercism/elixir-analyzer

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

Aberta
#447 2 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Elixir
Estrelas
33
Forks
33
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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?

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.