Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use 3 literals in the bad example of G-1050 #205

Closed
PhilippSalvisberg opened this issue Sep 25, 2023 · 0 comments
Closed

Use 3 literals in the bad example of G-1050 #205

PhilippSalvisberg opened this issue Sep 25, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@PhilippSalvisberg
Copy link
Collaborator

The guideline G-1050 suggests now that a literal should not be duplicated more than once.

To reduce the number of false positives, the number of occurrences of a literal should be less than 3.

As a result, we should change the bad example. It should use a literal at least 3 times.

@PhilippSalvisberg PhilippSalvisberg added the enhancement New feature or request label Sep 25, 2023
@PhilippSalvisberg PhilippSalvisberg added this to the v4.3 milestone Sep 25, 2023
@PhilippSalvisberg PhilippSalvisberg self-assigned this Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant