Align a pair of tokens with naming convention called out in tests #14317
+17
−18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The (currently ignored)
test_checkMissingTokenDatatest case has a schwack of warnings like below:There was an intention somewhere that tokens following a naming convention. This is likely one of those things that unless someone actually sits down to deal with it, it'll be a code smell that lurks for longer than it needs to.
In the interests of cleaning this up and making the test output cleaner as well as any other future token work, I can have a stab at cleaning these up as proposed below. If this change is welcome, I'm willing to go and clean up others to, to get this done hopefully once-and-for-all.
Just anecdotally, getting involved in contributing to this codebase is complex as is due to the age and size of it. Something that actively hindered me was inconsistencies where it wasn't immediately clear what was desired. So this hopefully leaves things in a better state than I found them, and makes it easier for the next person - albeit marginally.
Opting to just do two to illustrate the point and garner feedback, but also to make reviews manageable instead of dumping it all in one massive PR 😅