-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/in memory db references to variables (#1871)
- Loading branch information
Showing
37 changed files
with
822 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Неиспользуемая локальная переменная (UnusedLocalVariable) | ||
|
||
| Тип | Поддерживаются<br>языки | Важность | Включена<br>по умолчанию | Время на<br>исправление (мин) | Теги | | ||
|:-------------:|:-----------------------------:|:--------:|:------------------------------:|:-----------------------------------:|:--------------------------------------:| | ||
| `Дефект кода` | `BSL`<br>`OS` | `Важный` | `Да` | `1` | `brainoverload`<br>`badpractice` | | ||
|
||
<!-- Блоки выше заполняются автоматически, не трогать --> | ||
## Описание диагностики | ||
Программные модули не должны иметь неиспользуемых переменных. | ||
|
||
Если локальная переменная объявлена, но не используется, это мертвый код, который следует удалить. | ||
Это улучшит удобство обслуживания, поскольку разработчики не будут удивляться, для чего используется переменная. | ||
|
||
## Сниппеты | ||
|
||
<!-- Блоки ниже заполняются автоматически, не трогать --> | ||
### Экранирование кода | ||
|
||
```bsl | ||
// BSLLS:UnusedLocalVariable-off | ||
// BSLLS:UnusedLocalVariable-on | ||
``` | ||
|
||
### Параметр конфигурационного файла | ||
|
||
```json | ||
"UnusedLocalVariable": false | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Unused local variable (UnusedLocalVariable) | ||
|
||
| Type | Scope | Severity | Activated<br>by default | Minutes<br>to fix | Tags | | ||
|:------------:|:-------------------:|:--------:|:-----------------------------:|:-----------------------:|:--------------------------------------:| | ||
| `Code smell` | `BSL`<br>`OS` | `Major` | `Yes` | `1` | `brainoverload`<br>`badpractice` | | ||
|
||
<!-- Блоки выше заполняются автоматически, не трогать --> | ||
## Description | ||
Unused local variables should be removed | ||
|
||
If a local variable is declared but not used, it is dead code and should be removed. | ||
Doing so will improve maintainability because developers will not wonder what the variable is used for. | ||
|
||
## Snippets | ||
|
||
<!-- Блоки ниже заполняются автоматически, не трогать --> | ||
### Diagnostic ignorance in code | ||
|
||
```bsl | ||
// BSLLS:UnusedLocalVariable-off | ||
// BSLLS:UnusedLocalVariable-on | ||
``` | ||
|
||
### Parameter for config | ||
|
||
```json | ||
"UnusedLocalVariable": false | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
c2b2ba5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'BSL LS perfomance measurement (SSL 3.1)'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
1.10
..github/scripts/benchmark.py::test_analyze_ssl31
40.13981000582377
sec (stddev: 0.8490682125805986
)34.97286677360535
sec (stddev: 0.7048670471193371
)1.15
This comment was automatically generated by workflow using github-action-benchmark.
CC: @otymko