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

Increase use of constants for common string comparison cases #186

Closed
atc0005 opened this issue Dec 12, 2019 · 0 comments · Fixed by #188
Closed

Increase use of constants for common string comparison cases #186

atc0005 opened this issue Dec 12, 2019 · 0 comments · Fixed by #188
Assignees
Labels
enhancement New feature or request linting
Milestone

Comments

@atc0005
Copy link
Owner

atc0005 commented Dec 12, 2019

This is a continuation of the work from #176.

Non-exhaustive candidates for replacing bare strings with constants:

expectedLogLevelAfterFileMerge := "notice"

{"ELBOW_LOG_FORMAT", "text"},

"--log-level", "panic",
"--log-format", "json",
"--console-output", "stderr",

@atc0005 atc0005 added enhancement New feature or request linting labels Dec 12, 2019
@atc0005 atc0005 added this to the v0.7.0 milestone Dec 12, 2019
@atc0005 atc0005 self-assigned this Dec 12, 2019
atc0005 added a commit that referenced this issue Dec 13, 2019
Replace common string values for Set*, Validate and other methods
and functions which are likely to result in (more) subtle bugs
in the future. I found at least one case where the emergency
option for the command-line flag --log-level was likely not
used as intended.

refs #186
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request linting
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant