Skip to content

[doc] Create a simple online Ruleset Editor #4296

@adangel

Description

@adangel

This is basically a Javascript app that uses the generated rule catalog in JSON format (#4295) and presents a simple UI:

  • A list of available rules
  • Filters to narrow down the list of rules (language, name, category, tags, ...)
  • A list of selected rules
  • A button to export the selected rules as a ruleset XML file

In a second phase, when a rule in the "selected rules" is selected, one can configure
the properties and priority.

In a third phase, we could provide support for file-filters (includes, excludes, ...)

In a fourth phase, we could support importing an existing ruleset so that one can
continue modifying the ruleset with that editor.

I guess, for PMD 7.0, the first phase would already be value to get experience
how useful this is. Note, that this editor doesn't replace the rule reference
documentation, since the editor won't display all information (like example configurations,
examples, full description, ...).

Metadata

Metadata

Assignees

No one assigned

    Labels

    an:enhancementAn improvement on existing features / rulesin:documentationAffects the documentation [doc]

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions