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

Is it possible to use shorter and thus better readable methodnames in JSON? #75

Open
JanSchankin opened this issue Jul 27, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@JanSchankin
Copy link
Contributor

Right now we sometimes have quite long and hard to read method names in the JSON-Files. This becomes tedious if the method names are slightly refactored, so that the names in the JSON files need to be changed too. If the change is not done together with the original refactoring but instead as part of a bugfix a few days later, or by another person that doesn't now anything about the refactoring, it becomes hard to find , or even notice the difference.

The names are this extensive, because they must be distinct. Maybe this can be circumnavigated by checking if the name already exists in the SampleRepository. If this is not the case a short name can be used. Otherwise the extensive distinct name must be used.

Is this possible?

@JanSchankin JanSchankin added the enhancement New feature or request label Jul 27, 2021
@rcschrg
Copy link
Contributor

rcschrg commented Dec 13, 2021

When I remember correctly, there is an option to overwrite the method name with a custom string. I guess nobody will consistently implement it like this, when there is no way to force it, so this feature might be useless. Perhaps we should just add some kind of strict mode? This mode will check a. that all given names are unique and b. that the name was set. Back then i did intend that it should be the default mode to always name the method/pointcut/whatever yourself to avoid this refactoring problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants