Skip to content

Commit c5f5331

Browse files
authored
[PyLint Rules]: Disabled noisy trailing-whitespace and missing-final-newline Rules in the General .pylintrc. (#75)
* Disabled noisy trailing-whitespace and missing-final-newline. * Re-recorded acronym golden file due to disabling the no-trailing-newline and trailing-whitespace rules.
1 parent 22e8d14 commit c5f5331

2 files changed

Lines changed: 4 additions & 14 deletions

File tree

lib/common/.pylintrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,10 @@ disable=raw-checker-failed,
202202
too-many-public-methods,
203203
too-many-return-statements,
204204
too-many-statements,
205-
unnecessary-pass
205+
unnecessary-pass,
206+
trailing-whitespace,
207+
missing-final-newline
208+
206209

207210
# Include some helpful details on errors messages for naming rules:
208211
include-naming-hint = yes

test/acronym/analysis.json

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
11
{
22
"summary": "Good work! \ud83c\udf1f Here are some general recommendations for improving your Python code.",
33
"comments": [
4-
{
5-
"comment": "python.pylint.convention",
6-
"params": {
7-
"lineno": "6",
8-
"code": "C0304 missing-final-newline",
9-
"message": "Final newline missing",
10-
"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",
11-
"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",
12-
"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",
13-
"details": "The POSIX standard defines a line as:\n\n: \\\"A sequence of zero or more non- \\<newline\\> characters plus a\n terminating \\<newline\\> character.\\\"\n"
14-
},
15-
"type": "informative"
16-
},
174
{
185
"comment": "python.pylint.convention",
196
"params": {

0 commit comments

Comments
 (0)