summaryrefslogtreecommitdiff
path: root/support/pkgcheck/src/messages/warningsd.rs
diff options
context:
space:
mode:
Diffstat (limited to 'support/pkgcheck/src/messages/warningsd.rs')
-rw-r--r--support/pkgcheck/src/messages/warningsd.rs31
1 files changed, 23 insertions, 8 deletions
diff --git a/support/pkgcheck/src/messages/warningsd.rs b/support/pkgcheck/src/messages/warningsd.rs
index 7358cc562e..44a6ad6d4e 100644
--- a/support/pkgcheck/src/messages/warningsd.rs
+++ b/support/pkgcheck/src/messages/warningsd.rs
@@ -1,8 +1,10 @@
// This file is generated by a Perl script. The source is
// in the docs/ directory of the repository.
+use log::*;
+
pub fn w0001d() {
- println!(
+ warn!(
r#"
W0001 -- Archive as package file detected
@@ -14,7 +16,7 @@ separate zip archive.
}
pub fn w0002d() {
- println!(
+ warn!(
r#"
W0002 -- Duplicate files detected
@@ -27,7 +29,7 @@ seen as an error in general.
}
pub fn w0003d() {
- println!(
+ warn!(
r#"
W0003 -- Same named files detected in the package tree
@@ -43,7 +45,7 @@ http://mirror.utexas.edu/ctan/help/ctan/CTAN-upload-addendum.html#uniquefilename
}
pub fn w0004d() {
- println!(
+ warn!(
r#"
W0004 -- encoding with BOM detected
@@ -57,7 +59,7 @@ that in some future time this could be reagarded as an error.
}
pub fn w0005d() {
- println!(
+ warn!(
r#"
W0005 -- Very large file with size <size> detected in package
@@ -68,7 +70,7 @@ W0005 -- Very large file with size <size> detected in package
}
pub fn w0006d() {
- println!(
+ warn!(
r#"
W0006 -- Very large file with size <size> detected in TDS zip archive
@@ -79,7 +81,7 @@ in the TDS zip archive.
}
pub fn w0007d() {
- println!(
+ warn!(
r#"
W0007 -- Empty directory detected in the TDS zip archive
@@ -90,7 +92,7 @@ don't create errors in the distribution we issue a warning only.
}
pub fn w0008d() {
- println!(
+ warn!(
r#"
W0008 -- Windows file has Unix line endings
@@ -105,3 +107,16 @@ We regard a file as a Windows file if its name ends with:
"#
)
}
+
+pub fn w0009d() {
+ warn!(
+ r#"
+W0009 -- Replacing -> ` with the same from config file",
+
+This message can only show up if pkgcheck got called with --config.
+Indicates that an entry in the pkgcheck config file does the same as the
+hard-coded entry. This helps to keep a clean config file.
+"#
+ )
+}
+