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

Regex only matches in comments #726

Closed
xzoky opened this issue Jul 15, 2016 · 0 comments · Fixed by #743
Closed

Regex only matches in comments #726

xzoky opened this issue Jul 15, 2016 · 0 comments · Fixed by #743
Labels

Comments

@xzoky
Copy link

xzoky commented Jul 15, 2016

I created a custom rule to find instances of spaces inside parentheses.
For some reason, the rule only works inside comments, not in the rest of the code. I have no idea why.

Here's my custom rule:

parenthesis_spacing:
  name: "Parenthesis Spacing"
  message: "Don't put a space inside a parenthesis."
  regex: "\(\s|\s\)"

screen shot 2016-07-15 at 2 17 39 pm

@jpsim jpsim added the bug label Jul 18, 2016
masters3d added a commit to masters3d/SwiftLint that referenced this issue Aug 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants