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

[Analyze] Support compile commands with relative paths #3501

Merged
merged 2 commits into from
Jan 22, 2021

Conversation

jpsim
Copy link
Collaborator

@jpsim jpsim commented Jan 22, 2021

No description provided.

And made small formatting edits to other recent entries.
@realm realm deleted a comment from SwiftLintBot Jan 22, 2021
@jpsim jpsim marked this pull request as ready for review January 22, 2021 17:07
@keith
Copy link
Collaborator

keith commented Jan 22, 2021

Maybe too aggressive but we could make this fail if it didn't find either

@jpsim
Copy link
Collaborator Author

jpsim commented Jan 22, 2021

Maybe too aggressive but we could make this fail if it didn't find either

Yeah that's too aggressive IMO. It's convenient to have files that you want to lint but don't have compilation commands when analyzing. For example, sample code, unit tests or sources that don't compile easily with the target you're analyzing.

Logging a warning might be appropriate though, but again depending on the configuration could be overly noisy.

@SwiftLintBot
Copy link

1 Warning
⚠️ This PR introduced a violation in Sourcery: /SourceryTests/Stub/Performance-Code/Kiosk/App/Networking/NetworkLogger.swift:13:5: warning: Inclusive Language Violation: Declaration init(whitelist:blacklist:) contains the term "blacklist" which is not considered inclusive. (inclusive_language)
13 Messages
📖 Linting Aerial with this PR took 1.99s vs 1.98s on master (0% slower)
📖 Linting Alamofire with this PR took 2.8s vs 2.85s on master (1% faster)
📖 Linting Firefox with this PR took 9.47s vs 9.42s on master (0% slower)
📖 Linting Kickstarter with this PR took 15.33s vs 15.18s on master (0% slower)
📖 Linting Moya with this PR took 1.42s vs 1.5s on master (5% faster)
📖 Linting Nimble with this PR took 1.29s vs 1.27s on master (1% slower)
📖 Linting Quick with this PR took 0.62s vs 0.59s on master (5% slower)
📖 Linting Realm with this PR took 4.03s vs 3.99s on master (1% slower)
📖 Linting SourceKitten with this PR took 1.04s vs 1.02s on master (1% slower)
📖 Linting Sourcery with this PR took 7.6s vs 7.67s on master (0% faster)
📖 Linting Swift with this PR took 11.17s vs 11.05s on master (1% slower)
📖 Linting WordPress with this PR took 17.91s vs 17.75s on master (0% slower)
📖 This PR fixed a violation in Sourcery: /SourceryTests/Stub/Performance-Code/Kiosk/App/Networking/NetworkLogger.swift:13:5: warning: Inclusive Language Violation: Declaration init(whitelist:blacklist:) contains the term "whitelist" which is not considered inclusive. (inclusive_language)

Generated by 🚫 Danger

@jpsim jpsim merged commit 6de5771 into master Jan 22, 2021
@jpsim jpsim deleted the analyze-support-compile-commands-with-relative-paths branch January 22, 2021 17:44
DwayneCoussement pushed a commit to DwayneCoussement/SwiftLint that referenced this pull request Jan 27, 2021
* [Analyze] Support compile commands with relative paths

* Add changelog entry

And made small formatting edits to other recent entries.
DwayneCoussement added a commit to DwayneCoussement/SwiftLint that referenced this pull request Jan 27, 2021
Separate custom rules merging & filtering to avoid misleading warnings

Add changelog entry

Fix custom_rules merging when a configuration is based on only_rules

Fix if statement formatting

Fix changelog

[realm#3477] Fix bug that prevented the reconfiguration of a custom rule in a child config

Add newline at end of yml test file

[Analyze] Support compile commands with relative paths (realm#3501)

* [Analyze] Support compile commands with relative paths

* Add changelog entry

And made small formatting edits to other recent entries.

Update rule: uiimage_require_bundle
DwayneCoussement pushed a commit to DwayneCoussement/SwiftLint that referenced this pull request Feb 1, 2021
commit bbf1ad4
Author: JP Simard <jp@jpsim.com>
Date:   Fri Jan 29 13:59:28 2021 -0500

    [ExplicitSelfRule] Fix violation location and misplaced corrections (realm#3507)

commit 59eb887
Author: Otavio Cordeiro <otaviocc@users.noreply.github.com>
Date:   Fri Jan 29 18:30:57 2021 +0100

    Add opt-in rule discouraged_assert (realm#3506)

    Co-authored-by: Keith Smiley <keithbsmiley@gmail.com>

commit 6a38b15
Author: JP Simard <jp@jpsim.com>
Date:   Fri Jan 22 13:31:05 2021 -0500

    Revert "Merge pull request realm#3473 from realm/feature/3472-fix-custom-rules-merging" (realm#3503)

    This reverts commit 537e53f, reversing
    changes made to ba49f7d.

commit 6de5771
Author: JP Simard <jp@jpsim.com>
Date:   Fri Jan 22 12:44:30 2021 -0500

    [Analyze] Support compile commands with relative paths (realm#3501)

    * [Analyze] Support compile commands with relative paths

    * Add changelog entry

    And made small formatting edits to other recent entries.

commit 537e53f
Merge: ba49f7d 22d25da
Author: Frederick Pietschmann <19194800+fredpi@users.noreply.github.com>
Date:   Fri Jan 15 11:53:17 2021 +0100

    Merge pull request realm#3473 from realm/feature/3472-fix-custom-rules-merging

    Multiple Fixes for custom rules

commit 22d25da
Author: Frederick Pietschmann <19194800+fredpi@users.noreply.github.com>
Date:   Fri Jan 15 00:14:50 2021 +0100

    Add newline at end of yml test file

commit 2d17045
Author: Frederick Pietschmann <19194800+fredpi@users.noreply.github.com>
Date:   Tue Dec 22 19:41:40 2020 +0100

    [realm#3477] Fix bug that prevented the reconfiguration of a custom rule in a child config

commit a39e72e
Author: Frederick Pietschmann <19194800+fredpi@users.noreply.github.com>
Date:   Mon Dec 21 12:40:53 2020 +0100

    Fix changelog

commit 56e4f17
Author: Frederick Pietschmann <19194800+fredpi@users.noreply.github.com>
Date:   Sun Dec 20 00:52:17 2020 +0100

    Fix if statement formatting

commit 5bffc77
Author: Frederick Pietschmann <19194800+fredpi@users.noreply.github.com>
Date:   Sun Dec 20 00:44:49 2020 +0100

    Fix custom_rules merging when a configuration is based on only_rules

commit e3e169b
Author: Frederick Pietschmann <19194800+fredpi@users.noreply.github.com>
Date:   Sat Dec 19 00:11:13 2020 +0100

    Add changelog entry

commit 256288a
Author: Frederick Pietschmann <19194800+fredpi@users.noreply.github.com>
Date:   Sat Dec 19 00:03:13 2020 +0100

    Separate custom rules merging & filtering to avoid misleading warnings
DwayneCoussement added a commit to DwayneCoussement/SwiftLint that referenced this pull request Feb 1, 2021
Remove trailing comma

Separate custom rules merging & filtering to avoid misleading warnings

Add changelog entry

Fix custom_rules merging when a configuration is based on only_rules

Fix if statement formatting

Fix changelog

[realm#3477] Fix bug that prevented the reconfiguration of a custom rule in a child config

Add newline at end of yml test file

[Analyze] Support compile commands with relative paths (realm#3501)

* [Analyze] Support compile commands with relative paths

* Add changelog entry

And made small formatting edits to other recent entries.

Update rule: uiimage_require_bundle
DwayneCoussement added a commit to DwayneCoussement/SwiftLint that referenced this pull request Feb 2, 2021
Remove trailing comma

Separate custom rules merging & filtering to avoid misleading warnings

Add changelog entry

Fix custom_rules merging when a configuration is based on only_rules

Fix if statement formatting

Fix changelog

[realm#3477] Fix bug that prevented the reconfiguration of a custom rule in a child config

Add newline at end of yml test file

[Analyze] Support compile commands with relative paths (realm#3501)

* [Analyze] Support compile commands with relative paths

* Add changelog entry

And made small formatting edits to other recent entries.

Update rule: uiimage_require_bundle
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.

3 participants