# Set folders to ignore

**URL:** <https://community.sonarsource.com/t/set-folders-to-ignore/17649>\
**Category:** SonarQube Cloud\
**Created:** [December 11, 2019, 8:25am UTC](https://community.sonarsource.com/t/set-folders-to-ignore/17649 "2019-12-11T08:25:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Staggerlee011](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/staggerlee011/32/8162_2.png) [@Staggerlee011](https://community.sonarsource.com/u/Staggerlee011)\
**Post date:** [December 11, 2019, 8:25am UTC](https://community.sonarsource.com/t/set-folders-to-ignore/17649/1 "2019-12-11T08:25:55Z")

</div>

Hi,

Is it possible to set folders to be ignored in scans? I have a dotnet core 3.1 mvc which has a set of client side libraries (bootstrap / css / jquery etc) that come from 3rd parties. because of that im not to interested in seeing results for them. currently im flooded with alerts but they are for the 3rd party code and i cant see issues with mine easily. If i can add a folder to ignore the lib folder i would remove all the false postive alerts.

---

<div class="post-metadata">

**Author:** ![TomVanBraband](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/tomvanbraband/32/46480_2.png) [@TomVanBraband](https://community.sonarsource.com/u/TomVanBraband)\
**Post date:** [December 11, 2019, 8:34am UTC](https://community.sonarsource.com/t/set-folders-to-ignore/17649/2 "2019-12-11T08:34:39Z")

</div>

Hello @Staggerlee011, welcome to the community!

You can do this by going to your project on [sonarcloud.io](http://sonarcloud.io), and then going to **Administration \> General Settings \> Analysis Scope**. You can find the corresponding documentation [here](https://sonarcloud.io/documentation/project-administration/narrowing-the-focus/).

Tom

---

<div class="post-metadata">

**Author:** ![Staggerlee011](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/staggerlee011/32/8162_2.png) [@Staggerlee011](https://community.sonarsource.com/u/Staggerlee011)\
**Post date:** [December 11, 2019, 9:39am UTC](https://community.sonarsource.com/t/set-folders-to-ignore/17649/3 "2019-12-11T09:39:14Z")

</div>

Hi thanks for the quick reply

Whats the format for this. docs dont makes sense to me ☹

I tried updating

## Files

Configure the files that should be completely ignored by the analysis.

> ### Source File Exclusions
> 
> Patterns used to exclude some source files from analysis.

with: **site/wwwroot/lib**

and now have no issues, when i know there were at least 1 or 2.

---

<div class="post-metadata">

**Author:** ![TomVanBraband](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/tomvanbraband/32/46480_2.png) [@TomVanBraband](https://community.sonarsource.com/u/TomVanBraband)\
**Post date:** [December 11, 2019, 9:47am UTC](https://community.sonarsource.com/t/set-folders-to-ignore/17649/4 "2019-12-11T09:47:55Z")

</div>

Could you specify what in the docs does not make sense to you? That way we can update the docs to be clearer for everyone.

Are you now triggering analysis on your main branch (usually master) or another branch?

---

<div class="post-metadata">

**Author:** ![Staggerlee011](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/staggerlee011/32/8162_2.png) [@Staggerlee011](https://community.sonarsource.com/u/Staggerlee011)\
**Post date:** [December 11, 2019, 10:13am UTC](https://community.sonarsource.com/t/set-folders-to-ignore/17649/5 "2019-12-11T10:13:12Z")

</div>

Hi Tom,

So theres no example of what forward is wanted. So do you i take it from the root of the repo, or the root of the project (like i see in sonarcloud).

Having another issue now which ill create a new ticket for.

---

<div class="post-metadata">

**Author:** ![TomVanBraband](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/tomvanbraband/32/46480_2.png) [@TomVanBraband](https://community.sonarsource.com/u/TomVanBraband)\
**Post date:** [December 11, 2019, 10:19am UTC](https://community.sonarsource.com/t/set-folders-to-ignore/17649/6 "2019-12-11T10:19:25Z")

</div>

Thank you @Staggerlee011, that is useful.
