From 52ca8c9f73940768f58cc717eca9442bd65289c4 Mon Sep 17 00:00:00 2001 From: Issei Horie Date: Mon, 31 Jan 2022 00:51:11 +0900 Subject: [PATCH] feat: display warning log message when it can not parse config fix #662 --- dist/cli/htmlhint.js | 3 ++- src/cli/htmlhint.ts | 2 +- test/conf/invalid-json.conf | 3 +++ test/conf/valid-json.conf | 3 +++ test/executable.spec.js | 42 +++++++++++++++++++++++++++++++++++++ 5 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 test/conf/invalid-json.conf create mode 100644 test/conf/valid-json.conf diff --git a/dist/cli/htmlhint.js b/dist/cli/htmlhint.js index a8a17d81c..9b105b43d 100644 --- a/dist/cli/htmlhint.js +++ b/dist/cli/htmlhint.js @@ -284,6 +284,7 @@ function getConfig(configPath, base, formatter) { }); } catch (e) { + console.log(chalk.yellow(`Could not parse config file (${configPath}).`)); } return ruleset; } @@ -351,4 +352,4 @@ function hintUrl(url, ruleset, callback) { } }, errorFn); } -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHRtbGhpbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY2xpL2h0bWxoaW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUVBLGlDQUFrRTtBQUNsRSwrQkFBOEI7QUFDOUIseUNBQW1DO0FBQ25DLDJCQUF1RDtBQUN2RCw2QkFBNEI7QUFFNUIsd0NBQXVDO0FBQ3ZDLCtCQUE0QztBQUM1QywyQ0FBOEI7QUFDOUIseURBQXdEO0FBS3hELE1BQU0sUUFBUSxHQUFxQixPQUFPLENBQUMsZ0JBQWdCLENBQUMsQ0FBQyxRQUFRLENBQUE7QUFDckUsTUFBTSxTQUFTLEdBQWMsT0FBTyxDQUFDLGFBQWEsQ0FBQyxDQUFBO0FBRW5ELE1BQU0sR0FBRyxHQUFHLE9BQU8sQ0FBQyxvQkFBb0IsQ0FBQyxDQUFBO0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yxJQUFJLENBQUMsQ0FBQyxJQUFJLEVBQUUsRUFBRTtnQkFDNUIsTUFBTSxRQUFRLEdBQUcsUUFBUSxDQUFDLE1BQU0sQ0FBQyxJQUFJLEVBQUUsT0FBTyxDQUFDLENBQUE7Z0JBQy9DLFFBQVEsQ0FBQyxRQUFRLENBQUMsQ0FBQTtZQUNwQixDQUFDLEVBQUUsT0FBTyxDQUFDLENBQUE7U0FDWjthQUFNO1lBQ0wsT0FBTyxFQUFFLENBQUE7U0FDVjtJQUNILENBQUMsRUFBRSxPQUFPLENBQUMsQ0FBQTtBQUNiLENBQUMifQ== \ No newline at end of file diff --git a/src/cli/htmlhint.ts b/src/cli/htmlhint.ts index 91bfe400a..b1de517f8 100644 --- a/src/cli/htmlhint.ts +++ b/src/cli/htmlhint.ts @@ -407,7 +407,7 @@ function getConfig( configPath: configPath, }) } catch (e) { - // ignore + console.log(chalk.yellow(`Could not parse config file (${configPath}).`)) } return ruleset diff --git a/test/conf/invalid-json.conf b/test/conf/invalid-json.conf new file mode 100644 index 000000000..7fe7d1c68 --- /dev/null +++ b/test/conf/invalid-json.conf @@ -0,0 +1,3 @@ +{ + "attr-lowercase": false, +} diff --git a/test/conf/valid-json.conf b/test/conf/valid-json.conf new file mode 100644 index 000000000..c2893da1e --- /dev/null +++ b/test/conf/valid-json.conf @@ -0,0 +1,3 @@ +{ + "attr-lowercase": false +} diff --git a/test/executable.spec.js b/test/executable.spec.js index 399c76d56..c78f33fc4 100644 --- a/test/executable.spec.js +++ b/test/executable.spec.js @@ -34,4 +34,46 @@ describe('Executable', () => { expect(stdoutEnd || processEnd).toBe(false) }) }) + + it('should not display warning log message when it can parse config file', (done) => { + ChildProcess.exec( + [ + 'node', + path.resolve(__dirname, '../bin/htmlhint'), + path.resolve(__dirname, './html/executable.html'), + '--config', + path.resolve(__dirname, './conf/valid-json.conf'), + ].join(' '), + (error, stdout) => { + expect(stdout).not.to.contain( + `Could not parse config file (${path.resolve( + __dirname, + './conf/invalid-json.conf' + )}).` + ) + done() + } + ) + }) + + it('should display warning log message when it can not parse config file', (done) => { + ChildProcess.exec( + [ + 'node', + path.resolve(__dirname, '../bin/htmlhint'), + path.resolve(__dirname, './html/executable.html'), + '--config', + path.resolve(__dirname, './conf/invalid-json.conf'), + ].join(' '), + (error, stdout) => { + expect(stdout).to.contain( + `Could not parse config file (${path.resolve( + __dirname, + './conf/invalid-json.conf' + )}).` + ) + done() + } + ) + }) })