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

Pull in upstream #5

Closed
wants to merge 266 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
266 commits
Select commit Hold shift + click to select a range
5075cc0
Fix warnings about configured rules that are not enabled, when they a…
mildm8nnered Mar 25, 2024
299042a
Allow to configure only severity in a short form for every rule with …
SimplyDanny Mar 25, 2024
1c0d28f
Compare rule IDs and configurations with reference (#5510)
SimplyDanny Mar 26, 2024
758c22e
Prohibit configuration key inference (#5513)
SimplyDanny Mar 27, 2024
8fdf669
Add `all` analyzer pseudo-rule (#5519)
mildm8nnered Apr 2, 2024
dfb0982
Enable `superfluous_disable_command` rule for analyzer rules (#5522)
mildm8nnered Apr 3, 2024
dd8789b
Update `blanket_disable_command` rule reason and description (#5518)
mildm8nnered Apr 4, 2024
745aec5
Adjust case of severity in Code Climate reporter (#5523)
waitbutY Apr 7, 2024
2d4f0bc
Extend `unused_enumerated` rule to chained calls with closures (#5498)
mildm8nnered Apr 13, 2024
5315c3d
Add SARIF reporter (#5516)
waitbutY Apr 13, 2024
b3dd890
Rewrite `redundant_type_annotation` with SwiftSyntax (#5389)
Apr 21, 2024
e643f21
Respect array types in `redundant_type_annotation` rule (#5536)
SimplyDanny Apr 21, 2024
3276266
Respect nested types in `redundant_type_annotation` rule (#5537)
SimplyDanny Apr 21, 2024
1b7fbc4
Make postprocessors non-throwing (#5539)
SimplyDanny Apr 23, 2024
04678a1
Fix plugin name (#5542)
Diggory Apr 25, 2024
5bbdf7f
Allow to set configuration elements as deprecated (#5540)
SimplyDanny Apr 25, 2024
7623f1e
Enable more rules in SwiftLint's own .swiftlint.yml (#5532)
mildm8nnered Apr 27, 2024
108b1fc
Enable rules that currently have no violations (#5547)
mildm8nnered Apr 29, 2024
99a990d
Disable deprecated rules (#5549)
SimplyDanny Apr 29, 2024
96db41c
Add an experimental baseline feature (#5475)
mildm8nnered May 1, 2024
16cb4a0
Fix numeric version comparisons (#5526)
chandlerwall May 1, 2024
16c0213
Add option to `redundant_type_annotation` rule to consider default li…
garricn May 1, 2024
1658f1d
Extract method for common code and make signatures swiftier (#5554)
SimplyDanny May 1, 2024
11cbac6
Enable `consider_default_literal_types_redundant` option (#5555)
SimplyDanny May 1, 2024
3258fc8
Sort and categorize configuration (#5556)
SimplyDanny May 1, 2024
5f8fe00
Pass an entity's parent to the traversal block as well
SimplyDanny May 1, 2024
4a72167
Check that a reference is not just extended
SimplyDanny May 1, 2024
d734022
Add `package` ACL (#5559)
SimplyDanny May 4, 2024
6834393
Use Swift Argument Parser from version 1.2.1 (#5562)
revolter May 8, 2024
0a2878d
Update Bazel and SPM dependencies (#5563)
SimplyDanny May 9, 2024
b17bbaa
Remove severity as a baseline key (#5566)
mildm8nnered May 11, 2024
c29391a
Ignore but report invalid keys (#5567)
SimplyDanny May 11, 2024
5c5390e
Allow a SwiftSyntax version range (#5534)
Kyle-Ye May 11, 2024
84710bd
Create draft release and skip publishing steps temporarily
SimplyDanny May 11, 2024
460d88c
release 0.55.0
SimplyDanny May 11, 2024
a04ecbd
Add new changelog section
SimplyDanny May 11, 2024
0e9db3a
Revert "Create draft release and skip publishing steps temporarily"
SimplyDanny May 11, 2024
6620d8a
Capitalize release commit message
SimplyDanny May 11, 2024
b1d3e5c
Create release and upload artifacts at once
SimplyDanny May 11, 2024
919c10f
Fix testSARIFReporter (#5572)
garricn May 13, 2024
e84a6fc
Silence `unused_enumerated` rule when `$0` in a closure is explicitly…
SimplyDanny May 15, 2024
40bee88
Respect configuration in `unneeded_override` rule's rewriter (#5579)
SimplyDanny May 15, 2024
3a3ec07
Fix Bazel build when `bzlmod` is not in use (#5580)
SimplyDanny May 15, 2024
dfe19ac
Respect comments before opening braces in `opening_brace` rule (#5582)
SimplyDanny May 15, 2024
7ec2238
Improve README.md (#5543)
garricn May 15, 2024
03af316
Fix wording of `static_over_final_class` rule's violation message (#5…
SimplyDanny May 15, 2024
6499497
Update `swiftlint --help` output
SimplyDanny May 15, 2024
af14250
Fix some markdownlint warnings
SimplyDanny May 15, 2024
7957859
Use `txt` for `swiftlint --help` output to avoid odd coloring
SimplyDanny May 15, 2024
fe97631
Move Xcode Run Script Build Phase note (#5584)
garricn May 16, 2024
161391d
Treat conditional code as if it was always active (#5581)
SimplyDanny May 16, 2024
de66fea
Completely exclude the binary target from the Linux build (#5585)
SimplyDanny May 16, 2024
8bc8160
Mark rule registry as sendable (#5587)
SimplyDanny May 16, 2024
2892e40
Bump rexml from 3.2.5 to 3.2.8 (#5588)
dependabot[bot] May 16, 2024
b515723
Release 0.55.1
SimplyDanny May 16, 2024
21bdaf0
Add new changelog section
SimplyDanny May 16, 2024
219f47c
Fix indentation
SimplyDanny May 16, 2024
d7cf2fe
Adapt and templatize test reference (#5589)
SimplyDanny May 16, 2024
ebf7c70
Stop triggering `mark` rule in the middle of another comment (#5593)
SimplyDanny May 17, 2024
b42f6ff
Keep initializers with attributed parameters in `unneeded_synthesized…
SimplyDanny May 17, 2024
da4ba02
Add workflow to sync plugins upon change
SimplyDanny Jun 18, 2024
5b2f3a4
Customize commit message created by sync job
SimplyDanny Jun 18, 2024
61e92fe
Add workflow that releases the plugins for the same tag
SimplyDanny Jun 19, 2024
bab4c12
Move command plugin section
SimplyDanny Jun 20, 2024
4c11a10
Recommend SwiftLintPlugins in the README
SimplyDanny Jun 20, 2024
3e8a051
Fix wording and sentence relations
SimplyDanny Jun 20, 2024
47ef99c
Remove deprecated path argument (#5614)
mildm8nnered Jun 22, 2024
ff96d16
Split violation reason and provide a better description (#5627)
SimplyDanny Jun 22, 2024
6431b95
Fix capitalization (#5626)
SimplyDanny Jun 22, 2024
72069bf
Ignore ACL restricted to value setting in `extension_access_modifier`…
SimplyDanny Jun 22, 2024
914fa02
Use SwiftSyntax version 600.0.0-prerelease-2024-03-11 (#5527)
SimplyDanny Jun 22, 2024
2d28166
Enable upcoming feature "Concise Magic File" (#5637)
SimplyDanny Jun 22, 2024
d5dc142
Enable upcoming Swift 6 features (#5639)
SimplyDanny Jun 22, 2024
1f4b422
Add changelog entries associated with update to Swift 6 (#5638)
SimplyDanny Jun 22, 2024
fa5f98f
Make `vertical_whitespace_between_cases` rule work when case block en…
ilendemli Jun 22, 2024
3b19e7d
Fix typo in README (#5621)
miltenkot Jun 22, 2024
251fb85
Keep GitHub Actions up to date with GitHub's Dependabot (#5643)
cclauss Jun 26, 2024
3afad91
Bump the github-actions group with 4 updates (#5644)
dependabot[bot] Jun 26, 2024
8bed208
Adds `baseline` and `write_baseline` config file options (#5552)
mildm8nnered Jun 27, 2024
5c195a4
Fixed baseline compare issues (#5605)
mildm8nnered Jun 28, 2024
09edd52
Print only file path when reporting a correction (#5596)
SimplyDanny Jun 28, 2024
c810459
Enforce mandatory trailing comma and fix all violations (#5640)
SimplyDanny Jun 28, 2024
aa9f474
Add new `no_empty_block` rule (#5617)
Ueeek Jun 29, 2024
d274a81
Lint Package.swift as well (#5646)
SimplyDanny Jun 29, 2024
593bb62
Adds `--working-directory` command line option (#5560)
mildm8nnered Jun 29, 2024
6642d45
Rewrite `missing_docs` rule with SwiftSyntax (#5048)
woxtu Jul 2, 2024
e0b9295
Add update checker (#5613)
mildm8nnered Jul 6, 2024
714bf4c
Document modified configurations used to lint examples (#5402)
SimplyDanny Jul 7, 2024
f41c456
Enable the `closure_body_length` and `multiline_literal_brackets` rul…
mildm8nnered Jul 7, 2024
202adf0
Transfer checksum of binary package to plugin repository
SimplyDanny Jul 9, 2024
ed10aec
Enable `implicit_return` and fix all violations (#5658)
mildm8nnered Jul 10, 2024
c6a7dd2
Fix implicit return rewriting (#5661)
mildm8nnered Jul 10, 2024
21b7e5e
Enabled `prefer_self_in_static_references`, and fixed all current vio…
mildm8nnered Jul 10, 2024
e48bdb7
Add new `unused_parameter` rule (#5668)
SimplyDanny Jul 14, 2024
67b1aaa
Trigger `missing_docs` rule on declaration-introducing keyword (#5671)
SimplyDanny Jul 14, 2024
cc4b569
Enable `unused_parameter` rule and fix all violations (#5673)
SimplyDanny Jul 14, 2024
b1234e3
Add `--only-rule` command line option (#5666)
mildm8nnered Jul 15, 2024
e54f939
Support Swift version 5.10.1 (#5676)
SimplyDanny Jul 16, 2024
2442e10
Avoid needless indentation in examples (#5675)
SimplyDanny Jul 16, 2024
1faaf10
Adapt SwiftSyntax repository URL (#5678)
SimplyDanny Jul 17, 2024
3421f5f
Enable `multiline_parameters` rule, and fix all cases (#5664)
mildm8nnered Jul 18, 2024
238415b
Place corrections optionally into violations (#5680)
SimplyDanny Jul 20, 2024
9f8a3f5
Fix some typos (#5683)
SimplyDanny Jul 20, 2024
cb0f5ab
Verify and document fixed `opening_brace` correction (#5620)
swiftty Jul 20, 2024
b63807d
Fail in debug builds if a rule produces corrections while not being c…
SimplyDanny Jul 20, 2024
2cc1acb
Check at the violation position if a correction can be applied (#5682)
SimplyDanny Jul 20, 2024
ffed455
Document SwiftLintPlugin execution from Script Build Phase (#5677)
frankois944 Jul 21, 2024
a14c4a9
Improve test coverage slightly (#5687)
SimplyDanny Jul 21, 2024
d46bfcd
Fix some typos (#5688)
SimplyDanny Jul 21, 2024
b9f3843
Make `no_empty_block` rule opt-in and add configurations (#5685)
Ueeek Jul 22, 2024
98cf87a
Rename macros to something more descriptive (#5686)
SimplyDanny Jul 23, 2024
6ee4623
Fix deprecation warnings (#5695)
mildm8nnered Jul 24, 2024
03b28d5
Fix typo (#5691)
lamtrinhdev Jul 24, 2024
b257cd2
Update status badge
SimplyDanny Jul 24, 2024
7904d9a
Support `--target` paths being passed to command plugin (#5696)
SimplyDanny Jul 24, 2024
7b84112
Remove reporter category from documentation (#5697)
SimplyDanny Jul 25, 2024
cce9feb
Use SwiftSyntax version 600.0.0-prerelease-2024-07-24 (#5701)
SimplyDanny Jul 25, 2024
cbe9bd0
Disable upcoming Swift feature "InternalImportsByDefault" (#5702)
SimplyDanny Jul 25, 2024
b221472
Update SPM dependencies (#5703)
SimplyDanny Jul 25, 2024
4b9c159
Remove unused conformance (#5704)
SimplyDanny Jul 25, 2024
f72666e
Fix some issue in SARIF reporter (#5705)
SimplyDanny Jul 26, 2024
9dbd40a
Add changelog entry for #5705
SimplyDanny Jul 26, 2024
d28901e
Remove deprecated option `--in-process-sourcekit` entirely (#5707)
SimplyDanny Jul 27, 2024
39b7c9f
Move and refactor methods (#5706)
SimplyDanny Jul 27, 2024
103e585
Make sure that violations of the typesafe_array_init rule are correct…
mildm8nnered Jul 28, 2024
1f1dca3
Clarify usage of custom rules under only rules (#5712)
daniel-moh Jul 29, 2024
5f4149c
Remove spaces before and after slashes used as "or"
SimplyDanny Jul 29, 2024
e44bf9a
Add new `brace_on_new_line` option to `opening_brace` rule (#5708)
SimplyDanny Jul 30, 2024
5f804d0
Remove extra case statement in example (#5717)
UIApplicationMain Jul 31, 2024
75d3a87
Treat specialized imports with attributes as unique (#5718)
SimplyDanny Jul 31, 2024
9309f17
Fix some typos (#5719)
wanxiangchwng Aug 1, 2024
b8a8c95
Update Bazel dependencies (#5720)
SimplyDanny Aug 2, 2024
a657438
Add new `prefer_key_path` rule (#5548)
SimplyDanny Aug 2, 2024
88191fe
Enable `prefer_key_path` rule and fix all violations (#5721)
SimplyDanny Aug 3, 2024
87bc82e
Restrict `prefer_key_path` to standard functions and function argumen…
SimplyDanny Aug 3, 2024
73cbb82
Update issue templates
SimplyDanny Aug 3, 2024
b67e82a
Extract new `contrasted_opening_brace` rule from `opening_brace` rule…
SimplyDanny Aug 3, 2024
6fa25a2
Migrate Azure builds to Swift 5.10 (#5727)
SimplyDanny Aug 4, 2024
1d26f4c
Let descriptions be immutable (#5729)
SimplyDanny Aug 5, 2024
78b665d
Unroll parsing code to make `Version` a struct (#5730)
SimplyDanny Aug 5, 2024
5d473ba
Shorten template title
SimplyDanny Aug 6, 2024
22bdffe
Update template to accommodate recent changes in target struct
SimplyDanny Aug 6, 2024
3ed1391
Release 0.56.0
SimplyDanny Aug 6, 2024
fe4f559
Add new changelog section
SimplyDanny Aug 6, 2024
248ffaf
Make `contrasted_opening_brace` opt-in
SimplyDanny Aug 6, 2024
da9406b
Add changelog entry
SimplyDanny Aug 6, 2024
586dd54
Release 0.56.1
SimplyDanny Aug 6, 2024
4a83c36
Add new changelog section
SimplyDanny Aug 6, 2024
d192357
Update "Publish to BCR" config
SimplyDanny Aug 8, 2024
cffb331
Fix spurious Bazel build errors (#5756)
SimplyDanny Aug 18, 2024
fac9599
Add Swift builds running on macOS 13 (#5734)
SimplyDanny Aug 18, 2024
a0a69a6
Update Bazel bzlmod dependencies for `rules_swift` 2.x support (#5736)
luispadron Aug 18, 2024
5454bc3
Bump `rexml` from 3.2.8 to 3.3.3 (#5757)
dependabot[bot] Aug 18, 2024
21b1a03
Ignore initializers with attributes in `unneeded_synthesized_initiali…
SimplyDanny Aug 19, 2024
314c91f
Check all nested `if` expressions in `contrasted_opening_brace` rule …
SimplyDanny Aug 19, 2024
d5f7f9c
Align left closure brace with associated parent function call (#5760)
SimplyDanny Aug 19, 2024
74f4778
Align left brace of additional trailing closures with right brace of …
SimplyDanny Aug 19, 2024
9d07110
Trigger on empty closure blocks in `no_empty_block` rule (#5763)
SimplyDanny Aug 20, 2024
f3bdd27
Silence `unneeded_override` rule on methods and initializers with att…
SimplyDanny Aug 21, 2024
c8a9065
Silence `prefer_key_path` rule on macro expansion expressions (#5765)
SimplyDanny Aug 21, 2024
a24488f
Release 0.56.2
SimplyDanny Aug 22, 2024
fb8551f
Add new changelog section
SimplyDanny Aug 22, 2024
7d539ac
Add fixed releaser
SimplyDanny Aug 22, 2024
1331508
Bump rexml from 3.3.3 to 3.3.6 (#5767)
dependabot[bot] Aug 22, 2024
9f4cb92
Swift type checking using is (#5561)
ikelax Aug 23, 2024
60a1d34
Remove `anyobject_protocol` rule (#5770)
mildm8nnered Aug 24, 2024
3bb8014
Add options to `opening_brace` rule that silence it on multiline stat…
leonardosrodrigues0 Aug 24, 2024
48aaca6
Reverse Data -> String conversion rule (#5601)
samrayner Aug 24, 2024
dfd19bd
Update Bazel pre-submit steps
SimplyDanny Aug 25, 2024
94d4f7a
Add instructions for installation in Chinese (#5777)
huixuhx Aug 31, 2024
ae3f0c4
Add new `attribute_name_spacing` rule (#5669)
aryamansharda Sep 6, 2024
27cab44
Use `Diagnostics.error` when command failed (#5782)
enricenrich Sep 7, 2024
e845163
Remove empty lines
SimplyDanny Sep 7, 2024
d601c22
Auto-upload Linux build
SimplyDanny Sep 7, 2024
d136b02
Update release instructions
SimplyDanny Sep 7, 2024
1dbe095
Move release instructions
SimplyDanny Sep 7, 2024
06e4e3c
Fix `superfluous_disable_command` for `custom_rules` (#5670)
mildm8nnered Sep 7, 2024
9e78054
Preserve trailing comments for `opening_brace` rule (#5780)
mildm8nnered Sep 8, 2024
8baec9e
no_magic_numbers rule now ignores violations in Preview macros (#5778)
mildm8nnered Sep 8, 2024
7afe2dc
Combine release jobs into one workflow
SimplyDanny Sep 8, 2024
1db3efd
Get tag name from release object
SimplyDanny Sep 8, 2024
551adb0
Automate Pod publishing
SimplyDanny Sep 8, 2024
168fb98
Release 0.57.0
SimplyDanny Sep 8, 2024
0654797
Add new changelog section
SimplyDanny Sep 8, 2024
9da392d
Fix workflow syntax
SimplyDanny Sep 8, 2024
614e694
Allow to trigger Docker build manually
SimplyDanny Sep 8, 2024
274d12b
Read tag from workflow input
SimplyDanny Sep 8, 2024
85c4dbe
Ensure expected initializer signature (#5786)
SimplyDanny Sep 9, 2024
8241909
Run command plugin in whole package if no targets defined (#5789)
SimplyDanny Sep 11, 2024
0d04196
Do not throw deprecation warning if property is not present in config…
chipp Sep 15, 2024
a826d17
Use SwiftSyntax version 600.0.0 (#5795)
minhaaan Sep 15, 2024
37f15d4
Suggest broader initializer accepting Sequences (#5794)
SimplyDanny Sep 16, 2024
e9386ae
Disallow optional configuration values (#5798)
SimplyDanny Sep 16, 2024
1767dab
Add Swift 6 presentation of `map(_:)` type (#5804)
SimplyDanny Sep 21, 2024
246643f
Keep only command-line related functions in `swiftlint` module (#5806)
SimplyDanny Sep 29, 2024
8db0fbf
Extend clean command
SimplyDanny Sep 29, 2024
0c9ea0e
Add Swift 6 builds (#5810)
SimplyDanny Sep 29, 2024
36b88c5
Remove unused `testSimulateHomebrewTest` (#5812)
SimplyDanny Sep 29, 2024
1ec3fdc
Pass options to visitor (#5811)
SimplyDanny Sep 29, 2024
ab699f9
Use async/await for URL session (#5814)
SimplyDanny Sep 29, 2024
b903e0b
Sync strict concurrency build settings (#5813)
SimplyDanny Sep 29, 2024
b59e2da
Build Docker image with Swift 6 on Ubuntu 24.04
SimplyDanny Sep 29, 2024
4f2b03b
Link to internal libraries
SimplyDanny Sep 29, 2024
6d1cb60
Copy more required dependencies
SimplyDanny Sep 30, 2024
c4a7325
Wrap buffer to make it @Sendable (#5815)
SimplyDanny Sep 30, 2024
63ee194
Keep Swift 5 macOS build for the time being (#5816)
SimplyDanny Oct 1, 2024
88c2e4c
Enable strict concurrency in built-in rules module (#5817)
SimplyDanny Oct 4, 2024
d22a719
Build with warnings as errors excluding SourceKitten (#5818)
SimplyDanny Oct 6, 2024
3b6ba6d
Fix warning for unused return value in Linux build (#5819)
SimplyDanny Oct 7, 2024
0a1ee18
Separate build and copy steps from each other (#5820)
SimplyDanny Oct 7, 2024
9ebd6ae
Dont trigger for non-optional type casting, or for optional types (#5…
mildm8nnered Oct 11, 2024
9c2d0d5
Fix nested disable commands improved (#5797)
mildm8nnered Oct 15, 2024
5070b82
Remove unnecessary symbol (#5827)
timesince Oct 17, 2024
7385bea
Add validation hook to configuration parsing (#5824)
SimplyDanny Oct 17, 2024
b486648
Remove workaround (#5830)
SimplyDanny Oct 19, 2024
d4b41bc
Stop triggering on `self` in key path expressions (#5836)
SimplyDanny Oct 24, 2024
e87efff
Support Xcode input file lists (#5790)
BlueVirusX Oct 25, 2024
9ea4374
Fix `--only-rule` config issues (#5773)
mildm8nnered Oct 25, 2024
8328212
Make use of transitive imports configuration (#5622)
PaulTaykalo Oct 25, 2024
01f5ecd
Replace `description.identifier` with `identifier` (#5837)
mildm8nnered Oct 26, 2024
f410ea5
Support Swift version 6.0.2 (#5844)
SimplyDanny Oct 30, 2024
23d6a7c
Added `lenient` command line option (#5801)
mildm8nnered Oct 30, 2024
a731831
Bump rexml from 3.3.6 to 3.3.9 (#5842)
dependabot[bot] Nov 9, 2024
3344fc6
Add cache path and directories only when commands accept them (#5851)
SimplyDanny Nov 10, 2024
fb3ce5a
Add `ignore_properties` option to `redundant_type_annotation` rule (#…
jaredgrubb Nov 12, 2024
707a63d
Allow closures being directly called to be wrapped into parentheses (…
SimplyDanny Nov 16, 2024
cafed07
Silence `superfluous_else` rule for availability conditions (#5857)
SimplyDanny Nov 16, 2024
9e61e81
Rework algorithm used in `function_default_parameter_at_end` rule (#5…
SimplyDanny Nov 16, 2024
025b1e7
Allow inherited isolation parameter to be first in function signature…
SimplyDanny Nov 17, 2024
2c7e723
Support type casting on configuration option values defined by enviro…
SimplyDanny Nov 17, 2024
086f1b3
Sync build settings and options (#5861)
SimplyDanny Nov 17, 2024
c784adc
Pass only remaining arguments to `swiftlint` command (#5865)
SimplyDanny Nov 19, 2024
2a723d0
Add new option `max_number_of_single_line_parameters ` to `multiline_…
kimdv Nov 24, 2024
236c29a
Create releases as drafts
SimplyDanny Nov 24, 2024
25f2776
Release 0.57.1
SimplyDanny Nov 24, 2024
554fd56
Add new changelog section
SimplyDanny Nov 24, 2024
ece675c
Do not use defined event names
SimplyDanny Nov 24, 2024
8ff2518
Use Bash <4 compatible method to UPPERCASE a string
SimplyDanny Nov 24, 2024
e9ce8ce
Update Gems
SimplyDanny Nov 24, 2024
9d9156f
Add Xcode command plugin (#5867)
SimplyDanny Nov 26, 2024
75e5e05
Require write permission for command plugin (#5870)
SimplyDanny Nov 26, 2024
b9d33e4
Update `file_name` rule to allow fully-qualified names of nested type…
fraioli Nov 26, 2024
0ce122e
Add new `async_without_await` rule (#5869)
jkolarik-paylocity Nov 27, 2024
daebaa3
Include AMD64 Linux binary in `artifactbundle` (#5866)
bradleymackey Nov 27, 2024
172d85a
Add pre-defined internal Swift 6 version (#5872)
SimplyDanny Nov 28, 2024
341a5a1
Disable `prefer_key_path` temporarily (#5877)
SimplyDanny Nov 29, 2024
b22c2b5
Treat `compactMap` as standard function (#5876)
SimplyDanny Nov 29, 2024
c45427e
Handle `@unknown default` in `vertical_whitespace_between_cases` rule…
jaredgrubb Dec 1, 2024
f13c54c
Replace identity expressions with `\.self` (#5871)
SimplyDanny Dec 1, 2024
fbe5aef
Merge remote-tracking branch 'upstream/main' into pull-in-upstream
Killectro Dec 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Sort and categorize configuration (realm#5556)
SimplyDanny authored May 1, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 3258fc8089df0d8de378fb8bb48bcbf4cde5f317
45 changes: 24 additions & 21 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# Directory and file filters
included:
- Plugins
- Source
- Tests
excluded:
- Tests/SwiftLintFrameworkTests/Resources

# Enabled/disabled rules
analyzer_rules:
- unused_declaration
- unused_import
@@ -50,39 +53,44 @@ disabled_rules:
- unused_capture_list
- vertical_whitespace_between_cases

# Configurations
attributes:
always_on_line_above:
- "@ConfigurationElement"
- "@OptionGroup"
- "@RuleConfigurationDescriptionBuilder"
identifier_name:
excluded:
- id
large_tuple: 3
number_separator:
minimum_length: 5
balanced_xctest_lifecycle: &unit_test_configuration
test_parent_classes:
- SwiftLintTestCase
- XCTestCase
empty_xctest_method: *unit_test_configuration
file_name:
excluded:
- Exports.swift
- GeneratedTests.swift
- RuleConfigurationMacros.swift
- SwiftSyntax+SwiftLint.swift
- TestHelpers.swift
unneeded_override:
affect_initializers: true

balanced_xctest_lifecycle: &unit_test_configuration
test_parent_classes:
- SwiftLintTestCase
- XCTestCase
empty_xctest_method: *unit_test_configuration
single_test_class: *unit_test_configuration
final_test_case: *unit_test_configuration
function_body_length: 60
type_body_length: 400
identifier_name:
excluded:
- id
large_tuple: 3
number_separator:
minimum_length: 5
redundant_type_annotation:
consider_default_literal_types_redundant: true
single_test_class: *unit_test_configuration
type_body_length: 400
unneeded_override:
affect_initializers: true
unused_import:
always_keep_imports:
- SwiftSyntaxBuilder # we can't detect uses of string interpolation of swift syntax nodes
- SwiftLintFramework # now that this is a wrapper around other modules, don't treat as unused

# Custom rules
custom_rules:
rule_id:
included: Source/SwiftLintBuiltInRules/Rules/.+/\w+\.swift
@@ -104,8 +112,3 @@ custom_rules:
message: Rule Test Function mustn't end with `rule`
regex: func\s*test\w+(r|R)ule\(\)
severity: error

unused_import:
always_keep_imports:
- SwiftSyntaxBuilder # we can't detect uses of string interpolation of swift syntax nodes
- SwiftLintFramework # now that this is a wrapper around other modules, don't treat as unused