Revert "Remove exclude-pattern"

This reverts commit f08bb40f812955e05edd2f204cbb4d186f035af7.