Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize module names with multiple parts #33

Closed
jiegillet opened this issue Oct 31, 2021 · 0 comments · Fixed by #44
Closed

Normalize module names with multiple parts #33

jiegillet opened this issue Oct 31, 2021 · 0 comments · Fixed by #44
Assignees
Labels
x:action/improve Improve existing functionality/content x:knowledge/elementary Little Exercism knowledge required x:module/representer Work on Representers x:size/large Large amount of work x:type/coding Write code that is not student-facing content (e.g. test-runners, generators, but not exercises)

Comments

@jiegillet
Copy link
Contributor

jiegillet commented Oct 31, 2021

Make sure module names with multiple parts are replaced by placeholders. Replace individual atoms by different placeholders so that module path still make sense.

Example input

defmodule A.B.C do
  alias A.B, as: AB
end

Desired output

defmodule PLACEHOLDER_1.PLACEHOLDER_2.PLACEHOLDER_3 do
  alias PLACEHOLDER_1.PLACEHOLDER_2, as: PLACEHOLDER_4
end

(parentheses missing)

Curent output

defmodule(A.B.C) do
  alias(A.B, as: AB)
end
@angelikatyborska angelikatyborska added x:action/improve Improve existing functionality/content x:knowledge/elementary Little Exercism knowledge required x:module/representer Work on Representers x:type/coding Write code that is not student-facing content (e.g. test-runners, generators, but not exercises) x:size/large Large amount of work labels Oct 31, 2021
@jiegillet jiegillet self-assigned this Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x:action/improve Improve existing functionality/content x:knowledge/elementary Little Exercism knowledge required x:module/representer Work on Representers x:size/large Large amount of work x:type/coding Write code that is not student-facing content (e.g. test-runners, generators, but not exercises)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants