Hello, community! How do i suggest or contribute any fixes (ideas?) to a Jmix plugin/studio? For example, when generating boilerplate code for entities:
- i want newlines to be added (https://rules.sonarsource.com/java/clean-code-attribute/consistency/RSPEC-113),
- furthermore, enumerations, used as entity fields fire up https://rules.sonarsource.com/java/clean-code-attribute/intentionality/RSPEC-2637/ it could be easily fixed by generating
this.severity = severity == null ? "" : severity.getId();
instead of
this.severity = severity == null ? null : severity.getId();
in setter (i.e public void setSeverity(final Severity severity) in this case)
3. also, there is a final that could be added to an every getter. it costs plugin nothing, but saves a couple of developer hours at the project start))
4. enum fields are created with @Column(name = "SEVERITY", nullable = false, length = 50) which is a magical number. maybe some constant could be added to make that code more reliable.