Fix: only 1 message in 1 toml file

This commit is contained in:
itiB
2020-11-05 14:29:48 +09:00
parent 66f0886273
commit 77df2fcc9c
3 changed files with 3 additions and 7 deletions

View File

@@ -1,6 +1,4 @@
[rule]
severity = "high"
name = "4103"
messages = [
["4103", { ja = "パイプライン実行をしています", en = "Execute Pipeline" }]
]
message = "Execute Pipeline"

View File

@@ -1,6 +1,4 @@
[rule]
severity = "high"
name = "4104"
messages = [
["4104", { ja = "リモートコマンドを実行します", en = "Excute Remote Command" }]
]
message = "Excute Remote Command"

View File

@@ -5,7 +5,7 @@ use serde::Deserialize;
pub struct Rule {
pub severity: Option<String>,
pub name: Option<String>,
pub messages: Option<Vec<(String, String)>>,
pub message: Option<String>,
}
#[derive(Debug, Deserialize)]