Skip to content

Rule jenkins/unsafe-classes resolves class paths against repository root #26

@NotMyFault

Description

@NotMyFault

It appears, the unsafe-classes rule resolves the link against the repository root:

Screenshot 2023-04-01 at 20 16 05

Obviously, the preview won't work because the classes aren't present in any of the plugin repositories.

Maybe we can unlink the references and escape them, given the name already represents the FQN you can look up.

See https://github.com/jenkinsci/job-config-history-plugin/security/code-scanning/1 for a real world example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions