Logo
Explore Help
Register Sign In
ishangsf/rspec
2
0
Fork 0
You've already forked rspec
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
rspec/rules/S3923/description.adoc

8 lines
263 B
Plaintext
Raw Normal View History

Modify rule S3923: LaYC identical branches Co-authored-by: Amélie Renard <44666826+amelie-renard-sonarsource@users.noreply.github.com>
2023-06-08 17:06:21 +02:00
Having all branches of a `switch` or `if` chain with the same implementation indicates a problem.
In the following code:
include::{example}[]
Modify rule: Update rule descriptions (#3655) Changes suggested by the Docs Squad: * Modify rule s2178: Update rule description - formalize word selection to clarify the description * Modify rule S2551: capitalize `String` - follow the capitalization of a proper noun, in accordance with the referenced link * Modify rule S3923: improve word choice * Modify rule S2551: capitalize String - `String` is used as a VB `object` in this example. - A new PR will be issued to make a more substantial improvement
2024-02-23 13:55:16 +01:00
Either there is a copy-paste error that needs fixing or an unnecessary `switch` or `if` chain that should be removed.
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.5 Page: 1141ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API