# Squid UndocumentedAPI - Pattern

**URL:** <https://community.sonarsource.com/t/squid-undocumentedapi-pattern/10533>\
**Category:** SonarQube Server / Community Build\
**Created:** [June 6, 2019, 1:40pm UTC](https://community.sonarsource.com/t/squid-undocumentedapi-pattern/10533 "2019-06-06T13:40:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![per.flo](https://avatars.discourse-cdn.com/v4/letter/p/7cd45c/32.png) [@per.flo](https://community.sonarsource.com/u/per.flo)\
**Post date:** [June 6, 2019, 1:40pm UTC](https://community.sonarsource.com/t/squid-undocumentedapi-pattern/10533/1 "2019-06-06T13:40:57Z")

</div>

Hi,

I would like to use the rule in SonarQube “squid:UndocumentedAPI”.

I can choose a pattern of classes I want to adhere to this constraint, bu I don’t understand how works this pattern.

Is this only for the filename or all the tree of the file ?

For exemple, I would like to constraint only files which begin with “API” : eg : APIBlabla.java

Do you know how it works ?

Thanks in advance.
