Skip to content

Commit ea25969

Browse files
[doc] Add linked references for message in old whatsnews (#10638)
1 parent 77c63d6 commit ea25969

37 files changed

+283
-284
lines changed

doc/whatsnew/0/0.x.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Release date: 2013-04-25
2929
* Simplify checks for dangerous default values by unifying tests for all
3030
different mutable compound literals.
3131

32-
* Improve the description for E1124[redundant-keyword-arg]
32+
* Improve the description for :ref:`redundant-keyword-arg`
3333

3434

3535
What's New in Pylint 0.27.0?

doc/whatsnew/1/1.0.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Release date: 2013-08-06
1919
* Do not double-check parameter names with the regex for parameters and
2020
inline variables.
2121

22-
* Added a new warning missing-final-newline (C0304) for files missing
22+
* Added a new warning :ref:`missing-final-newline` for files missing
2323
the final newline.
2424

2525
* Methods that are decorated as properties are now treated as attributes
@@ -34,13 +34,13 @@ Release date: 2013-08-06
3434
pylint can detect that value on the right-hand side is a class
3535
(like collections.namedtuple()).
3636

37-
* Simplified invalid-name message
37+
* Simplified :ref:`invalid-name` message
3838

3939
* Added a new warning invalid-encoded-data (W0512) for files that
4040
contain data that cannot be decoded with the specified or
4141
default encoding.
4242

43-
* New warning bad-open-mode (W1501) for calls to open (or file) that
43+
* New warning :ref:`bad-open-mode` for calls to open (or file) that
4444
specify invalid open modes (Original implementation by Sasha Issayev).
4545

4646
* New warning old-style-class (C1001) for classes that do not have any
@@ -49,18 +49,18 @@ Release date: 2013-08-06
4949
* Add new name type 'class_attribute' for attributes defined
5050
in class scope. By default, allow both const and variable names.
5151

52-
* New warning trailing-whitespace (C0303) that warns about
52+
* New warning :ref:`trailing-whitespace` that warns about
5353
trailing whitespace.
5454

5555
* Added a new warning unpacking-in-except (W0712) about unpacking
5656
exceptions in handlers, which is unsupported in Python 3.
5757

58-
* Add a configuration option for missing-docstring to
58+
* Add a configuration option for :ref:`missing-docstring` to
5959
optionally exempt short functions/methods/classes from
6060
the check.
6161

62-
* Add the type of the offending node to missing-docstring
63-
and empty-docstring.
62+
* Add the type of the offending node to :ref:`missing-docstring`
63+
and :ref:`empty-docstring`.
6464

6565
* New utility classes for per-checker unittests in testutils.py
6666

@@ -70,7 +70,7 @@ Release date: 2013-08-06
7070
* Do not treat all variables starting with _ as dummy variables,
7171
only _ itself.
7272

73-
* Make the line-too-long warning configurable by adding a regex for lines
73+
* Make the :ref:`line-too-long` warning configurable by adding a regex for lines
7474
for with the length limit should not be enforced
7575

7676
* Do not warn about a long line if a pylint disable
@@ -81,7 +81,7 @@ Release date: 2013-08-06
8181
* Added a new warning 'old-raise-syntax' for the deprecated syntax
8282
raise Exception, args
8383

84-
* Support for PEP 3102 and new missing-kwoa (E1125) message for missing
84+
* Support for PEP 3102 and new :ref:`missing-kwoa` message for missing
8585
mandatory keyword argument
8686

8787
Closes Logilab #107788

doc/whatsnew/1/1.1.rst

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,18 @@
44

55
Release date: 2013-12-22
66

7-
* Add new check for use of deprecated pragma directives "pylint:disable-msg"
8-
or "pylint:enable-msg" (I0022, deprecated-pragma) which was previously
9-
emitted as a regular warn().
7+
* Add new check for use of :ref:`deprecated-pragma` directives "pylint:disable-msg"
8+
or "pylint:enable-msg" which was previously emitted as a regular warn().
109

11-
* Avoid false used-before-assignment for except handler defined
10+
* Avoid false :ref:`used-before-assignment` for except handler defined
1211
identifier used on the same line.
1312

1413
Closes #111
1514

1615
* Combine 'no-space-after-operator', 'no-space-after-comma' and
1716
'no-space-before-operator' into a new warning 'bad-whitespace'.
1817

19-
* Add a new warning 'superfluous-parens' for unnecessary
18+
* Add a new warning :ref:`superfluous-parens` for unnecessary
2019
parentheses after certain keywords.
2120

2221
* Fix a potential crash in the redefine-in-handler warning
@@ -25,7 +24,7 @@ Release date: 2013-12-22
2524
* Add a new option for the multi-statement warning to
2625
allow single-line if statements.
2726

28-
* Add 'bad-context-manager' error, checking that '__exit__'
27+
* Add :ref:`bad-context-manager` error, checking that '__exit__'
2928
special method accepts the right number of arguments.
3029

3130
* Run pylint as a python module 'python -m pylint' (Anatoly Techtonik).
@@ -39,14 +38,14 @@ Release date: 2013-12-22
3938
Closes BitBucket #53
4039
Closes BitBucket #54
4140

42-
* Added a new warning, 'non-iterator-returned', for non-iterators
41+
* Added a new warning, :ref:`non-iterator-returned`, for non-iterators
4342
returned by '__iter__'.
4443

4544
* Add new checks for unpacking non-sequences in assignments
46-
(unpacking-non-sequence) as well as unbalanced tuple unpacking
47-
(unbalanced-tuple-unpacking).
45+
(:ref:`unpacking-non-sequence`) as well as unbalanced tuple unpacking
46+
(:ref:`unbalanced-tuple-unpacking`).
4847

49-
* useless-else-on-loop not emitted if there is a break in the
48+
* :ref:`useless-else-on-loop` not emitted if there is a break in the
5049
else clause of inner loop.
5150

5251
Closes #117
@@ -70,6 +69,6 @@ Release date: 2013-12-22
7069

7170
* Various documentation fixes and enhancements
7271

73-
* Fix a false-positive trailing-whitespace on Windows
72+
* Fix a false-positive :ref:`trailing-whitespace` on Windows
7473

7574
Closes #55

doc/whatsnew/1/1.2.rst

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Release date: 2014-04-30
1010
* Add a new warning [bad-continuation] for badly indented continued
1111
lines.
1212

13-
* Emit [assignment-from-none] when the function contains bare returns.
13+
* Emit :ref:`assignment-from-none` when the function contains bare returns.
1414

1515
Closes BitBucket #191
1616

@@ -24,8 +24,8 @@ Release date: 2014-04-30
2424

2525
Closes BitBucket #151
2626

27-
* Extend the checking for unbalanced-tuple-unpacking and
28-
unpacking-non-sequence to instance attribute unpacking as well.
27+
* Extend the checking for :ref:`unbalanced-tuple-unpacking` and
28+
:ref:`unpacking-non-sequence` to instance attribute unpacking as well.
2929

3030
* Fix explicit checking of python script (1.2 regression)
3131

@@ -66,7 +66,7 @@ Release date: 2014-04-18
6666

6767
Closes BitBucket #170
6868

69-
* Add new warning 'eval-used', checking that the builtin function ``eval`` was used.
69+
* Add new warning :ref:`eval-used`, checking that the builtin function ``eval`` was used.
7070

7171
* Make it possible to show a naming hint for invalid name by setting
7272
include-naming-hint. Also make the naming hints configurable.
@@ -84,7 +84,7 @@ Release date: 2014-04-18
8484
warnings; contributed by [email protected].
8585

8686
* Added a new configuration option logging-modules to make the list
87-
of module names that can be checked for 'logging-not-lazy' et. al.
87+
of module names that can be checked for :ref:`logging-not-lazy` et. al.
8888
configurable; contributed by [email protected].
8989

9090
* ensure init-hooks is evaluated before other options, notably load-plugins
@@ -97,11 +97,11 @@ Release date: 2014-04-18
9797
Closes BitBucket #50
9898
Closes BitBucket #62
9999

100-
* pylint doesn't crash when looking for used-before-assignment in context manager assignments.
100+
* pylint doesn't crash when looking for :ref:`used-before-assignment` in context manager assignments.
101101

102102
Closes BitBucket #128
103103

104-
* Add new warning, 'bad-reversed-sequence', for checking that the
104+
* Add new warning, :ref:`bad-reversed-sequence`, for checking that the
105105
reversed() builtin receive a sequence (implements ``__getitem__`` and ``__len__``,
106106
without being a dict or a dict subclass) or an instance which implements
107107
``__reversed__``.
@@ -110,25 +110,25 @@ Release date: 2014-04-18
110110

111111
Closes #8
112112

113-
* Add new warning 'bad-exception-context', checking
113+
* Add new warning :ref:`bad-exception-context`, checking
114114
that ``raise ... from ...`` uses a proper exception context
115115
(None or an exception).
116116

117-
* Enhance the check for 'used-before-assignment' to look
117+
* Enhance the check for :ref:`used-before-assignment` to look
118118
for 'nonlocal' uses.
119119

120-
* Emit 'undefined-all-variable' if a package's __all__
120+
* Emit :ref:`undefined-all-variable` if a package's __all__
121121
variable contains a missing submodule.
122122

123123
Closes #126
124124

125-
* Add a new warning 'abstract-class-instantiated' for checking
125+
* Add a new warning :ref:`abstract-class-instantiated` for checking
126126
that abstract classes created with ``abc`` module and
127127
with abstract methods are instantiated.
128128

129-
* Do not warn about 'return-arg-in-generator' in Python 3.3+.
129+
* Do not warn about :ref:`return-arg-in-generator` in Python 3.3+.
130130

131-
* Do not warn about 'abstract-method' when the abstract method
131+
* Do not warn about :ref:`abstract-method` when the abstract method
132132
is implemented through assignment
133133

134134
Closes #155
@@ -145,11 +145,11 @@ Release date: 2014-04-18
145145

146146
* Don't register the new style checker w/ python >= 3
147147

148-
* Fix unused-import false positive w/ augment assignment
148+
* Fix :ref:`unused-import` false positive w/ augment assignment
149149

150150
Closes #78
151151

152-
* Fix access-member-before-definition false negative wrt aug assign
152+
* Fix :ref:`access-member-before-definition` false negative wrt aug assign
153153

154154
Closes #164
155155

doc/whatsnew/1/1.3.rst

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Release date: 2014-07-26
2121

2222
Closes #205.
2323

24-
* Emit 'undefined-variable' for undefined names when using the
24+
* Emit :ref:`undefined-variable` for undefined names when using the
2525
Python 3 ``metaclass=`` argument.
2626

2727
* Checkers respect priority now.
@@ -32,29 +32,29 @@ Release date: 2014-07-26
3232

3333
Closes #149.
3434

35-
* Fix unused-import false positive with Python 3 metaclasses
35+
* Fix :ref:`unused-import` false positive with Python 3 metaclasses
3636

3737
Closes #143
3838

39-
* Don't warn with 'bad-format-character' when encountering
39+
* Don't warn with :ref:`bad-format-character` when encountering
4040
the 'a' format on Python 3.
4141

4242
* Add multiple checks for PEP 3101 advanced string formatting:
43-
'bad-format-string', 'missing-format-argument-key',
44-
'unused-format-string-argument', 'format-combined-specification',
45-
'missing-format-attribute' and 'invalid-format-index'.
43+
:ref:`bad-format-string`, :ref:`missing-format-argument-key`,
44+
:ref:`unused-format-string-argument`, :ref:`format-combined-specification`,
45+
:ref:`missing-format-attribute` and :ref:`invalid-format-index`.
4646

47-
* Issue broad-except and bare-except even if the number
47+
* Issue :ref:`broad-except` and :ref:`bare-except` even if the number
4848
of except handlers is different than 1.
4949

5050
Closes #113
5151

52-
* Issue attribute-defined-outside-init for all cases, not just
52+
* Issue :ref:`attribute-defined-outside-init` for all cases, not just
5353
for the last assignment.
5454

5555
Closes #262
5656

57-
* Emit 'not-callable' when calling properties.
57+
* Emit :ref:`not-callable` when calling properties.
5858

5959
Closes #268.
6060

@@ -63,17 +63,17 @@ Release date: 2014-07-26
6363

6464
Closes #273.
6565

66-
* Add new checks, 'invalid-slice-index' and 'invalid-sequence-index'
66+
* Add new checks, :ref:`invalid-slice-index` and :ref:`invalid-sequence-index`
6767
for invalid sequence and slice indices.
6868

69-
* Add 'assigning-non-slot' warning, which detects assignments to
69+
* Add :ref:`assigning-non-slot` warning, which detects assignments to
7070
attributes not defined in slots.
7171

72-
* Don't emit 'no-name-in-module' for ignored modules.
72+
* Don't emit :ref:`no-name-in-module` for ignored modules.
7373

7474
Closes #223.
7575

76-
* Fix an 'unused-variable' false positive, where the variable is
76+
* Fix an :ref:`unused-variable` false positive, where the variable is
7777
assigned through an import.
7878

7979
Closes #196.
@@ -83,7 +83,7 @@ Release date: 2014-07-26
8383

8484
Closes #257.
8585

86-
* Don't emit 'unused-variable' when assigning to a nonlocal.
86+
* Don't emit :ref:`unused-variable` when assigning to a nonlocal.
8787

8888
Closes #275.
8989

@@ -92,7 +92,7 @@ Release date: 2014-07-26
9292

9393
Closes #203.
9494

95-
* Don't emit 'pointless-string-statement' for attribute docstrings.
95+
* Don't emit :ref:`pointless-string-statement` for attribute docstrings.
9696

9797
Closes #193.
9898

@@ -103,14 +103,14 @@ Release date: 2014-07-26
103103
* Don't emit hidden-method message when the attribute has been
104104
monkey-patched, you're on your own when you do that.
105105

106-
* Only emit attribute-defined-outside-init for definition within the same
106+
* Only emit :ref:`attribute-defined-outside-init` for definition within the same
107107
module as the offended class, avoiding to mangle the output in some cases.
108108

109-
* Don't emit 'unnecessary-lambda' if the body of the lambda call contains
109+
* Don't emit :ref:`unnecessary-lambda` if the body of the lambda call contains
110110
call chaining.
111111

112112
Closes #243.
113113

114-
* Don't emit 'missing-docstring' when the actual docstring uses ``.format``.
114+
* Don't emit :ref:`missing-docstring` when the actual docstring uses ``.format``.
115115

116116
Closes #281.

0 commit comments

Comments
 (0)