You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: EN.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
4
4
## Table of Contents
5
5
-[About the code](#about-the-code)
6
+
-[Rule template](#rule-template)
6
7
-[Basic principles](#basic-principles)
7
8
-[Atomicity of operations](#atomicity-of-operations)
8
9
-[Logical blocks](#logical-blocks)
@@ -25,6 +26,26 @@
25
26
-[Other](#other)
26
27
-[REST API Documentation](#rest-api-documentation)
27
28
29
+
## Rule template
30
+
31
+
Describe the rule with necessary details and context. Provide `bad`, `good` with examples if possible. Helpful comments to snippets are highly appreciated.
32
+
33
+
Bad ❌:
34
+
35
+
```python
36
+
# snippet with bad example
37
+
```
38
+
39
+
Good ✅:
40
+
41
+
```python
42
+
# snippet with good example
43
+
```
44
+
45
+
**Why?**
46
+
47
+
Section is required and should contain reasons and arguments. It is recommended to provide links issues/resources/stackoveflow for specified reasons and arguments.
Copy file name to clipboardExpand all lines: RU.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
3
3
4
4
## Содержание
5
+
-[Шаблон правила](#шаблон-правила)
5
6
-[Про код](#про-код)
6
7
-[Основные принципы](#основные-принципы)
7
8
-[Атомарность операций](#атомарность-операций)
@@ -25,6 +26,25 @@
25
26
-[Прочее](#прочее)
26
27
-[Документация к REST API](#документация-к-rest-api)
27
28
29
+
## Шаблон правила
30
+
31
+
Опишите правило или рекомендацию, сопроводив ее необходимыми нюансами и контекстом. По возможности предоставьте примеры нарушения и соблюдения правила в блоках `Плохо` и `Хорошо`. Комментарии к фрагментам кода приветствуются.
32
+
33
+
Плохо ❌:
34
+
35
+
```python
36
+
# Фрагмент кода с нарушением правила
37
+
```
38
+
39
+
Хорошо ✅:
40
+
41
+
```python
42
+
# Фрагмент кода с соблюдением правила
43
+
```
44
+
45
+
**Почему?**
46
+
47
+
Обязательная секция с аргументами и причинами использования правила. Желательно указать ссылки на issues/статьи/stackoverflow в поддержку аргументов.
0 commit comments