# Custom linting settings for ansible-test sanity

**URL:** <https://forum.ansible.com/t/custom-linting-settings-for-ansible-test-sanity/36706>\
**Category:** Ansible Project\
**Created:** [June 9, 2022, 11:39am UTC](https://forum.ansible.com/t/custom-linting-settings-for-ansible-test-sanity/36706 "2022-06-09T11:39:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom\_Bartsch](https://avatars.discourse-cdn.com/v4/letter/t/977dab/32.png) [@Tom\_Bartsch](https://forum.ansible.com/u/Tom_Bartsch)\
**Post date:** [June 9, 2022, 11:39am UTC](https://forum.ansible.com/t/custom-linting-settings-for-ansible-test-sanity/36706/1 "2022-06-09T11:39:23Z")

</div>

Hi there,

I started to use ansible-test sanity for testing my ansible code. I know I am able to ignore some of these tests for some parts of my ansible collection with a ignore.txt file within my tests/sanity directory.

Now I am wondering that I can’t find any possibility to inject or overwrite some default rules of sanity with custom rules. So for example I want a special line length to check if it’s met or I want to except more than 1 empty lines for the empty-lines check. Does anyone know what I have to do to use some custom rules for the “ansible-test sanity” command?

Kindly Regards,  
Tom
