diff options
Diffstat (limited to 'support/pkgcheck/src/messages/warningsd.rs')
-rw-r--r-- | support/pkgcheck/src/messages/warningsd.rs | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/support/pkgcheck/src/messages/warningsd.rs b/support/pkgcheck/src/messages/warningsd.rs new file mode 100644 index 0000000000..588144968d --- /dev/null +++ b/support/pkgcheck/src/messages/warningsd.rs @@ -0,0 +1,58 @@ +// This file is generated by a Perl script. The source is +// in the docs/ directory of the repository. + +pub fn w0001d() { + println!( + r#" +W0001 -- Archive as package file detected + +Usually a CTAN package should not contain archives. An exception are +situations where, for example, the source code of a package is kept in a +separate zip archive. +"# + ) +} + +pub fn w0002d() { + println!( + r#" +W0002 -- Duplicate files detected + +Duplicate files were detected which are listed right after this message. + +The message is a warning message as something like this could not be +seen as an error in general. +"# + ) +} + +pub fn w0003d() { + println!( + r#" +W0003 -- Same named files detected in the package tree + +We like to have unique file names over the whole package directory tree. +When we discover same named files we report it as a warning. Common +names like README, README.txt, README.md, Makefile, Makefile.in, +Makefile.am and makefile are ignored when checking. + +For more details refer to: +http://mirror.utexas.edu/ctan/help/ctan/CTAN-upload-addendum.html#uniquefilenames +"# + ) +} + +pub fn w0004d() { + println!( + r#" +W0004 -- encoding with BOM detected + +A UTF encoded package file contains a BOM (byte order mark). Currently, +we issues a warning. + +Nevertheless, the CTAN team discourages uses of BOM. Please be aware, +that in some future time this could be reagarded as an error. +"# + ) +} + |