Skip to content
Snippets Groups Projects
Unverified Commit f32b2e05 authored by Markus Reiter's avatar Markus Reiter Committed by GitHub
Browse files

Switch `unless` to `if`.

parent 6994556d
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ module RuboCop
problem "Description shouldn't start with the #{type} name." if regex_match_group(desc, /^#{name_regex}\b/i)
if type == :cask && match = regex_match_group(desc, /\b(macOS|Mac( ?OS( ?X)?)?|OS ?X)\b/i)
problem "Description shouldn't contain the platform." unless match[1] == "MAC"
problem "Description shouldn't contain the platform." if match[1] != "MAC"
end
# Check if a full stop is used at the end of a desc (apart from in the case of "etc.").
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment