From 6754df5f49a1a270e5ab2717c00b3e09553a2fb1 Mon Sep 17 00:00:00 2001 From: Carlos Lopez Date: Sun, 12 Nov 2023 00:39:53 -0500 Subject: [PATCH] [UPD] Update diffs for nitpicking tests. --- .../mqt-diffs/v10.0-.pylintrc-mandatory.diff | 57 +++++++ tests/samples/mqt-diffs/v10.0-.pylintrc.diff | 77 +++++++++ .../mqt-diffs/v11.0-.pylintrc-mandatory.diff | 85 ++++----- tests/samples/mqt-diffs/v11.0-.pylintrc.diff | 161 ++++-------------- .../mqt-diffs/v12.0-.pylintrc-mandatory.diff | 85 ++++----- tests/samples/mqt-diffs/v12.0-.pylintrc.diff | 161 ++++-------------- .../mqt-diffs/v16.0-.pylintrc-mandatory.diff | 15 +- tests/samples/mqt-diffs/v16.0-.pylintrc.diff | 16 +- .../mqt-diffs/v17.0-.pylintrc-mandatory.diff | 99 +++++++++++ tests/samples/mqt-diffs/v17.0-.pylintrc.diff | 123 +++++++++++++ .../mqt-diffs/v7.0-.pylintrc-mandatory.diff | 57 +++++++ tests/samples/mqt-diffs/v7.0-.pylintrc.diff | 77 +++++++++ .../mqt-diffs/v8.0-.pylintrc-mandatory.diff | 57 +++++++ tests/samples/mqt-diffs/v8.0-.pylintrc.diff | 77 +++++++++ .../mqt-diffs/v9.0-.pylintrc-mandatory.diff | 57 +++++++ tests/samples/mqt-diffs/v9.0-.pylintrc.diff | 77 +++++++++ 16 files changed, 888 insertions(+), 393 deletions(-) create mode 100644 tests/samples/mqt-diffs/v10.0-.pylintrc-mandatory.diff create mode 100644 tests/samples/mqt-diffs/v10.0-.pylintrc.diff create mode 100644 tests/samples/mqt-diffs/v17.0-.pylintrc-mandatory.diff create mode 100644 tests/samples/mqt-diffs/v17.0-.pylintrc.diff create mode 100644 tests/samples/mqt-diffs/v7.0-.pylintrc-mandatory.diff create mode 100644 tests/samples/mqt-diffs/v7.0-.pylintrc.diff create mode 100644 tests/samples/mqt-diffs/v8.0-.pylintrc-mandatory.diff create mode 100644 tests/samples/mqt-diffs/v8.0-.pylintrc.diff create mode 100644 tests/samples/mqt-diffs/v9.0-.pylintrc-mandatory.diff create mode 100644 tests/samples/mqt-diffs/v9.0-.pylintrc.diff diff --git a/tests/samples/mqt-diffs/v10.0-.pylintrc-mandatory.diff b/tests/samples/mqt-diffs/v10.0-.pylintrc-mandatory.diff new file mode 100644 index 00000000..065db41d --- /dev/null +++ b/tests/samples/mqt-diffs/v10.0-.pylintrc-mandatory.diff @@ -0,0 +1,57 @@ +0a1 +> +6a8 +> manifest_required_authors=Odoo Community Association (OCA) +8,9c10,12 +< manifest_deprecated_keys=active +< valid_odoo_versions=10.0 +--- +> manifest_deprecated_keys=description,active +> license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 +> valid_odoo_versions=13.0 +14,29c17 +< +< enable=attribute-deprecated, +< manifest-author-string, +< manifest-deprecated-key, +< manifest-required-key, +< manifest-version-format, +< method-compute, +< method-inverse, +< method-required-super, +< method-search, +< print-used, +< sql-injection, +< translation-field, +< translation-required, +< use-vim-comment, +< anomalous-backslash-in-string, +--- +> enable=anomalous-backslash-in-string, +32a21 +> attribute-deprecated, +35a25 +> development-status-allowed, +43,44c33,42 +< missing-import-error, +< missing-manifest-dependency, +--- +> license-allowed, +> manifest-author-string, +> manifest-deprecated-key, +> manifest-required-author, +> manifest-required-key, +> manifest-version-format, +> method-compute, +> method-inverse, +> method-required-super, +> method-search, +47a46 +> print-used, +53a53 +> sql-injection, +54a55,56 +> translation-field, +> translation-required, +55a58 +> use-vim-comment, diff --git a/tests/samples/mqt-diffs/v10.0-.pylintrc.diff b/tests/samples/mqt-diffs/v10.0-.pylintrc.diff new file mode 100644 index 00000000..e384b47a --- /dev/null +++ b/tests/samples/mqt-diffs/v10.0-.pylintrc.diff @@ -0,0 +1,77 @@ +0a1,2 +> +> +7c9 +< manifest_required_authors=Tecnativa +--- +> manifest_required_authors=Odoo Community Association (OCA) +10,11c12,13 +< license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3,OPL-1,OEEL-1 +< valid_odoo_versions=10.0 +--- +> license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 +> valid_odoo_versions=13.0 +23,44c25 +< # messages that do not cause the lint step to fail +< enable=attribute-deprecated, +< consider-merging-classes-inherited, +< invalid-commit, +< license-allowed, +< manifest-author-string, +< manifest-deprecated-key, +< manifest-required-author, +< manifest-required-key, +< manifest-version-format, +< method-compute, +< method-inverse, +< method-required-super, +< method-search, +< missing-readme, +< odoo-addons-relative-import, +< print-used, +< sql-injection, +< translation-field, +< translation-required, +< use-vim-comment, +< anomalous-backslash-in-string, +--- +> enable=anomalous-backslash-in-string, +47a29 +> attribute-deprecated, +50a33 +> development-status-allowed, +58,59c41,50 +< missing-import-error, +< missing-manifest-dependency, +--- +> license-allowed, +> manifest-author-string, +> manifest-deprecated-key, +> manifest-required-author, +> manifest-required-key, +> manifest-version-format, +> method-compute, +> method-inverse, +> method-required-super, +> method-search, +62a54 +> print-used, +68a61 +> sql-injection, +69a63,64 +> translation-field, +> translation-required, +70a66 +> use-vim-comment, +72a69,70 +> # messages that do not cause the lint step to fail +> consider-merging-classes-inherited, +76a75,76 +> invalid-commit, +> missing-manifest-dependency, +77a78 +> missing-readme, +78a80 +> odoo-addons-relative-import, +82a85 +> diff --git a/tests/samples/mqt-diffs/v11.0-.pylintrc-mandatory.diff b/tests/samples/mqt-diffs/v11.0-.pylintrc-mandatory.diff index 22d40d70..6c7d4e59 100644 --- a/tests/samples/mqt-diffs/v11.0-.pylintrc-mandatory.diff +++ b/tests/samples/mqt-diffs/v11.0-.pylintrc-mandatory.diff @@ -1,29 +1,16 @@ -6a7 +0a1 +> +6a8 > manifest_required_authors=Odoo Community Association (OCA) -8c9,10 +8,9c10,12 < manifest_deprecated_keys=active +< valid_odoo_versions=11.0 --- > manifest_deprecated_keys=description,active > license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 -13a16,32 -> # Enable message and code: -> # anomalous-backslash-in-string - W1401 -> # assignment-from-none - W1111 -> # dangerous-default-value - W0102 -> # duplicate-key - W0109 -> # missing-import-error - W7935 -> # missing-manifest-dependency - W7936 -> # pointless-statement - W0104 -> # pointless-string-statement - W0105 -> # print-statement - E1601 -> # redundant-keyword-arg - E1124 -> # reimported - W0404 -> # relative-import - W0403 -> # return-in-init - E0101 -> # rst-syntax-error - E7901 -> # too-few-format-args - E1306 -> # unreachable - W0101 -15,31c34,36 +> valid_odoo_versions=13.0 +14,29c17 +< < enable=attribute-deprecated, < manifest-author-string, < manifest-deprecated-key, @@ -39,46 +26,32 @@ < translation-required, < use-vim-comment, < anomalous-backslash-in-string, -< api-one-deprecated, -< api-one-multi-together, --- -> -> > enable=anomalous-backslash-in-string, -33d37 -< class-camelcase, -35,36c39 -< dangerous-view-replace-wo-priority, -< duplicate-id-csv, ---- +32a21 +> attribute-deprecated, +35a25 > development-status-allowed, -38,42c41 -< duplicate-xml-fields, -< duplicate-xml-record-id, -< eval-referenced, -< eval-used, -< incoherent-interpreter-exec-perm, ---- -> duplicate-po-message-definition, -45c44,45 -< openerp-exception-warning, +43,44c33,42 +< missing-import-error, +< missing-manifest-dependency, --- -> po-msgstr-variables, -> po-syntax-error, -47a48 -> print-used, -49d49 -< redundant-modulename-xml, -56,57c56,62 -< wrong-tabs-instead-of-spaces, -< xml-syntax-error ---- -> eval-used, -> eval-referenced, > license-allowed, > manifest-author-string, +> manifest-deprecated-key, > manifest-required-author, > manifest-required-key, -> manifest-version-format -62a68 -> +> manifest-version-format, +> method-compute, +> method-inverse, +> method-required-super, +> method-search, +47a46 +> print-used, +53a53 +> sql-injection, +54a55,56 +> translation-field, +> translation-required, +55a58 +> use-vim-comment, diff --git a/tests/samples/mqt-diffs/v11.0-.pylintrc.diff b/tests/samples/mqt-diffs/v11.0-.pylintrc.diff index 518de45b..617180ca 100644 --- a/tests/samples/mqt-diffs/v11.0-.pylintrc.diff +++ b/tests/samples/mqt-diffs/v11.0-.pylintrc.diff @@ -1,32 +1,17 @@ -7c7 +0a1,2 +> +> +7c9 < manifest_required_authors=Tecnativa --- > manifest_required_authors=Odoo Community Association (OCA) -10c10 +10,11c12,13 < license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3,OPL-1,OEEL-1 +< valid_odoo_versions=11.0 --- > license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 -15a16,34 -> # Enable message and code: -> # anomalous-backslash-in-string - W1401 -> # assignment-from-none - W1111 -> # dangerous-default-value - W0102 -> # duplicate-key - W0109 -> # missing-import-error - W7935 -> # missing-manifest-dependency - W7936 -> # pointless-statement - W0104 -> # pointless-string-statement - W0105 -> # print-statement - E1601 -> # redundant-keyword-arg - E1124 -> # reimported - W0404 -> # relative-import - W0403 -> # return-in-init - E0101 -> # rst-syntax-error - E7901 -> # too-few-format-args - E1306 -> # unreachable - W0101 -> -> -23,46c42,82 +> valid_odoo_versions=13.0 +23,44c25 < # messages that do not cause the lint step to fail < enable=attribute-deprecated, < consider-merging-classes-inherited, @@ -49,128 +34,44 @@ < translation-required, < use-vim-comment, < anomalous-backslash-in-string, -< api-one-deprecated, -< api-one-multi-together, --- -> # Beta message and code: -> # api-one-deprecated - W8104 -> # api-one-multi-together - W8101 -> # attribute-deprecated - W8105 -> # class-camelcase - C8104 -> # create-user-wo-reset-password - W7905 -> # consider-merging-classes-inherited - R7980 -> # copy-wo-api-one - W8102 -> # dangerous-filter-wo-user - W7901 -> # dangerous-view-replace-wo-priority - W7940 -> # deprecated-module - W0402 -> # duplicate-id-csv - W7906 -> # duplicate-xml-fields - W7907 -> # duplicate-xml-record-id - W7902 -> # file-not-used - W7930 -> # incoherent-interpreter-exec-perm - W8201 -> # invalid-commit - E8102 -> # javascript-lint - W7903 -> # manifest-deprecated-key - C8103 -> # method-compute - C8108 -> # method-inverse - C8110 -> # method-required-super - W8106 -> # method-search - C8109 -> # missing-newline-extrafiles - W7908 -> # missing-readme - C7902 -> # no-utf8-coding-comment - C8201 -> # unnecessary-utf8-coding-comment - C8202 -> # odoo-addons-relative-import - W7950 -> # old-api7-method-defined - R8110 -> # openerp-exception-warning - R8101 -> # redundant-modulename-xml - W7909 -> # sql-injection - E8103 -> # too-complex - C0901 -> # translation-field - W8103 -> # translation-required - C8107 -> # use-vim-comment - W8202 -> # wrong-tabs-instead-of-spaces - W7910 -> # xml-syntax-error - E7902 -> -> > enable=anomalous-backslash-in-string, -48d83 -< class-camelcase, -50,51c85 -< dangerous-view-replace-wo-priority, -< duplicate-id-csv, ---- +47a29 +> attribute-deprecated, +50a33 > development-status-allowed, -53,57c87 -< duplicate-xml-fields, -< duplicate-xml-record-id, -< eval-referenced, -< eval-used, -< incoherent-interpreter-exec-perm, ---- -> duplicate-po-message-definition, -60c90,91 -< openerp-exception-warning, ---- -> po-msgstr-variables, -> po-syntax-error, -62a94 -> print-used, -64d95 -< redundant-modulename-xml, -71,72c102,112 -< wrong-tabs-instead-of-spaces, -< xml-syntax-error, +58,59c41,50 +< missing-import-error, +< missing-manifest-dependency, --- -> eval-used, -> eval-referenced, > license-allowed, > manifest-author-string, +> manifest-deprecated-key, > manifest-required-author, > manifest-required-key, > manifest-version-format, -> api-one-deprecated, -> api-one-multi-together, -> attribute-deprecated, -> class-camelcase, -73a114,115 -> consider-merging-classes-inherited, -> copy-wo-api-one, -74a117 -> dangerous-view-replace-wo-priority, -75a119,122 -> duplicate-id-csv, -> duplicate-po-message-definition, -> duplicate-xml-fields, -> duplicate-xml-record-id, -76a124,131 -> incoherent-interpreter-exec-perm, -> invalid-commit, -> javascript-lint, -> manifest-deprecated-key, > method-compute, > method-inverse, > method-required-super, > method-search, -77a133,135 -> missing-readme, -> po-msgstr-variables, -> po-syntax-error, -78a137,138 -> unnecessary-utf8-coding-comment, -> odoo-addons-relative-import, -79a140 -> openerp-exception-warning, -80a142,143 -> redundant-modulename-xml, +62a54 +> print-used, +68a61 > sql-injection, -82c145,150 -< unnecessary-utf8-coding-comment ---- +69a63,64 > translation-field, > translation-required, +70a66 > use-vim-comment, -> wrong-tabs-instead-of-spaces, -> xml-syntax-error, -> -87a156 +72a69,70 +> # messages that do not cause the lint step to fail +> consider-merging-classes-inherited, +76a75,76 +> invalid-commit, +> missing-manifest-dependency, +77a78 +> missing-readme, +78a80 +> odoo-addons-relative-import, +82a85 > diff --git a/tests/samples/mqt-diffs/v12.0-.pylintrc-mandatory.diff b/tests/samples/mqt-diffs/v12.0-.pylintrc-mandatory.diff index 22d40d70..aac15571 100644 --- a/tests/samples/mqt-diffs/v12.0-.pylintrc-mandatory.diff +++ b/tests/samples/mqt-diffs/v12.0-.pylintrc-mandatory.diff @@ -1,29 +1,16 @@ -6a7 +0a1 +> +6a8 > manifest_required_authors=Odoo Community Association (OCA) -8c9,10 +8,9c10,12 < manifest_deprecated_keys=active +< valid_odoo_versions=12.0 --- > manifest_deprecated_keys=description,active > license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 -13a16,32 -> # Enable message and code: -> # anomalous-backslash-in-string - W1401 -> # assignment-from-none - W1111 -> # dangerous-default-value - W0102 -> # duplicate-key - W0109 -> # missing-import-error - W7935 -> # missing-manifest-dependency - W7936 -> # pointless-statement - W0104 -> # pointless-string-statement - W0105 -> # print-statement - E1601 -> # redundant-keyword-arg - E1124 -> # reimported - W0404 -> # relative-import - W0403 -> # return-in-init - E0101 -> # rst-syntax-error - E7901 -> # too-few-format-args - E1306 -> # unreachable - W0101 -15,31c34,36 +> valid_odoo_versions=13.0 +14,29c17 +< < enable=attribute-deprecated, < manifest-author-string, < manifest-deprecated-key, @@ -39,46 +26,32 @@ < translation-required, < use-vim-comment, < anomalous-backslash-in-string, -< api-one-deprecated, -< api-one-multi-together, --- -> -> > enable=anomalous-backslash-in-string, -33d37 -< class-camelcase, -35,36c39 -< dangerous-view-replace-wo-priority, -< duplicate-id-csv, ---- +32a21 +> attribute-deprecated, +35a25 > development-status-allowed, -38,42c41 -< duplicate-xml-fields, -< duplicate-xml-record-id, -< eval-referenced, -< eval-used, -< incoherent-interpreter-exec-perm, ---- -> duplicate-po-message-definition, -45c44,45 -< openerp-exception-warning, +43,44c33,42 +< missing-import-error, +< missing-manifest-dependency, --- -> po-msgstr-variables, -> po-syntax-error, -47a48 -> print-used, -49d49 -< redundant-modulename-xml, -56,57c56,62 -< wrong-tabs-instead-of-spaces, -< xml-syntax-error ---- -> eval-used, -> eval-referenced, > license-allowed, > manifest-author-string, +> manifest-deprecated-key, > manifest-required-author, > manifest-required-key, -> manifest-version-format -62a68 -> +> manifest-version-format, +> method-compute, +> method-inverse, +> method-required-super, +> method-search, +47a46 +> print-used, +53a53 +> sql-injection, +54a55,56 +> translation-field, +> translation-required, +55a58 +> use-vim-comment, diff --git a/tests/samples/mqt-diffs/v12.0-.pylintrc.diff b/tests/samples/mqt-diffs/v12.0-.pylintrc.diff index 518de45b..04f8da85 100644 --- a/tests/samples/mqt-diffs/v12.0-.pylintrc.diff +++ b/tests/samples/mqt-diffs/v12.0-.pylintrc.diff @@ -1,32 +1,17 @@ -7c7 +0a1,2 +> +> +7c9 < manifest_required_authors=Tecnativa --- > manifest_required_authors=Odoo Community Association (OCA) -10c10 +10,11c12,13 < license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3,OPL-1,OEEL-1 +< valid_odoo_versions=12.0 --- > license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 -15a16,34 -> # Enable message and code: -> # anomalous-backslash-in-string - W1401 -> # assignment-from-none - W1111 -> # dangerous-default-value - W0102 -> # duplicate-key - W0109 -> # missing-import-error - W7935 -> # missing-manifest-dependency - W7936 -> # pointless-statement - W0104 -> # pointless-string-statement - W0105 -> # print-statement - E1601 -> # redundant-keyword-arg - E1124 -> # reimported - W0404 -> # relative-import - W0403 -> # return-in-init - E0101 -> # rst-syntax-error - E7901 -> # too-few-format-args - E1306 -> # unreachable - W0101 -> -> -23,46c42,82 +> valid_odoo_versions=13.0 +23,44c25 < # messages that do not cause the lint step to fail < enable=attribute-deprecated, < consider-merging-classes-inherited, @@ -49,128 +34,44 @@ < translation-required, < use-vim-comment, < anomalous-backslash-in-string, -< api-one-deprecated, -< api-one-multi-together, --- -> # Beta message and code: -> # api-one-deprecated - W8104 -> # api-one-multi-together - W8101 -> # attribute-deprecated - W8105 -> # class-camelcase - C8104 -> # create-user-wo-reset-password - W7905 -> # consider-merging-classes-inherited - R7980 -> # copy-wo-api-one - W8102 -> # dangerous-filter-wo-user - W7901 -> # dangerous-view-replace-wo-priority - W7940 -> # deprecated-module - W0402 -> # duplicate-id-csv - W7906 -> # duplicate-xml-fields - W7907 -> # duplicate-xml-record-id - W7902 -> # file-not-used - W7930 -> # incoherent-interpreter-exec-perm - W8201 -> # invalid-commit - E8102 -> # javascript-lint - W7903 -> # manifest-deprecated-key - C8103 -> # method-compute - C8108 -> # method-inverse - C8110 -> # method-required-super - W8106 -> # method-search - C8109 -> # missing-newline-extrafiles - W7908 -> # missing-readme - C7902 -> # no-utf8-coding-comment - C8201 -> # unnecessary-utf8-coding-comment - C8202 -> # odoo-addons-relative-import - W7950 -> # old-api7-method-defined - R8110 -> # openerp-exception-warning - R8101 -> # redundant-modulename-xml - W7909 -> # sql-injection - E8103 -> # too-complex - C0901 -> # translation-field - W8103 -> # translation-required - C8107 -> # use-vim-comment - W8202 -> # wrong-tabs-instead-of-spaces - W7910 -> # xml-syntax-error - E7902 -> -> > enable=anomalous-backslash-in-string, -48d83 -< class-camelcase, -50,51c85 -< dangerous-view-replace-wo-priority, -< duplicate-id-csv, ---- +47a29 +> attribute-deprecated, +50a33 > development-status-allowed, -53,57c87 -< duplicate-xml-fields, -< duplicate-xml-record-id, -< eval-referenced, -< eval-used, -< incoherent-interpreter-exec-perm, ---- -> duplicate-po-message-definition, -60c90,91 -< openerp-exception-warning, ---- -> po-msgstr-variables, -> po-syntax-error, -62a94 -> print-used, -64d95 -< redundant-modulename-xml, -71,72c102,112 -< wrong-tabs-instead-of-spaces, -< xml-syntax-error, +58,59c41,50 +< missing-import-error, +< missing-manifest-dependency, --- -> eval-used, -> eval-referenced, > license-allowed, > manifest-author-string, +> manifest-deprecated-key, > manifest-required-author, > manifest-required-key, > manifest-version-format, -> api-one-deprecated, -> api-one-multi-together, -> attribute-deprecated, -> class-camelcase, -73a114,115 -> consider-merging-classes-inherited, -> copy-wo-api-one, -74a117 -> dangerous-view-replace-wo-priority, -75a119,122 -> duplicate-id-csv, -> duplicate-po-message-definition, -> duplicate-xml-fields, -> duplicate-xml-record-id, -76a124,131 -> incoherent-interpreter-exec-perm, -> invalid-commit, -> javascript-lint, -> manifest-deprecated-key, > method-compute, > method-inverse, > method-required-super, > method-search, -77a133,135 -> missing-readme, -> po-msgstr-variables, -> po-syntax-error, -78a137,138 -> unnecessary-utf8-coding-comment, -> odoo-addons-relative-import, -79a140 -> openerp-exception-warning, -80a142,143 -> redundant-modulename-xml, +62a54 +> print-used, +68a61 > sql-injection, -82c145,150 -< unnecessary-utf8-coding-comment ---- +69a63,64 > translation-field, > translation-required, +70a66 > use-vim-comment, -> wrong-tabs-instead-of-spaces, -> xml-syntax-error, -> -87a156 +72a69,70 +> # messages that do not cause the lint step to fail +> consider-merging-classes-inherited, +76a75,76 +> invalid-commit, +> missing-manifest-dependency, +77a78 +> missing-readme, +78a80 +> odoo-addons-relative-import, +82a85 > diff --git a/tests/samples/mqt-diffs/v16.0-.pylintrc-mandatory.diff b/tests/samples/mqt-diffs/v16.0-.pylintrc-mandatory.diff index 7b8accec..08ad7812 100644 --- a/tests/samples/mqt-diffs/v16.0-.pylintrc-mandatory.diff +++ b/tests/samples/mqt-diffs/v16.0-.pylintrc-mandatory.diff @@ -1,17 +1,12 @@ 0a1 > -6,9c7,12 -< readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" -< manifest-required-keys=license +6a8 +> manifest-required-authors=Odoo Community Association (OCA) +8c10,11 < manifest-deprecated-keys=active -< valid-odoo-versions=16.0 --- -> readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" -> manifest_required_authors=Odoo Community Association (OCA) -> manifest_required_keys=license -> manifest_deprecated_keys=description,active -> license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 -> valid_odoo_versions=16.0 +> manifest-deprecated-keys=description,active +> license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 14,15c17,33 < < enable=attribute-deprecated, diff --git a/tests/samples/mqt-diffs/v16.0-.pylintrc.diff b/tests/samples/mqt-diffs/v16.0-.pylintrc.diff index bb4253f7..a6d25b40 100644 --- a/tests/samples/mqt-diffs/v16.0-.pylintrc.diff +++ b/tests/samples/mqt-diffs/v16.0-.pylintrc.diff @@ -1,20 +1,14 @@ 0a1,2 > > -6,11c8,13 -< readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" +7c9 < manifest-required-authors=Tecnativa -< manifest-required-keys=license -< manifest-deprecated-keys=description,active +--- +> manifest-required-authors=Odoo Community Association (OCA) +10c12 < license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3,OPL-1,OEEL-1 -< valid-odoo-versions=16.0 --- -> readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" -> manifest_required_authors=Odoo Community Association (OCA) -> manifest_required_keys=license -> manifest_deprecated_keys=description,active -> license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 -> valid_odoo_versions=16.0 +> license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 23,26c25,40 < # messages that do not cause the lint step to fail < enable=attribute-deprecated, diff --git a/tests/samples/mqt-diffs/v17.0-.pylintrc-mandatory.diff b/tests/samples/mqt-diffs/v17.0-.pylintrc-mandatory.diff new file mode 100644 index 00000000..08ad7812 --- /dev/null +++ b/tests/samples/mqt-diffs/v17.0-.pylintrc-mandatory.diff @@ -0,0 +1,99 @@ +0a1 +> +6a8 +> manifest-required-authors=Odoo Community Association (OCA) +8c10,11 +< manifest-deprecated-keys=active +--- +> manifest-deprecated-keys=description,active +> license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 +14,15c17,33 +< +< enable=attribute-deprecated, +--- +> enable=anomalous-backslash-in-string, +> api-one-deprecated, +> api-one-multi-together, +> assignment-from-none, +> attribute-deprecated, +> class-camelcase, +> dangerous-default-value, +> dangerous-view-replace-wo-priority, +> development-status-allowed, +> duplicate-id-csv, +> duplicate-key, +> duplicate-xml-fields, +> duplicate-xml-record-id, +> eval-referenced, +> eval-used, +> incoherent-interpreter-exec-perm, +> license-allowed, +17a36 +> manifest-required-author, +23a43,45 +> openerp-exception-warning, +> pointless-statement, +> pointless-string-statement, +24a47,52 +> redundant-keyword-arg, +> redundant-modulename-xml, +> reimported, +> relative-import, +> return-in-init, +> rst-syntax-error, +25a54 +> too-few-format-args, +27a57 +> unreachable, +28a59,60 +> wrong-tabs-instead-of-spaces, +> xml-syntax-error, +30c62,63 +< bad-builtin-groupby, +--- +> character-not-valid-in-resource-link, +> consider-merging-classes-inherited, +32,33c65,76 +< external-request-timeout, +< manifest-data-duplicated, +--- +> create-user-wo-reset-password, +> dangerous-filter-wo-user, +> dangerous-qweb-replace-wo-priority, +> deprecated-data-xml-node, +> deprecated-openerp-xml-node, +> duplicate-po-message-definition, +> except-pass, +> file-not-used, +> invalid-commit, +> manifest-maintainers-list, +> missing-newline-extrafiles, +> missing-readme, +35,38c78,81 +< no-raise-unlink, +< no-wizard-in-models, +< no-write-in-compute, +< odoo-exception-warning, +--- +> odoo-addons-relative-import, +> old-api7-method-defined, +> po-msgstr-variables, +> po-syntax-error, +40a84 +> str-format-used, +43,46d86 +< translation-format-interpolation, +< translation-format-truncated, +< translation-fstring-interpolation, +< translation-not-lazy, +48,50c88,93 +< translation-too-few-args, +< translation-too-many-args, +< translation-unsupported-format +--- +> unnecessary-utf8-coding-comment, +> website-manifest-key-not-valid-uri, +> xml-attribute-translatable, +> xml-deprecated-qweb-directive, +> xml-deprecated-tree-attribute, +> external-request-timeout diff --git a/tests/samples/mqt-diffs/v17.0-.pylintrc.diff b/tests/samples/mqt-diffs/v17.0-.pylintrc.diff new file mode 100644 index 00000000..a6d25b40 --- /dev/null +++ b/tests/samples/mqt-diffs/v17.0-.pylintrc.diff @@ -0,0 +1,123 @@ +0a1,2 +> +> +7c9 +< manifest-required-authors=Tecnativa +--- +> manifest-required-authors=Odoo Community Association (OCA) +10c12 +< license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3,OPL-1,OEEL-1 +--- +> license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 +23,26c25,40 +< # messages that do not cause the lint step to fail +< enable=attribute-deprecated, +< consider-merging-classes-inherited, +< invalid-commit, +--- +> enable=anomalous-backslash-in-string, +> api-one-deprecated, +> api-one-multi-together, +> assignment-from-none, +> attribute-deprecated, +> class-camelcase, +> dangerous-default-value, +> dangerous-view-replace-wo-priority, +> development-status-allowed, +> duplicate-id-csv, +> duplicate-key, +> duplicate-xml-fields, +> duplicate-xml-record-id, +> eval-referenced, +> eval-used, +> incoherent-interpreter-exec-perm, +37,38c51,53 +< missing-readme, +< odoo-addons-relative-import, +--- +> openerp-exception-warning, +> pointless-statement, +> pointless-string-statement, +39a55,60 +> redundant-keyword-arg, +> redundant-modulename-xml, +> reimported, +> relative-import, +> return-in-init, +> rst-syntax-error, +40a62 +> too-few-format-args, +42a65 +> unreachable, +43a67,68 +> wrong-tabs-instead-of-spaces, +> xml-syntax-error, +45c70,71 +< bad-builtin-groupby, +--- +> character-not-valid-in-resource-link, +> consider-merging-classes-inherited, +47c73,78 +< development-status-allowed, +--- +> create-user-wo-reset-password, +> dangerous-filter-wo-user, +> dangerous-qweb-replace-wo-priority, +> deprecated-data-xml-node, +> deprecated-openerp-xml-node, +> duplicate-po-message-definition, +49,50c80,81 +< external-request-timeout, +< manifest-data-duplicated, +--- +> file-not-used, +> invalid-commit, +51a83,84 +> missing-newline-extrafiles, +> missing-readme, +53,56c86,89 +< no-raise-unlink, +< no-wizard-in-models, +< no-write-in-compute, +< odoo-exception-warning, +--- +> odoo-addons-relative-import, +> old-api7-method-defined, +> po-msgstr-variables, +> po-syntax-error, +58a92 +> str-format-used, +61,64d94 +< translation-format-interpolation, +< translation-format-truncated, +< translation-fstring-interpolation, +< translation-not-lazy, +66,69c96,118 +< translation-too-few-args, +< translation-too-many-args, +< translation-unsupported-format, +< website-manifest-key-not-valid-uri +--- +> unnecessary-utf8-coding-comment, +> website-manifest-key-not-valid-uri, +> xml-attribute-translatable, +> xml-deprecated-qweb-directive, +> xml-deprecated-tree-attribute, +> external-request-timeout, +> # messages that do not cause the lint step to fail +> consider-merging-classes-inherited, +> create-user-wo-reset-password, +> dangerous-filter-wo-user, +> deprecated-module, +> file-not-used, +> invalid-commit, +> missing-manifest-dependency, +> missing-newline-extrafiles, +> missing-readme, +> no-utf8-coding-comment, +> odoo-addons-relative-import, +> old-api7-method-defined, +> redefined-builtin, +> too-complex, +> unnecessary-utf8-coding-comment +> diff --git a/tests/samples/mqt-diffs/v7.0-.pylintrc-mandatory.diff b/tests/samples/mqt-diffs/v7.0-.pylintrc-mandatory.diff new file mode 100644 index 00000000..adf12a45 --- /dev/null +++ b/tests/samples/mqt-diffs/v7.0-.pylintrc-mandatory.diff @@ -0,0 +1,57 @@ +0a1 +> +6a8 +> manifest_required_authors=Odoo Community Association (OCA) +8,9c10,12 +< manifest_deprecated_keys=active +< valid_odoo_versions=7.0 +--- +> manifest_deprecated_keys=description,active +> license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 +> valid_odoo_versions=13.0 +14,29c17 +< +< enable=attribute-deprecated, +< manifest-author-string, +< manifest-deprecated-key, +< manifest-required-key, +< manifest-version-format, +< method-compute, +< method-inverse, +< method-required-super, +< method-search, +< print-used, +< sql-injection, +< translation-field, +< translation-required, +< use-vim-comment, +< anomalous-backslash-in-string, +--- +> enable=anomalous-backslash-in-string, +32a21 +> attribute-deprecated, +35a25 +> development-status-allowed, +43,44c33,42 +< missing-import-error, +< missing-manifest-dependency, +--- +> license-allowed, +> manifest-author-string, +> manifest-deprecated-key, +> manifest-required-author, +> manifest-required-key, +> manifest-version-format, +> method-compute, +> method-inverse, +> method-required-super, +> method-search, +47a46 +> print-used, +53a53 +> sql-injection, +54a55,56 +> translation-field, +> translation-required, +55a58 +> use-vim-comment, diff --git a/tests/samples/mqt-diffs/v7.0-.pylintrc.diff b/tests/samples/mqt-diffs/v7.0-.pylintrc.diff new file mode 100644 index 00000000..33f5fe77 --- /dev/null +++ b/tests/samples/mqt-diffs/v7.0-.pylintrc.diff @@ -0,0 +1,77 @@ +0a1,2 +> +> +7c9 +< manifest_required_authors=Tecnativa +--- +> manifest_required_authors=Odoo Community Association (OCA) +10,11c12,13 +< license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3,OPL-1,OEEL-1 +< valid_odoo_versions=7.0 +--- +> license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 +> valid_odoo_versions=13.0 +23,44c25 +< # messages that do not cause the lint step to fail +< enable=attribute-deprecated, +< consider-merging-classes-inherited, +< invalid-commit, +< license-allowed, +< manifest-author-string, +< manifest-deprecated-key, +< manifest-required-author, +< manifest-required-key, +< manifest-version-format, +< method-compute, +< method-inverse, +< method-required-super, +< method-search, +< missing-readme, +< odoo-addons-relative-import, +< print-used, +< sql-injection, +< translation-field, +< translation-required, +< use-vim-comment, +< anomalous-backslash-in-string, +--- +> enable=anomalous-backslash-in-string, +47a29 +> attribute-deprecated, +50a33 +> development-status-allowed, +58,59c41,50 +< missing-import-error, +< missing-manifest-dependency, +--- +> license-allowed, +> manifest-author-string, +> manifest-deprecated-key, +> manifest-required-author, +> manifest-required-key, +> manifest-version-format, +> method-compute, +> method-inverse, +> method-required-super, +> method-search, +62a54 +> print-used, +68a61 +> sql-injection, +69a63,64 +> translation-field, +> translation-required, +70a66 +> use-vim-comment, +72a69,70 +> # messages that do not cause the lint step to fail +> consider-merging-classes-inherited, +76a75,76 +> invalid-commit, +> missing-manifest-dependency, +77a78 +> missing-readme, +78a80 +> odoo-addons-relative-import, +82a85 +> diff --git a/tests/samples/mqt-diffs/v8.0-.pylintrc-mandatory.diff b/tests/samples/mqt-diffs/v8.0-.pylintrc-mandatory.diff new file mode 100644 index 00000000..aa619c82 --- /dev/null +++ b/tests/samples/mqt-diffs/v8.0-.pylintrc-mandatory.diff @@ -0,0 +1,57 @@ +0a1 +> +6a8 +> manifest_required_authors=Odoo Community Association (OCA) +8,9c10,12 +< manifest_deprecated_keys=active +< valid_odoo_versions=8.0 +--- +> manifest_deprecated_keys=description,active +> license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 +> valid_odoo_versions=13.0 +14,29c17 +< +< enable=attribute-deprecated, +< manifest-author-string, +< manifest-deprecated-key, +< manifest-required-key, +< manifest-version-format, +< method-compute, +< method-inverse, +< method-required-super, +< method-search, +< print-used, +< sql-injection, +< translation-field, +< translation-required, +< use-vim-comment, +< anomalous-backslash-in-string, +--- +> enable=anomalous-backslash-in-string, +32a21 +> attribute-deprecated, +35a25 +> development-status-allowed, +43,44c33,42 +< missing-import-error, +< missing-manifest-dependency, +--- +> license-allowed, +> manifest-author-string, +> manifest-deprecated-key, +> manifest-required-author, +> manifest-required-key, +> manifest-version-format, +> method-compute, +> method-inverse, +> method-required-super, +> method-search, +47a46 +> print-used, +53a53 +> sql-injection, +54a55,56 +> translation-field, +> translation-required, +55a58 +> use-vim-comment, diff --git a/tests/samples/mqt-diffs/v8.0-.pylintrc.diff b/tests/samples/mqt-diffs/v8.0-.pylintrc.diff new file mode 100644 index 00000000..01830712 --- /dev/null +++ b/tests/samples/mqt-diffs/v8.0-.pylintrc.diff @@ -0,0 +1,77 @@ +0a1,2 +> +> +7c9 +< manifest_required_authors=Tecnativa +--- +> manifest_required_authors=Odoo Community Association (OCA) +10,11c12,13 +< license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3,OPL-1,OEEL-1 +< valid_odoo_versions=8.0 +--- +> license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 +> valid_odoo_versions=13.0 +23,44c25 +< # messages that do not cause the lint step to fail +< enable=attribute-deprecated, +< consider-merging-classes-inherited, +< invalid-commit, +< license-allowed, +< manifest-author-string, +< manifest-deprecated-key, +< manifest-required-author, +< manifest-required-key, +< manifest-version-format, +< method-compute, +< method-inverse, +< method-required-super, +< method-search, +< missing-readme, +< odoo-addons-relative-import, +< print-used, +< sql-injection, +< translation-field, +< translation-required, +< use-vim-comment, +< anomalous-backslash-in-string, +--- +> enable=anomalous-backslash-in-string, +47a29 +> attribute-deprecated, +50a33 +> development-status-allowed, +58,59c41,50 +< missing-import-error, +< missing-manifest-dependency, +--- +> license-allowed, +> manifest-author-string, +> manifest-deprecated-key, +> manifest-required-author, +> manifest-required-key, +> manifest-version-format, +> method-compute, +> method-inverse, +> method-required-super, +> method-search, +62a54 +> print-used, +68a61 +> sql-injection, +69a63,64 +> translation-field, +> translation-required, +70a66 +> use-vim-comment, +72a69,70 +> # messages that do not cause the lint step to fail +> consider-merging-classes-inherited, +76a75,76 +> invalid-commit, +> missing-manifest-dependency, +77a78 +> missing-readme, +78a80 +> odoo-addons-relative-import, +82a85 +> diff --git a/tests/samples/mqt-diffs/v9.0-.pylintrc-mandatory.diff b/tests/samples/mqt-diffs/v9.0-.pylintrc-mandatory.diff new file mode 100644 index 00000000..e65b4840 --- /dev/null +++ b/tests/samples/mqt-diffs/v9.0-.pylintrc-mandatory.diff @@ -0,0 +1,57 @@ +0a1 +> +6a8 +> manifest_required_authors=Odoo Community Association (OCA) +8,9c10,12 +< manifest_deprecated_keys=active +< valid_odoo_versions=9.0 +--- +> manifest_deprecated_keys=description,active +> license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 +> valid_odoo_versions=13.0 +14,29c17 +< +< enable=attribute-deprecated, +< manifest-author-string, +< manifest-deprecated-key, +< manifest-required-key, +< manifest-version-format, +< method-compute, +< method-inverse, +< method-required-super, +< method-search, +< print-used, +< sql-injection, +< translation-field, +< translation-required, +< use-vim-comment, +< anomalous-backslash-in-string, +--- +> enable=anomalous-backslash-in-string, +32a21 +> attribute-deprecated, +35a25 +> development-status-allowed, +43,44c33,42 +< missing-import-error, +< missing-manifest-dependency, +--- +> license-allowed, +> manifest-author-string, +> manifest-deprecated-key, +> manifest-required-author, +> manifest-required-key, +> manifest-version-format, +> method-compute, +> method-inverse, +> method-required-super, +> method-search, +47a46 +> print-used, +53a53 +> sql-injection, +54a55,56 +> translation-field, +> translation-required, +55a58 +> use-vim-comment, diff --git a/tests/samples/mqt-diffs/v9.0-.pylintrc.diff b/tests/samples/mqt-diffs/v9.0-.pylintrc.diff new file mode 100644 index 00000000..c7eed280 --- /dev/null +++ b/tests/samples/mqt-diffs/v9.0-.pylintrc.diff @@ -0,0 +1,77 @@ +0a1,2 +> +> +7c9 +< manifest_required_authors=Tecnativa +--- +> manifest_required_authors=Odoo Community Association (OCA) +10,11c12,13 +< license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3,OPL-1,OEEL-1 +< valid_odoo_versions=9.0 +--- +> license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 +> valid_odoo_versions=13.0 +23,44c25 +< # messages that do not cause the lint step to fail +< enable=attribute-deprecated, +< consider-merging-classes-inherited, +< invalid-commit, +< license-allowed, +< manifest-author-string, +< manifest-deprecated-key, +< manifest-required-author, +< manifest-required-key, +< manifest-version-format, +< method-compute, +< method-inverse, +< method-required-super, +< method-search, +< missing-readme, +< odoo-addons-relative-import, +< print-used, +< sql-injection, +< translation-field, +< translation-required, +< use-vim-comment, +< anomalous-backslash-in-string, +--- +> enable=anomalous-backslash-in-string, +47a29 +> attribute-deprecated, +50a33 +> development-status-allowed, +58,59c41,50 +< missing-import-error, +< missing-manifest-dependency, +--- +> license-allowed, +> manifest-author-string, +> manifest-deprecated-key, +> manifest-required-author, +> manifest-required-key, +> manifest-version-format, +> method-compute, +> method-inverse, +> method-required-super, +> method-search, +62a54 +> print-used, +68a61 +> sql-injection, +69a63,64 +> translation-field, +> translation-required, +70a66 +> use-vim-comment, +72a69,70 +> # messages that do not cause the lint step to fail +> consider-merging-classes-inherited, +76a75,76 +> invalid-commit, +> missing-manifest-dependency, +77a78 +> missing-readme, +78a80 +> odoo-addons-relative-import, +82a85 +>