File tree 11 files changed +51
-37
lines changed
11 files changed +51
-37
lines changed Original file line number Diff line number Diff line change 9
9
/pylint.egg-info /
10
10
.tox
11
11
* .sw [a-z ]
12
- doc /messages /
12
+ # Can't use | operator in .gitignore, see
13
+ # https://unix.stackexchange.com/a/31806/189111
14
+ doc /user_guide /messages /convention /
15
+ doc /user_guide /messages /error /
16
+ doc /user_guide /messages /fatal /
17
+ doc /user_guide /messages /information /
18
+ doc /user_guide /messages /refactor /
19
+ doc /user_guide /messages /warning /
13
20
doc /technical_reference /extensions.rst
14
21
doc /technical_reference /features.rst
15
22
doc /user_guide /configuration /all-options.rst
Original file line number Diff line number Diff line change 36
36
@echo " linkcheck to check all external links for integrity"
37
37
38
38
clean :
39
- -rm -rf $(BUILDDIR ) /* messages/convention messages/error messages/fatal messages/information \
40
- messages/refactor messages/warning technical_reference/extensions.rst technical_reference/features.rst
39
+ -rm -rf $(BUILDDIR ) /* user_guide/messages/convention user_guide/messages/error \
40
+ user_guide/messages/fatal user_guide/messages/information user_guide/messages/refactor \
41
+ user_guide/messages/warning technical_reference/extensions.rst technical_reference/features.rst
41
42
42
43
install-dependencies :
43
44
@echo " Install dependencies"
Original file line number Diff line number Diff line change 51
51
"intro" : "index.html" ,
52
52
"support" : "contact.html" ,
53
53
"user_guide/ide-integration" : "installation.html" ,
54
+ "messages/index" : "user_guide/messages/index.html" ,
55
+ "messages/messages_introduction" : "user_guide/messages/index.html" ,
56
+ "user_guide/message-control" : "user_guide/messages/message-control.html" ,
54
57
}
55
58
56
59
# Add any paths that contain templates here, relative to this directory.
Original file line number Diff line number Diff line change 23
23
PYLINT_BASE_PATH = Path (__file__ ).resolve ().parent .parent .parent
24
24
"""Base path to the project folder."""
25
25
26
- PYLINT_MESSAGES_PATH = PYLINT_BASE_PATH / "doc" / " messages"
26
+ PYLINT_MESSAGES_PATH = PYLINT_BASE_PATH / "doc/user_guide/ messages"
27
27
"""Path to the messages documentation folder."""
28
28
29
29
PYLINT_MESSAGES_DATA_PATH = PYLINT_BASE_PATH / "doc" / "data" / "messages"
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ re-evaluate and re-enable messages as your priorities evolve.
44
44
tutorial
45
45
user_guide/index.rst
46
46
how_tos/index.rst
47
- messages/index.rst
48
47
technical_reference/index.rst
49
48
development_guide/index.rst
50
49
additional_commands/index.rst
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ User Guide
9
9
installation
10
10
run
11
11
output
12
- message-control
12
+ messages/index
13
13
options
14
14
ide_integration/ide-integration
15
15
pre-commit-integration
Original file line number Diff line number Diff line change
1
+ .. _messages :
2
+
3
+ ########
4
+ Messages
5
+ ########
6
+
7
+ .. toctree ::
8
+ :maxdepth: 2
9
+ :hidden:
10
+
11
+
12
+ messages_list.rst
13
+ message-control.rst
14
+
15
+ Pylint can emit various messages. These are categorized according
16
+ to categories corresponding to bit-encoded exit codes:
17
+
18
+ * :ref: `Fatal ` (1)
19
+ * :ref: `Error ` (2)
20
+ * :ref: `Warning ` (4)
21
+ * :ref: `Convention ` (8)
22
+ * :ref: `Refactor ` (16)
23
+ * :ref: `Information ` (NA)
24
+
25
+ A list of these messages can be found in :ref: `messages-list `
26
+
27
+ Disabling messages
28
+ ==================
29
+
30
+ ``pylint `` has an advanced message control for its checks, offering the ability
31
+ to enable / disable a message either from the command line or from the configuration
32
+ file, as well as from the code itself.
33
+
34
+ For more detail see :ref: `message-control `
Original file line number Diff line number Diff line change 3
3
Messages control
4
4
================
5
5
6
- ``pylint `` has an advanced message control for its checks, offering the ability
7
- to enable / disable a message either from the command line or from the configuration
8
- file, as well as from the code itself.
9
-
10
- For all of these controls, ``pylint `` accepts the following values:
6
+ In order to control messages, ``pylint `` accepts the following values:
11
7
12
8
* a symbolic message: ``no-member ``, ``undefined-variable `` etc.
13
9
File renamed without changes.
You can’t perform that action at this time.
0 commit comments