mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Update integration test outout and fix qhelp
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
ql/python/ql/src/Classes/CallsToInitDel/MissingCallToDel.ql
|
||||
ql/python/ql/src/Classes/CallsToInitDel/MissingCallToInit.ql
|
||||
ql/python/ql/src/Classes/CallsToInitDel/SuperclassDelCalledMultipleTimes.ql
|
||||
ql/python/ql/src/Classes/CallsToInitDel/SuperclassInitCalledMultipleTimes.ql
|
||||
ql/python/ql/src/Classes/Comparisons/EqualsOrHash.ql
|
||||
ql/python/ql/src/Classes/Comparisons/EqualsOrNotEquals.ql
|
||||
ql/python/ql/src/Classes/Comparisons/IncompleteOrdering.ql
|
||||
@@ -5,16 +9,12 @@ ql/python/ql/src/Classes/ConflictingAttributesInBaseClasses.ql
|
||||
ql/python/ql/src/Classes/DefineEqualsWhenAddingAttributes.ql
|
||||
ql/python/ql/src/Classes/InconsistentMRO.ql
|
||||
ql/python/ql/src/Classes/InitCallsSubclass/InitCallsSubclassMethod.ql
|
||||
ql/python/ql/src/Classes/MissingCallToDel.ql
|
||||
ql/python/ql/src/Classes/MissingCallToInit.ql
|
||||
ql/python/ql/src/Classes/MutatingDescriptor.ql
|
||||
ql/python/ql/src/Classes/OverwritingAttributeInSuperClass.ql
|
||||
ql/python/ql/src/Classes/PropertyInOldStyleClass.ql
|
||||
ql/python/ql/src/Classes/SlotsInOldStyleClass.ql
|
||||
ql/python/ql/src/Classes/SubclassShadowing/SubclassShadowing.ql
|
||||
ql/python/ql/src/Classes/SuperInOldStyleClass.ql
|
||||
ql/python/ql/src/Classes/SuperclassDelCalledMultipleTimes.ql
|
||||
ql/python/ql/src/Classes/SuperclassInitCalledMultipleTimes.ql
|
||||
ql/python/ql/src/Classes/WrongNameForArgumentInClassInstantiation.ql
|
||||
ql/python/ql/src/Classes/WrongNumberArgumentsInClassInstantiation.ql
|
||||
ql/python/ql/src/Diagnostics/ExtractedFiles.ql
|
||||
|
||||
@@ -13,7 +13,7 @@ methods are called.
|
||||
<p>
|
||||
Classes with a <code>__del__</code> method (a finalizer) typically hold some resource such as a file handle that needs to be cleaned up.
|
||||
If the <code>__del__</code> method of a superclass is not called during object finalization, it is likely that
|
||||
that resources may be leaked.
|
||||
resources may be leaked.
|
||||
</p>
|
||||
|
||||
<p>A call to the <code>__init__</code> method of a superclass during object initialization may be unintentionally skipped:
|
||||
|
||||
@@ -30,7 +30,7 @@ cleaned up properly as expected.
|
||||
</overview>
|
||||
<recommendation>
|
||||
<p>Ensure that each finalizer method is called exactly once during finalization.
|
||||
This can be ensured by calling <code>super().__del__</code> for each finalizer methid in the inheritance chain.
|
||||
This can be ensured by calling <code>super().__del__</code> for each finalizer method in the inheritance chain.
|
||||
</p>
|
||||
|
||||
</recommendation>
|
||||
@@ -41,7 +41,7 @@ being called twice.
|
||||
<code>FixedSportsCar.__del__</code> fixes this by using <code>super()</code> consistently with the other delete methods.
|
||||
</p>
|
||||
|
||||
<sample src="SuperclassInitCalledMultipleTimes2.py" />
|
||||
<sample src="examples/SuperclassDelCalledMultipleTimes.py" />
|
||||
|
||||
</example>
|
||||
<references>
|
||||
|
||||
Reference in New Issue
Block a user