-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[deleted messages] Add an exception for deleted messages in MessageId…
…Store
- Loading branch information
1 parent
cb27a9f
commit c1405a9
Showing
8 changed files
with
98 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
tests/config/functional/ini/pylintrc_with_deleted_message.2.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
************* Module {abspath} | ||
{relpath}:1:0: E0012: Bad option value for --disable. Don't recognize message buffer-builtin. (bad-option-value) | ||
{relpath}:1:0: E0012: Bad option value for --enable. Don't recognize message useless-option-value. (bad-option-value) | ||
{relpath}:1:0: E0012: Bad option value for --enable. Don't recognize message cmp-builtin. (bad-option-value) |
7 changes: 7 additions & 0 deletions
7
tests/config/functional/ini/pylintrc_with_deleted_message.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Check that we raise an informational when a deleted messages exists in a .pylintrc file | ||
# See https://github.com/PyCQA/pylint/issues/6794 | ||
[messages control] | ||
disable = logging-not-lazy, buffer-builtin | ||
enable = useless-option-value, locally-disabled, cmp-builtin | ||
jobs = 10 | ||
reports = yes |
12 changes: 12 additions & 0 deletions
12
tests/config/functional/ini/pylintrc_with_deleted_message.result.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"functional_append": { | ||
"disable": ["logging-not-lazy"], | ||
"enable": ["locally-disabled"] | ||
}, | ||
"functional_remove": { | ||
"disable": ["locally-disabled"], | ||
"enable": ["logging-not-lazy"] | ||
}, | ||
"jobs": 10, | ||
"reports": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,21 @@ | ||
"""Check unknown or deleted option. """ | ||
|
||
# Standard disable with unknown value | ||
# pylint: disable=C05048 # [bad-option-value] | ||
# Standard disable with deleted symbol | ||
# pylint: disable=execfile-builtin # [bad-option-value] | ||
# Standard disable with deleted msgid | ||
# pylint: disable=W1656 # [bad-option-value] | ||
# disable-next with unknown value | ||
# pylint: disable-next=R78948 # [bad-option-value] | ||
# disable-next with deleted symbol | ||
# pylint: disable-next=deprecated-types-field # [bad-option-value] | ||
# disable-next with deleted msgid | ||
# pylint: disable-next=W1634 # [bad-option-value] | ||
|
||
# enable with unknown value | ||
# pylint:enable=W04044 # [bad-option-value] | ||
"""check unknown option | ||
""" | ||
__revision__ = 1 | ||
# enable with deleted symbol | ||
# pylint:enable=no-space-after-comma # [bad-option-value] | ||
# enable with deleted msgid | ||
# pylint:enable=W1622 # [bad-option-value] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
bad-option-value:1:0:None:None::Bad option value for enable. Don't recognize message W04044.:UNDEFINED | ||
bad-option-value:4:0:None:None::Bad option value for disable. Don't recognize message C05048.:UNDEFINED | ||
bad-option-value:6:0:None:None::Bad option value for disable. Don't recognize message execfile-builtin.:UNDEFINED | ||
bad-option-value:8:0:None:None::Bad option value for disable. Don't recognize message W1656.:UNDEFINED | ||
bad-option-value:10:0:None:None::Bad option value for disable-next. Don't recognize message R78948.:UNDEFINED | ||
bad-option-value:12:0:None:None::Bad option value for disable-next. Don't recognize message deprecated-types-field.:UNDEFINED | ||
bad-option-value:14:0:None:None::Bad option value for disable-next. Don't recognize message W1634.:UNDEFINED | ||
bad-option-value:17:0:None:None::Bad option value for enable. Don't recognize message W04044.:UNDEFINED | ||
bad-option-value:19:0:None:None::Bad option value for enable. Don't recognize message no-space-after-comma.:UNDEFINED | ||
bad-option-value:21:0:None:None::Bad option value for enable. Don't recognize message W1622.:UNDEFINED |