Skip to content

OnlyRule not work with custom_rules #6029

Open
@Ernest0-Production

Description

@Ernest0-Production

New Issue Checklist

Bug Description

If you specify a custom rule in the --only-rule argument, then no violations are detected during linting. (It does scan the files though)

When linting a built-in rule, everything works correctly

$ swiftlint lint --no-cache --only-rule my_rule

Environment

  • SwiftLint version 0.58.2
  • Xcode version 16.2
  • Installation method used mise-en-place

Metadata

Metadata

Assignees

Labels

enhancementIdeas for improvements of existing features and rules.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions