gil-uav / semantic-image-segmentation

Semantic segmentation of static objects in orthophotos.
MIT License
2 stars 0 forks source link

(PYL-C0122) Misplaced comparison constant #40

Closed vegovs closed 3 years ago

vegovs commented 3 years ago

Description

The constant is placed on the left side of a comparison. It is usually clearer in intent to place it in the right hand side of the comparison. Not preferred: python if 0 == x % 2: ... Preferred: python if x % 2 == 0: ...

Occurrences

There are 2 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/gil-uav/semantic-image-segmentation/issue/PYL-C0122/occurrences/