# What's difference between SonarWay java rule with SonarSource Rules(Java)

**URL:** <https://community.sonarsource.com/t/whats-difference-between-sonarway-java-rule-with-sonarsource-rules-java/115256>\
**Category:** SonarQube Server / Community Build\
**Tags:** sonarqube, java\
**Created:** [May 14, 2024, 5:18am UTC](https://community.sonarsource.com/t/whats-difference-between-sonarway-java-rule-with-sonarsource-rules-java/115256 "2024-05-14T05:18:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yks095](https://avatars.discourse-cdn.com/v4/letter/y/a4c791/32.png) [@yks095](https://community.sonarsource.com/u/yks095)\
**Post date:** [May 14, 2024, 5:18am UTC](https://community.sonarsource.com/t/whats-difference-between-sonarway-java-rule-with-sonarsource-rules-java/115256/1 "2024-05-14T05:18:25Z")

</div>

Hello, I have some questions about Rules.  
I’m using SonarQube Community Edition(9.9.3).  
I found out, in my version, SonarQube’s SonarWay(java) has 628 rules, but [SonarRules(java)](https://rules.sonarsource.com/java/) has 698 rules.  
Is there any difference between them?

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [May 15, 2024, 12:23pm UTC](https://community.sonarsource.com/t/whats-difference-between-sonarway-java-rule-with-sonarsource-rules-java/115256/2 "2024-05-15T12:23:47Z")

</div>

Hi,

Welcome to the community!

The Sonar way profiles are designed to be uncontroversial. That is, a rule only gets included in Sonar way if it will work for 95% of projects 95% of the time.

The other rules are needed in certain circumstances, but not all the time. So they’re omitted from Sonar way but available if you need them.

&nbsp;  
HTH,  
Ann

---

<div class="post-metadata">

**Author:** ![yks095](https://avatars.discourse-cdn.com/v4/letter/y/a4c791/32.png) [@yks095](https://community.sonarsource.com/u/yks095)\
**Post date:** [May 16, 2024, 1:41am UTC](https://community.sonarsource.com/t/whats-difference-between-sonarway-java-rule-with-sonarsource-rules-java/115256/3 "2024-05-16T01:41:03Z")

</div>

Oh, Thank you for that answer!

And I have few more questions about Sonar way rules.

I’m checking all the Sonaway rules to create my own customized Sonaway rules.  
So I’m getting to know what this rule means and what this rule is needed for me.

In my Sonar way Java(Built-in) has total 628 rules. And those rules are divided 479 active rules with 149 inactive rules. I’m just wondering why these 149 rules are inactivated by default.

Here’s my questions.

1. Is there any reason why those rules are inactivated?
2. Is there a page that explains why each rule is inactivated?

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [May 16, 2024, 11:31am UTC](https://community.sonarsource.com/t/whats-difference-between-sonarway-java-rule-with-sonarsource-rules-java/115256/4 "2024-05-16T11:31:01Z")

</div>

Hi,

The reason is the one I’ve already given you. There is not rule-by-rule documentation about why rules are active or inactive by default.

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/78532_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [May 23, 2024, 11:31am UTC](https://community.sonarsource.com/t/whats-difference-between-sonarway-java-rule-with-sonarsource-rules-java/115256/5 "2024-05-23T11:31:11Z")

</div>

Closed on May 23, 2024, 11:31am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
