Glavin001 / Glavin001/PeakProgrammer

Penalize assignments to parameters

Open
#18 0 comments 0 reactions 0 assignees View on GitHub
penalty
Dominant language
Jupyter Notebook
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

See https://refactoring.guru/remove-assignments-to-parameters

Given:

```python
def discount(inputVal, quantity):
if quantity > 50:
inputVal -= 2
```

The sequence `inputVal -=` should be penalized.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.