You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

SonarQube v6.7.3:Issues页面如何过滤掉特定规则的违规项?

How to Filter Out Specific Rule Violations in SonarQube v6.7.3 Issues Page

Hey there, let’s tackle this filtering problem with SonarQube v6.7.3—since it’s an older version, the UI differs a bit from newer releases, but the tools to exclude rule violations are still easy to use once you know where to look. Here are two reliable approaches:

Option 1: Visual Filtering via the Left Panel

  • Start on your project’s Issues page (where you’re seeing the 1000+ issues list).
  • Look for the collapsed Filters panel on the left side of the page—click the arrow to expand it if it’s hidden.
  • Scroll down to the Rules category and expand it. Use the built-in search box here to quickly locate the specific rule you want to exclude.
  • Once you find the rule, check the box next to it. A small "exclude" icon (usually a minus sign) will appear—click that to mark the rule as excluded from your results.
  • Repeat this step for every other rule you want to filter out. The issues list will automatically update to hide violations from those rules as you go.

Option 2: Advanced Search Syntax (Faster for Multiple Rules)

If you have several rules to exclude or prefer typing commands, use the top search bar:

  • Click into the search bar (it’ll have placeholder text like "Search issues...").
  • Use the rule keyword with the != operator to exclude specific rules. For example, to exclude rules squid:S106 and java:S1234, your query would be:
    rule != squid:S106 AND rule != java:S1234
    
  • If you don’t know a rule’s unique key (like squid:S106), click on any violation from that rule—you’ll find the key listed near the rule name on the issue details page.
  • Hit Enter, and the list will refresh to show only violations that don’t match your excluded rules.

Pro Tip for Reusable Filters

If you need this filter regularly, after setting it up (via either method), click the Save Filter button at the top of the page. Name it something descriptive (like "Exclude Critical Code Smells") and you can load it anytime without reconfiguring.

Note: SonarQube v6.7.3 is end-of-life (since 2019), so it lacks some modern filtering features—but the methods above are fully supported in this version.

内容的提问来源于stack exchange,提问作者David M. Karr

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.26 09:12:43