Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.1.6 #189

Merged
merged 6 commits into from
Jul 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ However, the lower-level checking functions provide only the list of success mes

There are two compulsory fields in all of these notice objects:

1. `priority`: A notice priority number in the range 1-1000. Each different type of warning/error has a unique number (but not each instance of those warnings/errors). By default, notice priority numbers 700 and over are considered `errors` and 0-699 are considered `warnings`, but in truth, that’s rather arbitrary.
1. `priority`: A notice priority number in the range 1-1,000. Each different type of warning/error has a unique number (but not each instance of those warnings/errors). By default, notice priority numbers 700 and over are considered `errors` and 0-699 are considered `warnings`, but in truth, that’s rather arbitrary.
1. `message`: The actual general descriptive text of the notice

All of the following fields may be missing or undefined, i.e., they’re all optional:
Expand Down
103 changes: 58 additions & 45 deletions noticeList.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "uw-content-validation",
"description": "Functions for Checking Door43.org Scriptural Content/Resources.",
"version": "2.1.5",
"version": "2.1.6",
"private": false,
"homepage": "https://unfoldingword.github.io/uw-content-validation/",
"repository": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4433,7 +4433,7 @@ Object {
"bookID": "RUT",
"branch": "master",
"characterIndex": 20,
"details": "end part of quote = \\"וְ⁠שֵׁ֥ם הַ⁠שֵּׁנִ֖י\\" -- verse text וַ⁠יִּשְׂא֣וּ לָ⁠הֶ֗ם נָשִׁים֙ מֹֽאֲבִיּ֔וֹת שֵׁ֤ם הָֽ⁠אַחַת֙ עָרְפָּ֔ה וְ⁠שֵׁ֥ם הַ⁠שֵּׁנִ֖ית ר֑וּת וַ⁠יֵּ֥שְׁבוּ שָׁ֖ם כְּ⁠עֶ֥שֶׂר שָׁנִֽים׃",
"details": "end part of quote = \\"וְ⁠שֵׁ֥ם הַ⁠שֵּׁנִ֖י\\" -- verse text וַ⁠יִּשְׂא֣וּ לָ⁠הֶ֗ם נָשִׁים֙ מֹֽאֲבִיּ֔וֹת שֵׁ֤ם הָֽ⁠אַחַת֙ עָרְפָּ֔ה וְ⁠שֵׁ֥ם הַ⁠שֵּׁנִ֖ית ר֑וּת וַ⁠יֵּ֥שְׁבוּ שָׁ֖ם כְּ⁠עֶ֥שֶׂר שָׁנִֽים׃",
"excerpt": "…שֵׁ֥ם הַ⁠שֵּׁנִ֖י(ת=D1514/H5ea) occurrence=1",
"extra": "TN",
"fieldName": "OrigQuote",
Expand Down
10 changes: 5 additions & 5 deletions src/__tests__/__snapshots__/tn-tsv7-table-row-check.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ Object {
"C": "1",
"V": "2",
"bookID": "GEN",
"details": "verse text וְ⁠הָ⁠אָ֗רֶץ הָיְתָ֥ה תֹ֨הוּ֙ וָ⁠בֹ֔הוּ וְ⁠חֹ֖שֶׁךְ עַל־פְּנֵ֣י תְה֑וֹם וְ⁠ר֣וּחַ אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַ⁠מָּֽיִם׃",
"details": "verse text וְ⁠הָ⁠אָ֗רֶץ הָיְתָ֥ה תֹ֨הוּ֙ וָ⁠בֹ֔הוּ וְ⁠חֹ֖שֶׁךְ עַל־פְּנֵ֣י תְה֑וֹם וְ⁠ר֣וּחַ אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַ⁠מָּֽיִם׃",
"excerpt": "וְ⁠חֹ֖שֶךְ",
"fieldName": "Quote",
"location": " from test line",
Expand Down Expand Up @@ -227,7 +227,7 @@ Object {
"V": "2",
"bookID": "GEN",
"characterIndex": 0,
"details": "verse text וְ⁠הָ⁠אָ֗רֶץ הָיְתָ֥ה תֹ֨הוּ֙ וָ⁠בֹ֔הוּ וְ⁠חֹ֖שֶׁךְ עַל־פְּנֵ֣י תְה֑וֹם וְ⁠ר֣וּחַ אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַ⁠מָּֽיִם׃",
"details": "verse text וְ⁠הָ⁠אָ֗רֶץ הָיְתָ֥ה תֹ֨הוּ֙ וָ⁠בֹ֔הוּ וְ⁠חֹ֖שֶׁךְ עַל־פְּנֵ֣י תְה֑וֹם וְ⁠ר֣וּחַ אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַ⁠מָּֽיִם׃",
"excerpt": "(ּ=D1468/H5bc) וְ⁠חֹ֖שֶׁךְ occurrence=1",
"fieldName": "Quote",
"location": " from test line",
Expand Down Expand Up @@ -416,7 +416,7 @@ Object {
"C": "1",
"V": "2",
"bookID": "GEN",
"details": "verse text וְ⁠הָ⁠אָ֗רֶץ הָיְתָ֥ה תֹ֨הוּ֙ וָ⁠בֹ֔הוּ וְ⁠חֹ֖שֶׁךְ עַל־פְּנֵ֣י תְה֑וֹם וְ⁠ר֣וּחַ אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַ⁠מָּֽיִם׃",
"details": "verse text וְ⁠הָ⁠אָ֗רֶץ הָיְתָ֥ה תֹ֨הוּ֙ וָ⁠בֹ֔הוּ וְ⁠חֹ֖שֶׁךְ עַל־פְּנֵ֣י תְה֑וֹם וְ⁠ר֣וּחַ אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַ⁠מָּֽיִם׃",
"excerpt": "‌וְ⁠חֹ֖שֶׁךְ",
"fieldName": "Quote",
"location": " from test line",
Expand Down Expand Up @@ -659,7 +659,7 @@ Object {
"C": "1",
"V": "2",
"bookID": "GEN",
"details": "verse text וְ⁠הָ⁠אָ֗רֶץ הָיְתָ֥ה תֹ֨הוּ֙ וָ⁠בֹ֔הוּ וְ⁠חֹ֖שֶׁךְ עַל־פְּנֵ֣י תְה֑וֹם וְ⁠ר֣וּחַ אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַ⁠מָּֽיִם׃",
"details": "verse text וְ⁠הָ⁠אָ֗רֶץ הָיְתָ֥ה תֹ֨הוּ֙ וָ⁠בֹ֔הוּ וְ⁠חֹ֖שֶׁךְ עַל־פְּנֵ֣י תְה֑וֹם וְ⁠ר֣וּחַ אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַ⁠מָּֽיִם׃",
"excerpt": "וְ⁠חֹ֖שֶׁךְ‌",
"fieldName": "Quote",
"location": " from test line",
Expand Down Expand Up @@ -690,7 +690,7 @@ Object {
"C": "2",
"V": "2",
"bookID": "MAT",
"details": "occurrence=2 but only 1 occurrence found, passage λέγοντες, ποῦ ἐστιν ὁ τεχθεὶς Βασιλεὺς τῶν Ἰουδαίων? εἴδομεν γὰρ αὐτοῦ τὸν ἀστέρα ἐν τῇ ἀνατολῇ καὶ ἤλθομεν προσκυνῆσαι αὐτῷ.",
"details": "occurrence=2 but only 1 occurrence found, passage λέγοντες, ποῦ ἐστιν ὁ τεχθεὶς Βασιλεὺς τῶν Ἰουδαίων? εἴδομεν γὰρ αὐτοῦ τὸν ἀστέρα ἐν τῇ ἀνατολῇ καὶ ἤλθομεν προσκυνῆσαι αὐτῷ.",
"excerpt": "προσκυνῆσαροσκυνῆσαι",
"fieldName": "Quote",
"location": " from test line",
Expand Down
10 changes: 5 additions & 5 deletions src/__tests__/__snapshots__/tn-tsv9-table-row-check.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Object {
"C": "1",
"V": "2",
"bookID": "GEN",
"details": "verse text וְ⁠הָ⁠אָ֗רֶץ הָיְתָ֥ה תֹ֨הוּ֙ וָ⁠בֹ֔הוּ וְ⁠חֹ֖שֶׁךְ עַל־פְּנֵ֣י תְה֑וֹם וְ⁠ר֣וּחַ אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַ⁠מָּֽיִם׃",
"details": "verse text וְ⁠הָ⁠אָ֗רֶץ הָיְתָ֥ה תֹ֨הוּ֙ וָ⁠בֹ֔הוּ וְ⁠חֹ֖שֶׁךְ עַל־פְּנֵ֣י תְה֑וֹם וְ⁠ר֣וּחַ אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַ⁠מָּֽיִם׃",
"excerpt": "וְ⁠חֹ֖שֶךְ",
"fieldName": "OrigQuote",
"location": " from test line",
Expand Down Expand Up @@ -197,7 +197,7 @@ Object {
"V": "2",
"bookID": "GEN",
"characterIndex": 0,
"details": "verse text וְ⁠הָ⁠אָ֗רֶץ הָיְתָ֥ה תֹ֨הוּ֙ וָ⁠בֹ֔הוּ וְ⁠חֹ֖שֶׁךְ עַל־פְּנֵ֣י תְה֑וֹם וְ⁠ר֣וּחַ אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַ⁠מָּֽיִם׃",
"details": "verse text וְ⁠הָ⁠אָ֗רֶץ הָיְתָ֥ה תֹ֨הוּ֙ וָ⁠בֹ֔הוּ וְ⁠חֹ֖שֶׁךְ עַל־פְּנֵ֣י תְה֑וֹם וְ⁠ר֣וּחַ אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַ⁠מָּֽיִם׃",
"excerpt": "(ּ=D1468/H5bc) וְ⁠חֹ֖שֶׁךְ occurrence=1",
"fieldName": "OrigQuote",
"location": " from test line",
Expand Down Expand Up @@ -320,7 +320,7 @@ Object {
"C": "1",
"V": "2",
"bookID": "GEN",
"details": "verse text וְ⁠הָ⁠אָ֗רֶץ הָיְתָ֥ה תֹ֨הוּ֙ וָ⁠בֹ֔הוּ וְ⁠חֹ֖שֶׁךְ עַל־פְּנֵ֣י תְה֑וֹם וְ⁠ר֣וּחַ אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַ⁠מָּֽיִם׃",
"details": "verse text וְ⁠הָ⁠אָ֗רֶץ הָיְתָ֥ה תֹ֨הוּ֙ וָ⁠בֹ֔הוּ וְ⁠חֹ֖שֶׁךְ עַל־פְּנֵ֣י תְה֑וֹם וְ⁠ר֣וּחַ אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַ⁠מָּֽיִם׃",
"excerpt": "‌וְ⁠חֹ֖שֶׁךְ",
"fieldName": "OrigQuote",
"location": " from test line",
Expand Down Expand Up @@ -475,7 +475,7 @@ Object {
"C": "1",
"V": "2",
"bookID": "GEN",
"details": "verse text וְ⁠הָ⁠אָ֗רֶץ הָיְתָ֥ה תֹ֨הוּ֙ וָ⁠בֹ֔הוּ וְ⁠חֹ֖שֶׁךְ עַל־פְּנֵ֣י תְה֑וֹם וְ⁠ר֣וּחַ אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַ⁠מָּֽיִם׃",
"details": "verse text וְ⁠הָ⁠אָ֗רֶץ הָיְתָ֥ה תֹ֨הוּ֙ וָ⁠בֹ֔הוּ וְ⁠חֹ֖שֶׁךְ עַל־פְּנֵ֣י תְה֑וֹם וְ⁠ר֣וּחַ אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַ⁠מָּֽיִם׃",
"excerpt": "וְ⁠חֹ֖שֶׁךְ‌",
"fieldName": "OrigQuote",
"location": " from test line",
Expand Down Expand Up @@ -507,7 +507,7 @@ Object {
"C": "2",
"V": "2",
"bookID": "MAT",
"details": "occurrence=2 but only 1 occurrence found, passage λέγοντες, ποῦ ἐστιν ὁ τεχθεὶς Βασιλεὺς τῶν Ἰουδαίων? εἴδομεν γὰρ αὐτοῦ τὸν ἀστέρα ἐν τῇ ἀνατολῇ καὶ ἤλθομεν προσκυνῆσαι αὐτῷ.",
"details": "occurrence=2 but only 1 occurrence found, passage λέγοντες, ποῦ ἐστιν ὁ τεχθεὶς Βασιλεὺς τῶν Ἰουδαίων? εἴδομεν γὰρ αὐτοῦ τὸν ἀστέρα ἐν τῇ ἀνατολῇ καὶ ἤλθομεν προσκυνῆσαι αὐτῷ.",
"excerpt": "προσκυνῆσαροσκυνῆσαι",
"fieldName": "OrigQuote",
"location": " from test line",
Expand Down
1 change: 1 addition & 0 deletions src/core/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const REPO_CODES_LIST = [
// The ones with 2 suffix are the 2021 new TSV format repos
'TN', 'TN2', 'TQ', 'TQ2',
'SN', 'SQ',
'UGL', 'UHAL',
'OBS', 'OBS-TWL',
'OBS-TN', 'OBS-TN2', 'OBS-TQ', 'OBS-TQ2',
'OBS-SN', 'OBS-SQ',
Expand Down
4 changes: 2 additions & 2 deletions src/core/getApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { clearCheckedArticleCache } from './notes-links-check';
import { functionLog, debugLog, userLog, parameterAssert, logicAssert } from './utilities';


// const GETAPI_VERSION_STRING = '0.8.0';
// const GETAPI_VERSION_STRING = '0.8.1';

const MAX_INDIVIDUAL_FILES_TO_DOWNLOAD = 5; // More than this and it downloads the zipfile for the entire repo

Expand Down Expand Up @@ -483,7 +483,7 @@ export async function repositoryExistsOnDoor43({ username, repository }) {
const desiredMatch = `${username}/${repository}`.toLowerCase();
const filteredRepoList = retrievedRepoList.filter(repo => repo.full_name.toLowerCase() === desiredMatch);
if (filteredRepoList.length < 1) {
userLog(`repositoryExistsOnDoor43(${username}, ${repository}) - repo not found`, retrievedRepoList.length, filteredRepoList.length);
userLog(`repositoryExistsOnDoor43(${username}, ${repository}) - repo not found ${retrievedRepoList.length} ${filteredRepoList.length}`);
return false;
}
// const foundRepo = filteredRepoList[0];
Expand Down
1 change: 1 addition & 0 deletions src/core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export * from './text-handling-functions';

export * from './field-text-check';
export * from './file-text-check';
export * from './lexicon-file-contents-check';
export * from './markdown-text-check';
export * from './markdown-file-contents-check';
export * from './manifest-text-check';
Expand Down
Loading