mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
## Description Hi 👋 I ran the [DeepSource](https://deepsource.io/) static analyzer on the forked copy of this repo and found some [interesting code quality issues](https://deepsource.io/gh/ankitdobhal/goreplay/issues/). This PR fixes a few of them. ## Summary of Fixes - Added .deepsource.toml to fix bug risks - Empty string test can be improved - Nested if can be replaced with else-if ## Type of change - [✔] Antipattern - [ ] New feature (non-breaking change which adds functionality) ## Checklist: - [✔] My code follows the style guidelines of this project - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation
29 lines
353 B
TOML
29 lines
353 B
TOML
version = 1
|
|
|
|
exclude_patterns = [
|
|
"vendor/**"
|
|
]
|
|
|
|
[[analyzers]]
|
|
name = "go"
|
|
enabled = true
|
|
|
|
[analyzers.meta]
|
|
import_paths = ["github.com/ankitdobhal/goreplay"]
|
|
|
|
[[analyzers]]
|
|
name = "docker"
|
|
enabled = true
|
|
|
|
[[analyzers]]
|
|
name = "ruby"
|
|
enabled = true
|
|
|
|
[[analyzers]]
|
|
name = "javascript"
|
|
enabled = true
|
|
|
|
[analyzers.meta]
|
|
environment = ["nodejs"]
|
|
|