Skip to content

Conversation

@evidencebp
Copy link
Contributor

Fixing two alerts for pylint intervention experiment
The plan was 3 interventions

Changes are minor

  • The first long line represented the output and should stay as is
  • Unneeded parentheses were removed when calling the del keyword
  • Add line breaks to two too long lines making them shorter

Each intervention was done in a dedicated commit with a message explaining it.

@fzipi

Code calls  del(self.undef_txvars[-1])
While it works, while it works, del is a python keyword and not a function. Hence it is better to call del self.undef_txvars[-1]

See https://www.w3schools.com/python/ref_keyword_del.asp
Added newline to make two lines shorter
@evidencebp evidencebp changed the title 3835 pylint interventions refactor:3835 pylint interventions Sep 30, 2024
@M4tteoP M4tteoP changed the title refactor:3835 pylint interventions refactor: 3835 pylint interventions Sep 30, 2024
@fzipi
Copy link
Member

fzipi commented Sep 30, 2024

Fixes #3835

@fzipi
Copy link
Member

fzipi commented Sep 30, 2024

Thanks for the fixes @evidencebp!

@fzipi fzipi added this pull request to the merge queue Sep 30, 2024
Merged via the queue into coreruleset:main with commit a6036b9 Sep 30, 2024
@fzipi fzipi added the release:ignore Ignore for changelog release label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:ignore Ignore for changelog release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants