refactor(directory): ♻🎨 lint data

This commit is contained in:
Collin M. Barrett 2020-08-26 18:59:24 -05:00
parent 160f5284d8
commit dee69478c7
5 changed files with 7409 additions and 7409 deletions

View file

@ -1,11 +1,7 @@
[
{
"dependencyFilterListId": 301,
"dependentFilterListId": 344
},
{
"dependencyFilterListId": 479,
"dependentFilterListId": 344
"dependencyFilterListId": 60,
"dependentFilterListId": 1816
},
{
"dependencyFilterListId": 97,
@ -20,11 +16,15 @@
"dependentFilterListId": 853
},
{
"dependencyFilterListId": 60,
"dependentFilterListId": 1816
"dependencyFilterListId": 301,
"dependentFilterListId": 344
},
{
"dependencyFilterListId": 347,
"dependentFilterListId": 1817
},
{
"dependencyFilterListId": 479,
"dependentFilterListId": 344
}
]

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,7 +1,7 @@
#!/bin/bash
# Sorts json files by FilterLists conventions documented in Wiki.
jq -S ".|=sort_by(.dependentFilterListId, .dependencyFilterListId)" Dependent.json > Dependent.tmp
jq -S ".|=sort_by(.dependencyFilterListId, .dependentFilterListId)" Dependent.json > Dependent.tmp
mv Dependent.tmp Dependent.json
jq -S ".|=sort_by(.id)" FilterList.json > FilterList.tmp
@ -10,10 +10,10 @@ mv FilterList.tmp FilterList.json
jq -S ".|=sort_by(.filterListId, .iso6391)" FilterListLanguage.json > FilterListLanguage.tmp
mv FilterListLanguage.tmp FilterListLanguage.json
jq -S ".|=sort_by(.maintainerId, .filterListId)" FilterListMaintainer.json > FilterListMaintainer.tmp
jq -S ".|=sort_by(.filterListId, .maintainerId)" FilterListMaintainer.json > FilterListMaintainer.tmp
mv FilterListMaintainer.tmp FilterListMaintainer.json
jq -S ".|=sort_by(.filterListId, .id)" FilterListSegmentViewUrl.json > FilterListSegmentViewUrl.tmp
jq -S ".|=sort_by(.filterListId, .position)" FilterListSegmentViewUrl.json > FilterListSegmentViewUrl.tmp
mv FilterListSegmentViewUrl.tmp FilterListSegmentViewUrl.json
jq -S ".|=sort_by(.segmentViewUrlId, .id)" FilterListSegmentViewUrlMirror.json > FilterListSegmentViewUrlMirror.tmp
@ -43,7 +43,7 @@ mv Merge.tmp Merge.json
jq -S ".|=sort_by(.id)" Software.json > Software.tmp
mv Software.tmp Software.json
jq -S ".|=sort_by(.syntaxId, .softwareId)" SoftwareSyntax.json > SoftwareSyntax.tmp
jq -S ".|=sort_by(.softwareId, .syntaxId)" SoftwareSyntax.json > SoftwareSyntax.tmp
mv SoftwareSyntax.tmp SoftwareSyntax.json
jq -S ".|=sort_by(.id)" Syntax.json > Syntax.tmp