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

Fixed Readme custom rule included/excluded regexp #1729

Merged
merged 1 commit into from
Jul 31, 2017
Merged

Conversation

dm-z
Copy link

@dm-z dm-z commented Jul 31, 2017

Currently, it does not check for dot presence, but for any symbol, so for example, if a filename is MySuperFileswift it would also work for this regexp. Same for excluded.

@@ -315,8 +315,8 @@ following syntax:
```yaml
custom_rules:
pirates_beat_ninjas: # rule identifier
included: ".*.swift" # regex that defines paths to include during linting. optional.
excluded: ".*Test.swift" # regex that defines paths to exclude during linting. optional
included: ".*\\.swift" # regex that defines paths to include during linting. optional.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't it be just one backslash?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One backslash would lead to a crash of yaml parser, so it has to be escaped.

@codecov-io
Copy link

Codecov Report

Merging #1729 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1729   +/-   ##
=======================================
  Coverage   87.43%   87.43%           
=======================================
  Files         209      209           
  Lines       10335    10335           
=======================================
  Hits         9036     9036           
  Misses       1299     1299

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ef67adc...b990448. Read the comment docs.

Copy link
Collaborator

@jpsim jpsim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@jpsim jpsim merged commit f0f746f into realm:master Jul 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants