alibaba / p3c

Alibaba Java Coding Guidelines pmd implements and IDE plugin
https://github.com/alibaba/p3c/wiki
Apache License 2.0
30.41k stars 8.06k forks source link

Analyzing in IDEA doesn't conform to editor inspection preferences at all #926

Open fwonce opened 2 years ago

fwonce commented 2 years ago

Describe the bug Some rules are not applicable to me and I disable them in IDEA's editor preferences. However whenever I rerun the whole project analyzing, the plugin ignores the preferences and display inspection results of all types of rules.

To Reproduce Steps to reproduce the behavior:

  1. Disable types of rules that are not applicable to me, by unchecking the options in Preferences / Editor / Inspections, or clicking 'Disable inspection' in the context menu of result groups. 20220812165033
  2. Rerun analyzing.

Expected behavior Disabled rules shouldn't apply to further analyzing and the inspection results should only include results of those remaining rules.

Screenshots 20220812165704

Desktop (please complete the following information):

Additional context Add any other context about the problem here.