ocadotechnology/aimmo

View on GitHub
aimmo-game-worker/simulation/location.py

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 3 of 3 total issues

Identical blocks of code found in 2 locations. Consider refactoring.
Open

def __sub__(self, direction):
return Location(self.x - direction.x, self.y - direction.y)
Severity: Minor
Found in aimmo-game-worker/simulation/location.py and 1 other location - About 45 mins to fix
aimmo-game/simulation/location.py on lines 12..13

Identical blocks of code found in 2 locations. Consider refactoring.
Open

def __eq__(self, other):
return self.x == other.x and self.y == other.y
Severity: Minor
Found in aimmo-game-worker/simulation/location.py and 1 other location - About 45 mins to fix
aimmo-game/simulation/location.py on lines 18..19

Identical blocks of code found in 2 locations. Consider refactoring.
Open

def __add__(self, direction):
return Location(self.x + direction.x, self.y + direction.y)
Severity: Minor
Found in aimmo-game-worker/simulation/location.py and 1 other location - About 45 mins to fix
aimmo-game/simulation/location.py on lines 9..10

There are no issues that match your filters.

Category
Status