diff --git a/lib/common/.pylintrc b/lib/common/.pylintrc index 927272e..a075fac 100644 --- a/lib/common/.pylintrc +++ b/lib/common/.pylintrc @@ -202,7 +202,10 @@ disable=raw-checker-failed, too-many-public-methods, too-many-return-statements, too-many-statements, - unnecessary-pass + unnecessary-pass, + trailing-whitespace, + missing-final-newline + # Include some helpful details on errors messages for naming rules: include-naming-hint = yes diff --git a/test/acronym/analysis.json b/test/acronym/analysis.json index a247173..3710881 100644 --- a/test/acronym/analysis.json +++ b/test/acronym/analysis.json @@ -1,19 +1,6 @@ { "summary": "Good work! \ud83c\udf1f Here are some general recommendations for improving your Python code.", "comments": [ - { - "comment": "python.pylint.convention", - "params": { - "lineno": "6", - "code": "C0304 missing-final-newline", - "message": "Final newline missing", - "bad_code": "Instead of: \n```python\nprint(\"Hello\") # CRLF (\\r\\n)\nprint(\"world\") # End-of-file (EOF)\n# [missing-final-newline]\n\nprint(\"Hello\") # LF (\\n)\nprint(\"world\") # End-of-file (EOF)\n# [missing-final-newline]\n\n```\n\n", - "good_code": "Try: \n```python\nprint(\"Hello\") # CRLF (\\r\\n)\nprint(\"world\") # CRLF (\\r\\n)\n# End-of-file (EOF)\n\nprint(\"Hello\") # LF (\\n)\nprint(\"world\") # LF (\\n)\n# End-of-file (EOF)\n```\n\n", - "related_info": "- [POSIX Standard](https://pubs.opengroup.org/onlinepubs/9699919799/)\n- [POSIX Standard Chapter 3.206\n Line](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206)\n", - "details": "The POSIX standard defines a line as:\n\n: \\\"A sequence of zero or more non- \\ characters plus a\n terminating \\ character.\\\"\n" - }, - "type": "informative" - }, { "comment": "python.pylint.convention", "params": {