exalysis icon indicating copy to clipboard operation
exalysis copied to clipboard

check variable names

Open LucaPaterlini opened this issue 6 years ago • 5 comments

an option like "-hard" It will mark as mistake "else" and will mark as mistake all the 1 character variable aside those declared inside a for or if statement.

LucaPaterlini avatar Jun 15 '19 12:06 LucaPaterlini

Can you name linters that would do this?

tehsphinx avatar Jun 17 '19 08:06 tehsphinx

actually, there is none that I know, but I suppose a script that apply a regex looking for those is something possible to implement

LucaPaterlini avatar Jun 17 '19 08:06 LucaPaterlini

Isn't this really a more general question about automated code analyzers for all Exercism languages?

bitfield avatar Jun 18 '19 15:06 bitfield

would be really nice if get implemented for all the languages supported by Exercism :)

LucaPaterlini avatar Jun 18 '19 17:06 LucaPaterlini

We will probably do something at some point about checking variable names. There are some naming guidelines that are enforced by linters and I would probably start with that.

Note that we are having discussions on this in the auto-mentor project: https://github.com/exercism/automated-mentoring-support/blob/master/docs/guidelines.md#approvability

tehsphinx avatar Jun 18 '19 21:06 tehsphinx