# Is it possible to apply profile only for specific paths in big project?

**URL:** <https://community.sonarsource.com/t/is-it-possible-to-apply-profile-only-for-specific-paths-in-big-project/133345>\
**Category:** SonarQube Server / Community Build\
**Tags:** quality-profiles, custom\_rules, sonarqube\
**Created:** [January 12, 2025, 2:49pm UTC](https://community.sonarsource.com/t/is-it-possible-to-apply-profile-only-for-specific-paths-in-big-project/133345 "2025-01-12T14:49:43Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [January 15, 2025, 8:15am UTC](https://community.sonarsource.com/t/is-it-possible-to-apply-profile-only-for-specific-paths-in-big-project/133345/4 "2025-01-15T08:15:19Z")

</div>

Your rule key will have a very specific pattern, without spaces. You can see it when you browse the rule in SonarQube. You probably defined it yourself when you developed the rule!

 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/e/6/e6964cddd27ddefc2943e4315eee573bac9e45a6.jpeg)

So in this examle, the rule key pattern is the rule key itself, `cpp:S3805`. If you want to have this rule only apply on rules in _ariel1/src/poc_, you should define `ariel1/src/poc/**/*` as the file path pattern.

---

_[View the full topic](https://community.sonarsource.com/t/is-it-possible-to-apply-profile-only-for-specific-paths-in-big-project/133345)._
