exasol / error-code-crawler-maven-plugin

Validator and crawler for exasol-error-codes in Java code
MIT License
1 stars 1 forks source link

Propose next index in case of duplicate codes #66

Closed kaklakariada closed 2 years ago

kaklakariada commented 2 years ago

In case of duplicate error codes it would be helpful if the crawler could propose the next free index in the error message. This would make it easier to fix the problem without searching the complete code.

jakobbraun commented 2 years ago

The big plan for this is to maintain the highest error-code in the error-code-config.yml. In addition we planned to add a script that supplies the next free error-code + increases the number. Then we can add an integration to IDEs that past this by a certain key-combination.

jakobbraun commented 2 years ago

Searching for the next free one is problematic, since it would re-use error-codes that were removed.

kaklakariada commented 2 years ago

I would just propose highest-index + 1. Then the user does not have to look it up themselves