Open zielint0 opened 6 years ago
I hope there are no obstacles to fix them (API compatibility?)
Actually yes this is a problem. For me typo are the least problem we have in Spoon. We might be more careful when reviewing the code to avoid them as much as possible, but existing typo are not harmful as long as everything is well documented. Fixing them might led to API breaking changes that we really do not want.
I would say that the only moment we might be able to fix them is before a major release: then if we already break some things we might agree on breaking more things for a good reason.
In the meantime I'd keep the typo.
@surli
Just remark: while developing software, I observed that code rot starts from small things (like typos, formatting, etc.). Then bigger flaws follow (broken window). Removing any flaws (sacrificing backward compatibility) imho pays in the long run. I know, sounds terrible! ;-)
Also, what is counterintuitive, typos have many disadvantages.
This is counter intuitive but typos in practice makes development slower (one has to learn and remember misspelled names of variables, functions, classes), make attacks easier (see Zerocoin case) and make code looking unprofessional.
CtRole.java: ANNONYMOUS_EXECUTABLE -> ANONYMOUS_EXECUTABLE
I tried, but no luck so far.
https://github.com/INRIA/spoon/pull/2219 https://github.com/INRIA/spoon/pull/2220
@zielint0 can we close this one?
I would like to fix few more until 2019 and close it myself. This is not abandoned nor forgotten ;-)
There are many typos / errors / misspellings that
I hope there are no obstacles to fix them (API compatibility?)
refactor: occurences -> occurrences #2214refactor: fix naming: RECURSIVE_WILCARD -> RECURSIVE_WILDCARD #2213CtRole.java: ANNONYMOUS_EXECUTABLE -> ANONYMOUS_EXECUTABLE
src/main/java/spoon/reflect/meta/impl/ModelRoleHandlers.java: CtClass_ANNONYMOUS_EXECUTABLE_RoleHandler -> CtClass_ANONYMOUS_EXECUTABLE_RoleHandler
refactor: fix typo in element printer helper.java QALIFIED_NAME_SEPARATORS -> QUALIFIED_NAME_SEPARATORS #2223fix typo: Occurence->Occurrence #2249refactor: fix some typos #2253I would like to go forward and FIX them all.
@surli Any opinions?