Create a ignore rule in the config file based on the extension