From 6970e2a196ecf87e78d0ec26179d72d5bca3abcc Mon Sep 17 00:00:00 2001 From: Fabrizio Ferri-Benedetti Date: Tue, 18 Oct 2022 09:43:43 +0200 Subject: [PATCH] Add Data and Metadata rules (#2) --- README.md | 2 +- styles/Splunk/DataSingular.yml | 11 +++++++++++ styles/Splunk/DontUse.yml | 3 ++- styles/Splunk/Headings.yml | 1 + 4 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 styles/Splunk/DataSingular.yml diff --git a/README.md b/README.md index 2e861a6..daf163c 100644 --- a/README.md +++ b/README.md @@ -45,4 +45,4 @@ git submodule update --remote --merge # License -This software is licensed under the Apache License 2.0. Details can be found in the file LICENSE. +This software is licensed under the Apache License 2.0. Details can be found in the file LICENSE. \ No newline at end of file diff --git a/styles/Splunk/DataSingular.yml b/styles/Splunk/DataSingular.yml new file mode 100644 index 0000000..b5b2bf0 --- /dev/null +++ b/styles/Splunk/DataSingular.yml @@ -0,0 +1,11 @@ +extends: sequence +message: "Use data and metadata as mass nouns (singular)." +link: 'https://docs.splunk.com/Documentation/StyleGuide/current/StyleGuide/Usagedictionary#D' +level: suggestion +ignorecase: true +tokens: + - pattern: '(?:data|metadata)' + # To be added after https://github.com/errata-ai/vale/issues/498 is solved. + #- tag: CC|CD|DT|EX|FW|IN|JJ|JJR|JJS|LS|PDT|POS|PRP|RBvRP|TO|UH|WDT|WP|WRB + # skip: 5 + - tag: VBP \ No newline at end of file diff --git a/styles/Splunk/DontUse.yml b/styles/Splunk/DontUse.yml index 164360c..7c7df91 100644 --- a/styles/Splunk/DontUse.yml +++ b/styles/Splunk/DontUse.yml @@ -24,4 +24,5 @@ tokens: - remember - right - thus - - very \ No newline at end of file + - very + - datum \ No newline at end of file diff --git a/styles/Splunk/Headings.yml b/styles/Splunk/Headings.yml index 79d8b4d..96d6780 100644 --- a/styles/Splunk/Headings.yml +++ b/styles/Splunk/Headings.yml @@ -81,6 +81,7 @@ exceptions: - SPA - SPAs - Database + - Query - Performance - DB - Monitor \ No newline at end of file