Danny Mösch
67eb330f1c
Add key to severity configuration as a hint for the correct YAML syntax
2023-01-08 15:05:43 +01:00
bcfc2c4b6c
Update SwiftSyntax ( #4673 )
...
* Exclude `Documentation.docc` when building SwiftSyntax
* Remove references to `.stringInterpolationAnchor`
Co-authored-by: JP Simard <jp@jpsim.com >
2023-01-06 11:12:17 -05:00
Ethan Wong and GitHub
68dc0f58d2
List Analyzer rules in an independent section in the rule directory ( #4664 )
2023-01-03 07:18:25 +01:00
Danny Mösch and GitHub
d6ff2a7f37
Rewrite explicit_type_interface rule with SwiftSyntax fixing a false-positive ( #4638 )
2023-01-01 23:23:50 +01:00
Danny Mösch and GitHub
64d9619a8a
Report violations in all <scope>_length rules when error < warning threshold ( #4647 )
2023-01-01 23:15:36 +01:00
Danny Mösch and GitHub
5ff40867b3
Apply consistent capitalization to rule names ( #3938 )
2022-12-26 09:32:36 +01:00
Martin Redington and GitHub
58611e6718
Ignore compiler directives in opening_brace rule ( #4658 )
2022-12-25 18:46:16 +01:00
Danny Mösch and GitHub
c740da48d5
Deprecate inert_defer rule in favor of the Swift compiler warning ( #4618 )
2022-12-23 04:07:41 -05:00
Jimmy Arts and GitHub
eda0d92f44
Make forceExclude work with directly specified files ( #4609 )
2022-12-22 21:15:08 +01:00
Benedek Kozma and GitHub
d76daf5f62
Deprecate unused_capture_list rule in favor of the Swift compiler warning ( #4656 )
2022-12-22 10:33:44 -05:00
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