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

Do not capture 'filename' #22

Merged
merged 1 commit into from
Apr 13, 2019
Merged

Do not capture 'filename' #22

merged 1 commit into from
Apr 13, 2019

Conversation

kaste
Copy link
Contributor

@kaste kaste commented Apr 13, 2019

phpmd resolves all paths to 'real' paths and uses such 'real' paths in the reports.

Since we cannot map such a 'real' path back to a 'user' path, we MUST not capture these filename. (We basically need a 1-1 mapping from a view filename to a reported filename.)

Fixes #21
Fixes SublimeLinter/SublimeLinter#1589

@kaste kaste requested a review from braver April 13, 2019 09:31
@kaste
Copy link
Contributor Author

kaste commented Apr 13, 2019

cc @JoyceBabu

@braver
Copy link
Member

braver commented Apr 13, 2019

I’m 👌🏻 with the idea, but let’s rename the capture group in a way that doesn’t look like a typo (or just not name the group I guess) and add a comment.

@kaste kaste force-pushed the kaste-patch-2 branch 2 times, most recently from de8ca23 to 0d29861 Compare April 13, 2019 10:06
phpmd resolves all paths to 'real' paths and uses such 'real' paths in the
reports. Since we cannot map such a 'real' path back to a 'user' path, we MUST
not capture these filename.

Fixes #21
@kaste
Copy link
Contributor Author

kaste commented Apr 13, 2019

Okay?

@braver
Copy link
Member

braver commented Apr 13, 2019

Excellent. @JoyceBabu agree?

@JoyceBabu
Copy link

The linter error in #21 is fixed, after merging this PR. Thank you.

@kaste kaste merged commit b7b2d79 into master Apr 13, 2019
@kaste kaste deleted the kaste-patch-2 branch April 13, 2019 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Path mismatch error on macOS when linter output uses realpath Intermittent error when saving
3 participants