jmakhack / myanimelist-cli

Minimalistic command line interface for fetching user anime data from MyAnimeList.
https://aur.archlinux.org/packages/mya-git
MIT License
11 stars 15 forks source link

[TASK] Fix explicit precedence of operators within expressions issue #75

Closed jmakhack closed 1 year ago

jmakhack commented 1 year ago

Task Context

The Codacy Static Code Analysis reports the following error in the codebase: The precedence of operators within expressions should be made explicit (MISRA 12.1 Rule)

More details can be found here: https://app.codacy.com/gh/jmakhack/myanimelist-cli/issues?bid=22863233&filters=W3siaWQiOiJMYW5ndWFnZSIsInZhbHVlcyI6W119LHsiaWQiOiJDYXRlZ29yeSIsInZhbHVlcyI6WyJFcnJvclByb25lIl19LHsiaWQiOiJMZXZlbCIsInZhbHVlcyI6W119LHsiaWQiOiJQYXR0ZXJuIiwidmFsdWVzIjpbIjE1MTM2Il19LHsiaWQiOiJBdXRob3IiLCJ2YWx1ZXMiOltdfV0=

Acceptance Criteria

The acceptance criteria for this task is to fix the issues mentioned in the Codacy link. After opening a pull request, the Codacy check will automatically run to see if the issues were fixed.

Additional Context

Please read through the Contributing to the Project document before working on this project.

For any questions or discussions, join the Discord to meet and engage with other contributors!

Discord

metal-oopa commented 1 year ago

Hi @jmakhack Can you check out PR #76? It solves this issue.