Skip to content

Commit adc5ac8

Browse files
authored
Merge pull request #5 from nifadyev/feature/add-rule-template
Add rule/recommendation template
2 parents 4975114 + 036fe8a commit adc5ac8

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

EN.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
## Table of Contents
55
- [About the code](#about-the-code)
6+
- [Rule template](#rule-template)
67
- [Basic principles](#basic-principles)
78
- [Atomicity of operations](#atomicity-of-operations)
89
- [Logical blocks](#logical-blocks)
@@ -25,6 +26,26 @@
2526
- [Other](#other)
2627
- [REST API Documentation](#rest-api-documentation)
2728

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.
48+
2849

2950
## About the code
3051

RU.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33

44
## Содержание
5+
- [Шаблон правила](#шаблон-правила)
56
- [Про код](#про-код)
67
- [Основные принципы](#основные-принципы)
78
- [Атомарность операций](#атомарность-операций)
@@ -25,6 +26,25 @@
2526
- [Прочее](#прочее)
2627
- [Документация к REST API](#документация-к-rest-api)
2728

29+
## Шаблон правила
30+
31+
Опишите правило или рекомендацию, сопроводив ее необходимыми нюансами и контекстом. По возможности предоставьте примеры нарушения и соблюдения правила в блоках `Плохо` и `Хорошо`. Комментарии к фрагментам кода приветствуются.
32+
33+
Плохо ❌:
34+
35+
```python
36+
# Фрагмент кода с нарушением правила
37+
```
38+
39+
Хорошо ✅:
40+
41+
```python
42+
# Фрагмент кода с соблюдением правила
43+
```
44+
45+
**Почему?**
46+
47+
Обязательная секция с аргументами и причинами использования правила. Желательно указать ссылки на issues/статьи/stackoverflow в поддержку аргументов.
2848

2949
## Про код
3050

0 commit comments

Comments
 (0)