Skip to content

LockShouldWithTryFinallyRule规则不生效 #991

@wuwen5

Description

@wuwen5

Describe the bug
在idea-plugin和sonar中均未生效,没有按预期检查出违反规则的代码

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
idea中
image

sonar中
image

image

Desktop (please complete the following information):

  • OS: [mac os, linux]
  • Browser [chrome]
  • Version [p3c-pmd-2.1.1]

Additional context
Add any other context about the problem here.

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