summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRazvan Becheriu <razvan@isc.org>2023-05-12 11:44:25 +0200
committerRazvan Becheriu <razvan@isc.org>2023-05-12 11:46:14 +0200
commit02dc9b82e3cb701f39a0f5ac1c455583fea33011 (patch)
treee7f7249de2da22516e95f85d446e85eb97c56a3e /tools
parent[#2786] fixed UTs when backends are disabled (diff)
downloadkea-02dc9b82e3cb701f39a0f5ac1c455583fea33011.tar.xz
kea-02dc9b82e3cb701f39a0f5ac1c455583fea33011.zip
[#2786] addressed review comments
Diffstat (limited to 'tools')
-rwxr-xr-xtools/check-for-json-errors-in-doc.sh14
1 files changed, 1 insertions, 13 deletions
diff --git a/tools/check-for-json-errors-in-doc.sh b/tools/check-for-json-errors-in-doc.sh
index 0116e752ea..b8b460c336 100755
--- a/tools/check-for-json-errors-in-doc.sh
+++ b/tools/check-for-json-errors-in-doc.sh
@@ -32,20 +32,8 @@ for file in $files; do
comment=0
echo "" >> $work_file
continue
- elif [ $comment -eq 0 -a $json -eq 0 -a $(echo "$line" | grep "^\s*{\|^\s*\".*{" | grep -v "}" | grep -v "key\|pre" | wc -l) -eq 1 ]; then
+ elif [ $comment -eq 0 -a $json -eq 0 -a $(echo "$line" | grep "^\s*{\|^\s*\".*{" | grep -v "}" | wc -l) -eq 1 ]; then
# if this is not a comment and the line starts with spaces followed by '{' or by '"' followed by "{"
- # ignore dns config:
- # key "key.four.example.com." {
- # algorithm hmac-sha224;
- # secret "bZEG7Ow8OgAUPfLWV3aAUQ==";
- # };
- # ignore detailed html:
- # .. raw:: html
- # <details><summary>Expand here!</summary>
- # <pre>{
- # ...
- # }</pre>
- # </details><br>
json=1
# ignore any map name before top level map
line=$(echo "$line" | sed "s/.*{/{/g")