Feuermagier / autograder

Automatic grading of student's Java code
MIT License
13 stars 7 forks source link

Detect continuously named/numbered identifiers with the same prefix #496

Open Luro02 opened 5 months ago

Luro02 commented 5 months ago

What it does

This might be a better implementation for the confusing identifier check. The goal is to detect when variables have a common prefix, like argA, argB, argC or arg1, arg2, arg3.

To detect this: Check if there are at least k variables that have a common prefix of length n and their remaining part matches a given sequence like [0, 1, 2, ...] or [A, B, C, ...].

Lint Name

No response

Category

naming

Example

<code>

Could be written as:

<code>