kordamp / pomchecker

🦉 Maven POM syntax checker
Apache License 2.0
65 stars 11 forks source link

Add subcommand/flag to fix violations? #13

Closed helpermethod closed 1 year ago

helpermethod commented 1 year ago

A lot of linting tools also provide a means to autofix violations. In the same vein, pomchecker could deduce a lot of defaults from git (remote URL, username, developer) or GitHub (description).

Wdyt?

aalmiray commented 1 year ago

That would require editing the pom file which only makes sense when it's a pom.xml and not a <artifactId>-<version>.pom file.

Besides, I don't know how much pomchecker could do. If it tells you that <license> is missing, what values should it pick? What if it's <developers>? Context is king.

helpermethod commented 1 year ago

<license> or <developers> could e.g. be picked from GitHub / GitLab. But thinking of it, such a functionality may be out of scope for pomchecker, and it probably wouldn't help much in most cases.