Skip to content

Commit 747f77d

Browse files
committed
добавлен комментарий NOSONAR
1 parent e4c3c5c commit 747f77d

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

brain_games/games/brain_calc_game.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ def brain_calc():
1111

1212
answer = 0
1313
while answer < 3:
14-
n1 = randrange(1, 51)
15-
n2 = randrange(1, 51)
14+
n1 = randrange(1, 51) #NOSONAR
15+
n2 = randrange(1, 51) #NOSONAR
1616
operator = choice(['+', '-', '*'])
1717

1818
if operator == "+":

brain_games/games/brain_gcd_game.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77

88
def get_question_answer():
9-
n1 = randrange(1, 51)
10-
n2 = randrange(1, 51)
9+
n1 = randrange(1, 51) #NOSONAR
10+
n2 = randrange(1, 51) #NOSONAR
1111
question = f'{n1} {n2}'
1212

1313
a = min(n1, n2)

brain_games/games/brain_prime_game.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
def get_question_answer():
9-
n = randrange(1, 101)
9+
n = randrange(1, 101) #NOSONAR
1010
question = n
1111
if n < 2:
1212
is_prime = False

brain_games/games/brain_progression_game.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77

88
def get_question_answer():
9-
start = randrange(1, 11)
10-
step = randrange(1, 6)
9+
start = randrange(1, 11) #NOSONAR
10+
step = randrange(1, 6) #NOSONAR
1111
n = 10
1212
res = []
1313
for i in range(n):

brain_games/scripts/brain_even.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def parity_check():
1212

1313
answer = 0
1414
while answer < 3:
15-
n = randrange(1, 100)
15+
n = randrange(1, 100) #NOSONAR
1616
print(f'Question: {n}')
1717
user_answer = prompt.string('Your answer: ')
1818
correct = 'yes' if n % 2 == 0 else 'no'

0 commit comments

Comments
 (0)