From d91e550f119e119d53dc883c7b8dab6baf962772 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Fri, 17 May 2019 08:58:46 +0100 Subject: [PATCH] Allow console statements These are required in Odoo in order to mark a tour as failed manually. It can also be helpful to log some interesting details for developers that shouldn't matter for users. Odoo uses it, in fact. See https://github.com/OCA/website/pull/627#discussion_r285006941 where this was discovered, and https://github.com/OCA/pylint-odoo/pull/244#issuecomment-493358163 where the need is further explained. --- pylint_odoo/examples/.jslintrc | 2 +- pylint_odoo/test/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pylint_odoo/examples/.jslintrc b/pylint_odoo/examples/.jslintrc index 1e152a5a..d7dd26e5 100644 --- a/pylint_odoo/examples/.jslintrc +++ b/pylint_odoo/examples/.jslintrc @@ -22,7 +22,7 @@ "no-class-assign": "error", "no-cond-assign": "error", "no-confusing-arrow": "error", - "no-console": "error", + "no-console": "off", "no-const-assign": "error", "no-constant-condition": "error", "no-continue": "off", diff --git a/pylint_odoo/test/main.py b/pylint_odoo/test/main.py index 72f0eae0..e8cba8b1 100644 --- a/pylint_odoo/test/main.py +++ b/pylint_odoo/test/main.py @@ -31,7 +31,7 @@ 'file-not-used': 6, 'incoherent-interpreter-exec-perm': 3, 'invalid-commit': 4, - 'javascript-lint': 25, + 'javascript-lint': 24, 'license-allowed': 1, 'manifest-author-string': 1, 'manifest-deprecated-key': 1,