Marcelo Fabri and GitHub
7bd8362dae
Fix false positive on private_subject ( #4646 )
...
Fixes #4643
2022-12-19 13:31:34 -03:00
David Steinacher and GitHub
540003e2a1
Add support for new Quick APIs aroundEach and justBeforeEach ( #4627 )
2022-12-15 23:29:02 +01:00
Julio Carrettoni and GitHub
3745704c03
Add rule for single space after period on comments ( #4624 )
2022-12-15 23:27:33 +01:00
25c3fb161d
Update SwiftSyntax ( #4639 )
...
* `ObjcKeyPathExprSyntax` -> `MacroExpansionExprSyntax`
* Fix `#selector()` and add a regression test
Co-authored-by: JP Simard <jp@jpsim.com >
2022-12-14 10:52:47 -05:00
JP Simard
a876e860ee
release 0.50.3
2022-12-09 14:12:02 -05:00
JP Simard
ff06e0ed00
release 0.50.2
2022-12-09 13:49:24 -05:00
JP Simard and GitHub
73a64d674c
Fix rewrite issue with comma rule ( #4635 )
2022-12-09 12:56:50 -05:00
Danny Mösch and GitHub
609418f702
Skip defer statements in #if block if it is not itself the last statement ( #4617 )
2022-12-06 02:22:03 -05:00
Danny Mösch and GitHub
4adabd8e4b
Print a warning for Analyzer rules misplaced in the configuration ( #4620 )
2022-12-05 18:03:54 -05:00
Danny Mösch and GitHub
93d0d8fa7f
Fix configuration parsing error in unused_declaration rule ( #4619 )
2022-12-05 23:11:19 +01:00
JP Simard and GitHub
95d56e4130
Use raw in SwiftSyntaxBuilder string interpolation ( #4623 )
...
Fixing build warnings to account for
https://github.com/apple/swift-syntax/pull/1090 .
2022-12-05 11:26:04 -05:00
Marcelo Fabri and GitHub
60128ab196
Don’t trigger shorthand_operator inside operator declaration ( #4613 )
...
Fixes #4611
2022-12-02 02:00:44 -05:00
Martin Redington and GitHub
7a8b2d1dab
Add test_parent_class option to more test rules ( #4262 )
2022-12-01 18:56:13 +01:00
92304cdd98
Fix building tests in Xcode ( #4607 )
...
Co-authored-by: JP Simard <jp@jpsim.com >
2022-11-30 10:33:33 -05:00
Steffen Matthischke and GitHub
97ba82d740
Fix empty_enum_arguments false positive when called expression is an identifier ( #4600 )
2022-11-28 17:20:34 -05:00
JP Simard
28a4aa2195
release 0.50.1
2022-11-25 11:38:16 -05:00
JP Simard and GitHub
28e2a1b022
Fix configuration description for some vertical whitespace rules ( #4594 )
...
Before: `N/A`
After: `warning, only_enforce_before_trivial_lines: false`
2022-11-25 11:18:41 -05:00
JP Simard and GitHub
c1c5e5f722
Add test cases for https://github.com/realm/SwiftLint/issues/4565 ( #4593 )
2022-11-25 11:12:48 -05:00
JP Simard and GitHub
60ad710b7f
Fix type_name regression when using backticks ( #4592 )
...
Fixes https://github.com/realm/SwiftLint/issues/4571
2022-11-25 10:57:05 -05:00
JP Simard and GitHub
12c8bb369e
Fix false positives in unused_closure_parameter when using backticks ( #4590 )
...
Fixes https://github.com/realm/SwiftLint/issues/4588
2022-11-25 07:29:31 -05:00
JP Simard and GitHub
4ccf9eebb4
Fix line count calculation for multiline string literals ( #4587 )
...
Fixes https://github.com/realm/SwiftLint/issues/4585
Update body length rule thresholds for SwiftLint
2022-11-24 16:40:51 +00:00
JP Simard and GitHub
f6de471b5f
Fix false positives in closure_spacing ( #4584 )
...
Fixes https://github.com/realm/SwiftLint/issues/4582
2022-11-24 10:30:40 -05:00
JP Simard and GitHub
ac21584224
Fix minimum_fraction_length handling in number_separator ( #4583 )
...
Fixes https://github.com/realm/SwiftLint/issues/4576
Before it would apply the `minimum_length` parameter to the
`minimal_fractional_length` setting if the latter wasn't set.
2022-11-24 14:19:20 +00:00
Steffen Matthischke and GitHub
907c80f84c
Fix lower_acl_than_parent false positives when the nominal parent is an extension ( #4575 )
2022-11-24 08:08:23 -05:00
JP Simard and GitHub
fd502b4526
Add new local_doc_comment rule ( #4581 )
...
Moving the validation of doc comments in local scopes out of
`orphaned_doc_comment` and into a new opt-in `local_doc_comment` rule.
Addresses https://github.com/realm/SwiftLint/issues/4573 .
2022-11-23 17:50:18 -05:00
JP Simard
cdd891a4a2
release 0.50.0
2022-11-18 14:43:44 -05:00
JP Simard and GitHub
ba8899714d
Reduce visibility of custom rules ( #4553 )
2022-11-16 16:14:50 -05:00
JP Simard and GitHub
4f652a68e7
Move XCTestHelpers to TestCaseAccessibilityRule.swift ( #4552 )
...
it's only used in that file
2022-11-16 14:31:00 -05:00
JP Simard and GitHub
953ee620f7
Refactor ExecutableInfo ( #4551 )
...
To improve how it renders in jazzy-generated docs.
2022-11-16 14:07:39 -05:00
JP Simard and GitHub
18f9a0e3a6
Write some docs for internal APIs ( #4550 )
...
These should be useful when writing rules, but also may become public
API in the future.
2022-11-16 13:58:55 -05:00
JP Simard and GitHub
04d1184904
Remove structure cache ( #4541 )
2022-11-10 14:53:16 -05:00
JP Simard and GitHub
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
Danny Mösch and GitHub
3864ecc12f
Fix indentation in error message ( #4528 )
2022-11-07 14:47:14 -05:00
Marcelo Fabri and GitHub
eaf7db1250
Rewrite object_literal rule with SwiftSyntax ( #4525 )
2022-11-06 20:42:00 -08:00
Marcelo Fabri and GitHub
6c7e2107ae
Rewrite nslocalizedstring_key with SwiftSyntax ( #4523 )
2022-11-06 19:12:53 -08:00
Danny Mösch and GitHub
1edef5ebdc
Trigger prefer_self_in_static_references rule on constructor calls ( #4519 )
2022-11-06 14:55:28 +01:00
Danny Mösch and GitHub
7e8a3ae2ac
Introduce onlyElement property on Collection ( #4518 )
2022-11-06 07:37:44 -05:00
Marcelo Fabri and GitHub
45ac3dcdff
Rewrite required_enum_case with SwiftSyntax ( #4521 )
2022-11-06 01:26:11 -08:00
Marcelo Fabri and GitHub
1c675bc993
Rewrite balanced_xctest_lifecycle with SwiftSyntax ( #4520 )
2022-11-06 00:05:32 -07:00
Marcelo Fabri and GitHub
fc0c0c7f5b
Rewrite pattern_matching_keywords with SwiftSyntax ( #4490 )
2022-11-05 23:16:59 -07:00
Marcelo Fabri and GitHub
22522254df
Validate shorthand option binding in self_binding rule ( #4514 )
...
* Validate shorthand option binding in `self_binding` rule
* Fix CHANGELOG
2022-11-05 21:32:09 -07:00
Danny Mösch and GitHub
9a706ba371
Trigger prefer_self_in_static_references rule in computed property blocks ( #4517 )
2022-11-06 00:19:48 +01:00
Danny Mösch and GitHub
d4ea19e434
Trigger prefer_self_in_static_references rule on key paths ( #4516 )
2022-11-05 13:39:27 +01:00
Danny Mösch and GitHub
eb3d502ad7
Rephrase rule description letting it no longer refer to classes only ( #4515 )
2022-11-05 07:13:24 -04:00
Danny Mösch and GitHub
65874dc40f
Rewrite prefer_self_in_static_references with SwiftSyntax ( #4504 )
2022-11-05 11:46:33 +01:00
Craig Siemens and GitHub
ec5124d939
Rewrite multiline_arguments_brackets with SwiftSyntax ( #4512 )
...
Fix false-positives when a function call has a single line closure.
2022-11-03 21:57:27 -04:00
John Szumski and GitHub
6fcdd8077f
Adds NSError to the list of types in discouraged_direct_init. ( #4508 )
2022-11-03 13:52:30 -04:00
Danny Mösch and GitHub
32152646f3
Use Self in constructor calls ( #4505 )
2022-11-02 22:50:22 +00:00
JP Simard and GitHub
e97119efec
Migrate orphaned_doc_comment to use SwiftSyntax classifications ( #4461 )
2022-11-02 15:55:47 +00:00
JP Simard and GitHub
f1f6a3c4a0
Add ByteSourceRange.toSourceKittenByteRange() helper ( #4500 )
...
This will be useful for other rules too.
2022-11-01 14:13:29 -04:00