-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Started to add rationales #5681
Open
mildm8nnered
wants to merge
32
commits into
realm:main
Choose a base branch
from
mildm8nnered:mildm8nnered-add-rationale
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+224
−17
Open
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
d4b68c7
Started to add rationales
mildm8nnered 25246e2
Missing separator
mildm8nnered d6cd21c
Tweaks
mildm8nnered 905b951
Tweaked line endings
mildm8nnered c29e78d
Wording
mildm8nnered 1dbb61a
Attributes
mildm8nnered 6c3467a
Added rationale
mildm8nnered 3fe0244
Added rationale to Blanket Disable Command
mildm8nnered 6ce935e
Added more rationale's
mildm8nnered c6453da
Fixed typos
mildm8nnered 58e719e
Documentation update
mildm8nnered ac18879
Documentation tweak
mildm8nnered 38a460c
Better formatting
mildm8nnered e7a7f67
Better text
mildm8nnered 5c50420
Fixed line lengths
mildm8nnered a5dbcb0
Removed indentation
mildm8nnered adb4ea4
indent markdown multiline code by 4 spaces for the console
mildm8nnered 75086e0
Added more detail
mildm8nnered 20c7ac8
Apply suggestions from code review
mildm8nnered 1b3ab19
CR comments
mildm8nnered ec3b82a
line length fix
mildm8nnered 21ca69c
Fixed some indentation and formatting
mildm8nnered e2a3fd9
Warning fix
mildm8nnered 5d4d506
Mention indentation in the comment.
mildm8nnered 3188f55
Don't indent code at source
mildm8nnered 6431ad4
superfluous else
mildm8nnered 6fee4b5
Improvements
mildm8nnered dff3284
Fixed compilation
mildm8nnered a39adc4
Fixed indentation
mildm8nnered cc06f01
Removed mention of configuration options
mildm8nnered 2b884a6
Added entry
mildm8nnered 751b235
CR comments
mildm8nnered File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,7 +148,13 @@ | |
[SimplyDanny](https://github.com/SimplyDanny) | ||
[#5018](https://github.com/realm/SwiftLint/issues/5018) | ||
|
||
### Bug Fixes | ||
Check failure on line 151 in CHANGELOG.md GitHub Actions / Lint MarkdownHeadings should be surrounded by blank lines
|
||
* Add a new rationale property to rule descriptions, providing a more expansive | ||
Check failure on line 152 in CHANGELOG.md GitHub Actions / Lint MarkdownLists should be surrounded by blank lines
|
||
description of the motivation behind each rule. | ||
[Martin Redington](https://github.com/mildm8nnered) | ||
[#5681](https://github.com/realm/SwiftLint/issues/5681) | ||
|
||
#### Bug Fixes | ||
|
||
* Ignore TipKit's `#Rule` macro in `empty_count` rule. | ||
[Ueeek](https://github.com/Ueeek) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 7 additions & 1 deletion
8
Source/SwiftLintBuiltInRules/Rules/Metrics/ClosureBodyLengthRule.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The memory model is important as well. However, this rule is about having a
tearDown
for everysetUp
method implemented for the sake of cleaning up/resetting resources that could otherwise cause effects on other tests (e.g. changed environment variables). Enforcing atearDown
at least makes you think about steps to perform after a test has run in order to leave everything in a consistent state and treat each test method as isolated. Basically, what's mentioned in the last sentence.