Dist::Zilla::Plugin::CheckForUnwantedFiles - Check for unwanted files
Version 0.0100, released 2020-12-29.
In dist.ini (though it is more useful in a PluginBundle):
dist.ini
PluginBundle
[CheckForUnwantedFiles] unwanted_file = .travis.yml unwanted_file = .github/
This plugin checks the development directory (not the build directory) for unwanted files. This is useful when, for instance, switching CI providers, and you don't want to have the previous provider's configuration files lingering around and you are too forgetful to remember to check for them when doing a new release after the switch.
It is run at the AfterBuild stage, and takes one (repeatable) argument: unwanted_file. It is a fatal error if any unwanted file is found. And, despite its name, it works just as well with unwanted directories.
AfterBuild
unwanted_file
So:
Remove the plugin that generates the file from the bundle
Add this plugin to the bundle
Add the path to the file gets generated as an unwanted_file
You must delete the unwanted file before the distribution can be built
https://github.com/Csson/p5-Dist-Zilla-Plugin-CheckForUnwantedFiles
https://metacpan.org/release/Dist-Zilla-Plugin-CheckForUnwantedFiles
Erik Carlsson <info@code301.com>
This software is copyright (c) 2020 by Erik Carlsson.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Dist::Zilla::Plugin::CheckForUnwantedFiles, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zilla::Plugin::CheckForUnwantedFiles
CPAN shell
perl -MCPAN -e shell install Dist::Zilla::Plugin::CheckForUnwantedFiles
For more information on module installation, please visit the detailed CPAN module installation guide.