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

Use working directory as root path instead of trying to calculate it #3384

Merged
merged 2 commits into from
Nov 8, 2020

Conversation

sethfri
Copy link
Contributor

@sethfri sethfri commented Oct 19, 2020

We currently try to derive the root path by using the path passed in. However, this doesn't allow us to actually get the root, just the containing directory of the path passed in. We also don't currently have a heuristic to use for deriving the root path for multiple paths passed in.

The fix (which fixes #3383) is to remove our root path calculation and just use the current working directory as the root instead.

@SwiftLintBot
Copy link

SwiftLintBot commented Oct 19, 2020

12 Messages
📖 Linting Aerial with this PR took 1.99s vs 1.94s on master (2% slower)
📖 Linting Alamofire with this PR took 2.83s vs 2.85s on master (0% faster)
📖 Linting Firefox with this PR took 9.55s vs 9.47s on master (0% slower)
📖 Linting Kickstarter with this PR took 15.94s vs 15.68s on master (1% slower)
📖 Linting Moya with this PR took 1.46s vs 1.44s on master (1% slower)
📖 Linting Nimble with this PR took 1.36s vs 1.4s on master (2% faster)
📖 Linting Quick with this PR took 0.64s vs 0.64s on master (0% slower)
📖 Linting Realm with this PR took 4.5s vs 4.5s on master (0% slower)
📖 Linting SourceKitten with this PR took 1.07s vs 1.05s on master (1% slower)
📖 Linting Sourcery with this PR took 7.19s vs 7.26s on master (0% faster)
📖 Linting Swift with this PR took 11.22s vs 11.25s on master (0% faster)
📖 Linting WordPress with this PR took 17.74s vs 17.66s on master (0% slower)

Generated by 🚫 Danger

@codecov-io
Copy link

codecov-io commented Oct 19, 2020

Codecov Report

Merging #3384 into master will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3384      +/-   ##
==========================================
- Coverage   90.51%   90.51%   -0.01%     
==========================================
  Files         420      420              
  Lines       20555    20554       -1     
==========================================
- Hits        18605    18604       -1     
  Misses       1950     1950              
Impacted Files Coverage Δ
...iftlint/Extensions/Configuration+CommandLine.swift 0.00% <0.00%> (ø)
...LintFramework/Extensions/SwiftLintFile+Regex.swift 96.74% <0.00%> (-0.47%) ⬇️

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 9afc3bb...ebaee73. Read the comment docs.

@sethfri sethfri marked this pull request as ready for review October 19, 2020 00:56
@sethfri
Copy link
Contributor Author

sethfri commented Oct 19, 2020

@jpsim This one's ready for your input!

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 for the PR! Will merge when CI is green.

@jpsim jpsim merged commit 6d77deb into realm:master Nov 8, 2020
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.

Bug when running SwiftLint on a non-root directory
4 participants