# The forbiddenPatterns task failed - Plugin

**URL:** <https://discuss.elastic.co/t/the-forbiddenpatterns-task-failed-plugin/174830>\
**Category:** Elasticsearch\
**Created:** [April 1, 2019, 5:41pm UTC](https://discuss.elastic.co/t/the-forbiddenpatterns-task-failed-plugin/174830 "2019-04-01T17:41:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EliuFlorez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eliuflorez/32/40884_2.png) [@EliuFlorez](https://discuss.elastic.co/u/EliuFlorez)\
**Post date:** [April 1, 2019, 5:41pm UTC](https://discuss.elastic.co/t/the-forbiddenpatterns-task-failed-plugin/174830/1 "2019-04-01T17:41:36Z")

</div>

error to run  
./gradlew clean build

and the lines are blank, there is no code. Then why the error?

The :forbiddenPatterns task failed.[View task in console log](https://scans.gradle.com/s/7pp47ugkfbjjk/console-log?task=:forbiddenPatterns)

Found invalid patterns: - tab on line 39 of src/test/java/org/devmaster/elasticsearch/plugin/RecurringSearchScriptTests.java - tab on line 40 of src/test/java/org/devmaster/elasticsearch/plugin/RecurringSearchScriptTests.java - tab on line 41 of src/test/java/org/devmaster/elasticsearch/plugin/RecurringSearchScriptTests.java

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [April 2, 2019, 10:49am UTC](https://discuss.elastic.co/t/the-forbiddenpatterns-task-failed-plugin/174830/2 "2019-04-02T10:49:58Z")

</div>

This sounds as if the lines are not fully emtpy. Can you check if they maybe **only** contain a tab but nothing else (this way they would look empty, but are not).

You can enable/disable the forbidden patterns task in your gradle build, if you need to as well (even though I'd recommend to keep it enabled).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 30, 2019, 10:58am UTC](https://discuss.elastic.co/t/the-forbiddenpatterns-task-failed-plugin/174830/3 "2019-04-30T10:58:53Z")

</div>

Closed on April 30, 2019, 10:58am UTC

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