Danny Mösch
e64e82d80d
Get rid of periods finishing rule descriptions
2023-01-10 22:29:13 +01:00
Julio Carrettoni
3745704c03
Add rule for single space after period on comments ( #4624 )
2022-12-15 23:27:33 +01:00
JP Simard
4bd7da32ea
Reduce visibility of rules to be `internal` ( #4533 )
...
There's no reason to expose these publicly and this will make it nicer
to move to a new module outside of the core SwiftLint functionality.
2022-11-09 11:01:26 -05:00
JP Simard
f1f6a3c4a0
Add `ByteSourceRange.toSourceKittenByteRange()` helper ( #4500 )
...
This will be useful for other rules too.
2022-11-01 14:13:29 -04:00
JP Simard
d551cb8c16
Update SwiftSyntax ( #4480 )
...
Moves syntax classifications to a new IDEUtils module.
2022-10-28 09:23:06 -04:00
JP Simard
cb79584c7d
Migrate `comment_spacing` to use SwiftSyntax classifications ( #4460 )
2022-10-23 17:39:38 -04:00
Danny Mösch
449190d324
Verify examples in rules by default and enforce explicit exclusion ( #4065 )
...
A rule must conform to ManuallyTestedExamplesRule to skip generation of a test for its examples.
2022-08-09 22:32:09 +02:00
Ikko Ashimine
3d7775de11
Fix typo in CommentSpacingRule.swift ( #3795 )
...
charcter -> character
2022-01-21 07:47:14 -08:00
Thomas Goyne
8f216b8398
Support Swift Playground control comments in the comment spacing rule
...
Swift Playgrounds use `//:` to mark prose sections and `//:#` for embedded
content like images and localized prose, so those shouldn't violate the
space-after-comment rule.
2021-02-23 17:33:20 -05:00
JP Simard
bf2790df54
Enable CommentSpacingRule by default
...
And fix violations in SwiftLint
2020-11-10 12:50:39 -05:00
JP Simard
869fe868b3
Apply minor refactorings
...
1. Add some comments
2. Name variables when used in multiline closures
3. Change violation range length from 1 to 0, which simplifies the
substitution
4. Tweak indentation
2020-11-10 12:42:40 -05:00
Noah Gilmore
5108233ac5
Further PR comments
2020-11-09 21:54:14 -08:00
Noah Gilmore
6bd38e8607
Update Source/SwiftLintFramework/Rules/Lint/CommentSpacingRule.swift
...
Co-authored-by: JP Simard <jp@jpsim.com>
2020-11-09 21:54:14 -08:00
Noah Gilmore
442eac2556
Update Source/SwiftLintFramework/Rules/Lint/CommentSpacingRule.swift
...
Co-authored-by: JP Simard <jp@jpsim.com>
2020-11-09 21:54:14 -08:00
Noah Gilmore
1a104e4dc4
Add comments
2020-11-09 21:54:14 -08:00
Noah Gilmore
dd5c0d3599
Add CommentSpacingRule ( #3233 )
2020-11-09 21:54:14 -08:00