JP Simard
0e6d19b4c1
release 0.50.0-rc.4
0.50.0-rc.4
2022-11-04 09:23:30 -04:00
JP Simard
759408fdb5
Update SwiftSyntax ( #4506 )
...
This update pulls in https://github.com/apple/swift-syntax/pull/1050 ,
which fixes a memory leak, reducing memory usage by up to 3x and
improves lint times by 20%-50% in my tests.
2022-11-04 06:05:38 -04:00
Craig Siemens
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
JP Simard
05e06d1945
Allow passing a commit to update-swift-syntax.sh ( #4509 )
...
E.g.
```console
$ ./tools/update-swift-syntax.sh e19c5f2909127ce4537d6f8981919aba4645ce4e
```
2022-11-03 16:05:09 -04:00
John Szumski
6fcdd8077f
Adds NSError to the list of types in discouraged_direct_init. ( #4508 )
2022-11-03 13:52:30 -04:00
Danny Mösch
32152646f3
Use Self in constructor calls ( #4505 )
2022-11-02 22:50:22 +00:00
JP Simard
e97119efec
Migrate orphaned_doc_comment to use SwiftSyntax classifications ( #4461 )
2022-11-02 15:55:47 +00:00
JP Simard
fce8283843
Fix & clean up Dockerfile ( #4502 )
...
We no longer need `_InternalSwiftSyntaxParser`, but we do need
`libswiftCore.so`.
Fixes https://github.com/realm/SwiftLint/issues/4501
Add a more useful validation test at the end of the Dockerfile.
In addition to running `swiftlint version`, also actually run the linter
which will exercise the SourceKit codepaths.
2022-11-02 10:28:55 -04: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
César Pinto Castillo
c56e19a0c2
Fix SwiftLint support on Xcode Cloud ( #4485 )
...
Fixes #4484 by checking the process environment for all the expected
environment variables set by Xcode Cloud.
2022-11-01 13:00:50 -04:00
JP Simard
3800ad32bf
Sort list of rules migrated to SwiftSyntax in changelog ( #4499 )
2022-10-31 13:07:53 -04:00
JP Simard
79e3c8bd4a
Add special handling for https://github.com/apple/swift/issues/61817 ( #4498 )
2022-10-31 09:58:36 -04:00
github-actions[bot]
6ad4a704f5
Update SwiftSyntax ( #4497 )
2022-10-31 09:49:40 -04:00
Marcelo Fabri
20bfe264f5
Rewrite overridden_super_call and prohibited_super_call with SwiftSyntax ( #4493 )
...
* Rewrite `overridden_super_call` with SwiftSyntax
* Rewrite `prohibited_super_call` too
2022-10-30 20:28:25 -07:00
Marcelo Fabri
697eaa73dd
Rewrite private_subject rule with SwiftSyntax ( #4495 )
2022-10-30 18:41:57 -07:00
Marcelo Fabri
5144cccb57
Revert "[OSSCheck] Cache repos ( #4456 ) ( #4477 )" ( #4494 )
...
This reverts commit 6b5352feac .
2022-10-30 17:46:53 -07:00
Marcelo Fabri
98e9c2f1f4
Fix SwiftVersionTests when using Xcode 14.2 ( #4492 )
2022-10-30 19:50:49 -04:00
Henry
63c043664d
Add new no_magic_numbers rule ( #4265 )
2022-10-30 15:28:20 +01:00
JP Simard
a18436d4d6
Rewrite optional_enum_case_matching with SwiftSyntax ( #4488 )
2022-10-28 19:30:33 +00:00
JP Simard
a5c44605af
Update to rules_xcodeproj 0.10.0 ( #4486 )
...
Mostly has optimizations: https://github.com/buildbuddy-io/rules_xcodeproj/releases/tag/0.10.0
2022-10-28 14:17:03 -04:00
JP Simard
b7f621c239
Make update-swift-syntax.sh script portable ( #4487 )
2022-10-28 14:16:48 -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
1b59a3f168
Cache location converters ( #4481 )
...
This is 2%-12% faster according to OSSCheck
2022-10-26 12:37:16 -04:00
JP Simard
6b5352feac
[OSSCheck] Cache repos ( #4456 ) ( #4477 )
...
This should speed up OSSCheck runs considerably.
In my local testing, cloning repos goes from 77s to 29s on a 100 Mbps
connection.
2022-10-26 10:58:23 -04:00
JP Simard
9a305dd2e6
Update CI setup instructions ( #4479 )
2022-10-26 10:25:06 -04:00
github-actions[bot]
7738f0c0a5
Update SwiftSyntax ( #4476 )
...
Co-authored-by: jpsim <jpsim@users.noreply.github.com >
2022-10-24 17:10:17 -04:00
JP Simard
374130bb56
Update SwiftSyntax on a weekly scheduled CI job ( #4475 )
2022-10-24 16:37:29 -04:00
Marcelo Fabri
d37465ad37
Rewrite vertical_parameter_alignment with SwiftSyntax ( #4466 )
...
* Rewrite `vertical_parameter_alignment` rule with SwiftSyntax
* Validate inits
2022-10-24 12:56:48 -07:00
Marcelo Fabri
50c85ef5c1
Rewrite explicit_top_level_acl with SwiftSyntax ( #4450 )
2022-10-24 11:31:12 -07:00
Marcelo Fabri
fa6db3cca7
Rewrite collection_alignment rule with SwiftSyntax ( #4472 )
2022-10-24 10:51:31 -07:00
JP Simard
96925d480e
Revert "[OSSCheck] Cache repos ( #4456 )" ( #4473 )
...
This reverts commit f0f46a45eb .
This might need more error handling / recovery:
https://github.com/realm/SwiftLint/pull/4456#issuecomment-1288792588
2022-10-24 06:26:52 -04:00
Marcelo Fabri
31ea58381c
Add example for #3558 ( #4471 )
...
Fixes #3558
2022-10-24 06:14:30 -04:00
Marcelo Fabri
95838aa230
Add example for #2008 ( #4470 )
...
Fixes #2008
2022-10-24 05:32:56 -04:00
Marcelo Fabri
f8d505a225
Add example for #3945 ( #4469 )
...
Fixes #3945
2022-10-24 09:23:37 +00:00
Marcelo Fabri
7a8de1c966
Add example for #2782 ( #4468 )
...
Fixes #2782
2022-10-24 09:22:31 +00:00
Marcelo Fabri
7a3d0d55a0
Add example for #3022 ( #4467 )
...
Fixes #3022
2022-10-24 08:56:23 +00:00
Marcelo Fabri
1c6b6c67e0
Rewrite duplicated_key_in_dictionary_literal with SwiftSyntax ( #4396 )
2022-10-23 23:11:17 -07:00
Marcelo Fabri
87bebb6744
Rewrite test_case_accessibility with SwiftSyntax ( #4446 )
2022-10-23 17:39:45 -07:00
Marcelo Fabri
7f5b189c1f
Rewrite override_in_extension with SwiftSyntax ( #4463 )
2022-10-23 17:38:40 -07:00
Marcelo Fabri
c1f2b615e2
Rewrite redundant_optional_initialization with SwiftSyntax ( #4409 )
2022-10-23 20:30:29 -04:00
Marcelo Fabri
5d1906456b
Rewrite xct_specific_matcher with SwiftSyntax ( #4462 )
2022-10-23 19:17:29 -04:00
Marcelo Fabri
53752f58ad
Rewrite redundant_set_access_control with SwiftSyntax ( #4395 )
2022-10-23 15:30:01 -07:00
Marcelo Fabri
c98ffcc940
Rewrite convenience_type rule with SwiftSyntax ( #4452 )
2022-10-23 15:28:55 -07:00
Marcelo Fabri
351c8be2e0
Rewrite return_arrow_whitespace with SwiftSyntax ( #4413 )
2022-10-23 15:06:14 -07:00
JP Simard
cb79584c7d
Migrate comment_spacing to use SwiftSyntax classifications ( #4460 )
2022-10-23 17:39:38 -04:00
Marcelo Fabri
def404259f
Add more repos to oss-check ( #4453 )
2022-10-23 14:21:02 -07:00
JP Simard
de7996f5c7
Rewrite discarded_notification_center_observer with SwiftSyntax ( #4459 )
2022-10-23 20:35:09 +00:00
JP Simard
b4f45aa55e
Move TSan Runs CI job to Buildkite ( #4457 )
...
Now that we have more Buildkite machines, these should be faster than
running on Azure Pipelines.
Also remove the `//bazel:xcode_config` configurations since they should
no longer be in use.
2022-10-23 13:05:28 -04:00
JP Simard
f0f46a45eb
[OSSCheck] Cache repos ( #4456 )
...
This should speed up OSSCheck runs considerably.
In my local testing, cloning repos goes from 77s to 29s on a 100 Mbps
connection.
2022-10-23 12:20:11 -04:00
JP Simard
1ee5154687
Update SwiftSyntax to fa7ff05 ( #4455 )
...
There's a new SwiftParserDiagnostics module and the rewriter visit
function signatures changed.
2022-10-23 11:56:22 -04:00