Danny Mösch
b903e0bd87
Sync strict concurrency build settings ( #5813 )
2024-09-29 15:22:07 -04:00
Danny Mösch
e9386aea51
Disallow optional configuration values ( #5798 )
...
Can be avoided now given 0d04196 .
2024-09-16 21:49:15 +02:00
Danny Mösch
168fb98ed1
Release 0.57.0
2024-09-08 18:02:27 +02:00
Martin Redington and Danny Mösch
06e4e3cc07
Fix superfluous_disable_command for custom_rules ( #5670 )
...
Co-authored-by: Danny Mösch <danny.moesch@icloud.com >
2024-09-07 23:15:21 +02:00
Sam Rayner
48aaca61f0
Reverse Data -> String conversion rule ( #5601 )
2024-08-24 10:13:04 +00:00
Danny Mösch
a24488f26e
Release 0.56.2
2024-08-22 13:20:18 +02:00
Danny Mösch
9d0711070d
Trigger on empty closure blocks in no_empty_block rule ( #5763 )
2024-08-20 22:28:30 +02:00
Danny Mösch
586dd54db4
Release 0.56.1
2024-08-07 01:09:36 +02:00
Danny Mösch
3ed1391e1d
Release 0.56.0
2024-08-06 22:37:33 +02:00
Danny Mösch
88191fe58e
Enable prefer_key_path rule and fix all violations ( #5721 )
2024-08-03 14:21:47 +02:00
wanxiangchwng
9309f17825
Fix some typos ( #5719 )
...
Signed-off-by: wanxiangchwng <cui.shuang@foxmail.com >
2024-08-01 19:14:16 +02:00
Danny Mösch
f72666ec77
Fix some issue in SARIF reporter ( #5705 )
2024-07-26 13:43:57 -04:00
Danny Mösch
4b9c15969d
Remove unused conformance ( #5704 )
2024-07-25 16:43:57 -04:00
Danny Mösch
98cf87ab8d
Rename macros to something more descriptive ( #5686 )
2024-07-23 20:14:29 +02:00
Danny Mösch
2cc1acb683
Check at the violation position if a correction can be applied ( #5682 )
2024-07-20 23:22:54 +02:00
Danny Mösch
b63807de6d
Fail in debug builds if a rule produces corrections while not being correctable ( #5684 )
2024-07-20 19:11:55 +02:00
Danny Mösch
9f8a3f5662
Fix some typos ( #5683 )
2024-07-20 11:22:32 -04:00
Danny Mösch
238415b4f7
Place corrections optionally into violations ( #5680 )
...
This avoids maintaining two lists of objects.
2024-07-20 16:24:17 +02:00
Martin Redington
3421f5f46d
Enable multiline_parameters rule, and fix all cases ( #5664 )
2024-07-18 01:48:02 +01:00
Martin Redington
b1234e38a5
Add --only-rule command line option ( #5666 )
2024-07-15 23:52:52 +01:00
Danny Mösch
cc4b569c54
Enable unused_parameter rule and fix all violations ( #5673 )
2024-07-14 11:20:50 -04:00
Danny Mösch
e48bdb7adf
Add new unused_parameter rule ( #5668 )
2024-07-14 05:31:29 -04:00
Martin Redington
21b7e5ed6b
Enabled prefer_self_in_static_references, and fixed all current violations ( #5662 )
2024-07-10 18:58:27 +01:00
Martin Redington
c6a7dd2ecd
Fix implicit return rewriting ( #5661 )
2024-07-10 13:24:09 +01:00
Martin Redington
ed10aec5f8
Enable implicit_return and fix all violations ( #5658 )
2024-07-10 12:15:19 +01:00
Danny Mösch
714bf4c8c2
Document modified configurations used to lint examples ( #5402 )
2024-07-07 13:11:41 +02:00
Martin Redington
e0b9295412
Add update checker ( #5613 )
2024-07-06 19:32:36 -04:00
Koichiro Ueki
aa9f474cb9
Add new no_empty_block rule ( #5617 )
2024-06-29 13:13:41 +02:00
Danny Mösch
c810459e6a
Enforce mandatory trailing comma and fix all violations ( #5640 )
2024-06-28 05:36:50 +00:00
Danny Mösch
09edd528dd
Print only file path when reporting a correction ( #5596 )
...
Omit exact line and column information. Keep the internal logic
available for a while in case people complain for good reasons. Then
the change can be reverted easily.
Reasons behind this change:
* What is the position of a correction actually? The position where the rule triggered? The position of the transformed node?
* If there's more than a single fix, it's highly likely that all positions (except for the first) are wrong no matter what the answer to the first question is.
* Getting the positions right in a rewriter is hard. And there is always the feeling that something is wrong with them - probably because it is.
* Even if you get the positions right in a single rule: One run collects positions for all rules that apply to a file and so rewrites in other rules might draw existing positions wrong.
* We already have checks for more than one correction position disabled in tests due to these issues.
2024-06-28 07:27:24 +02:00
Martin Redington
5c195a4bdb
Fixed baseline compare issues ( #5605 )
2024-06-28 01:53:40 +01:00
Martin Redington and Danny Mösch
8bed208416
Adds baseline and write_baseline config file options ( #5552 )
...
* Adds `baseline` and `write_baseline` config file options, so baseline can be used by people who can't pass command line arguments (e.g. plugin users).
* Added PR number
* Fixed change log entry
* Update Source/swiftlint/Helpers/LintOrAnalyzeCommand.swift
Co-authored-by: Danny Mösch <danny.moesch@icloud.com >
* updated
---------
Co-authored-by: Danny Mösch <danny.moesch@icloud.com >
2024-06-27 18:40:04 +01:00
Danny Mösch
2d28166d21
Enable upcoming feature "Concise Magic File" ( #5637 )
2024-06-22 11:22:55 +02:00
Danny Mösch
914fa02e4e
Use SwiftSyntax version 600.0.0-prerelease-2024-03-11 ( #5527 )
...
We can also switch back to an exact SwiftSyntax version now with the
plugins in a separate repository. In fact, using the plugin, no direct
dependency to SwiftSyntax is required whatsoever.
2024-06-22 11:14:14 +02:00
Danny Mösch
72069bf5c0
Ignore ACL restricted to value setting in extension_access_modifier rule ( #5625 )
2024-06-22 10:34:10 +02:00
Danny Mösch
b515723b16
Release 0.55.1
2024-05-16 21:42:01 +02:00
Danny Mösch
8bc8160416
Mark rule registry as sendable ( #5587 )
2024-05-16 21:21:24 +02:00
Danny Mösch
dfe19ac7fc
Respect comments before opening braces in opening_brace rule ( #5582 )
2024-05-15 23:06:59 +02:00
Danny Mösch
460d88c036
release 0.55.0
2024-05-11 23:09:19 +02:00
Danny Mösch
c29391a5ae
Ignore but report invalid keys ( #5567 )
...
Don't fall back to the default configuration due to invalid keys.
2024-05-11 10:28:10 +00:00
Martin Redington
b17bbaaebc
Remove severity as a baseline key ( #5566 )
...
It interacts poorly with `--strict`.
2024-05-11 09:43:39 +02:00
Danny Mösch
d734022778
Add package ACL ( #5559 )
2024-05-04 15:52:21 +02:00
Danny Mösch
5f8fe00bf9
Pass an entity's parent to the traversal block as well
2024-05-03 22:26:21 +02:00
Danny Mösch
11cbac63d1
Enable consider_default_literal_types_redundant option ( #5555 )
2024-05-01 19:58:42 +00:00
Chandler Wall
16cb4a02b1
Fix numeric version comparisons ( #5526 )
2024-05-01 20:51:01 +02:00
Martin Redington
96db41c379
Add an experimental baseline feature ( #5475 )
2024-05-01 16:55:33 +02:00
Martin Redington
7623f1e730
Enable more rules in SwiftLint's own .swiftlint.yml ( #5532 )
2024-04-27 18:43:08 +02:00
Danny Mösch
5bbdf7f4e6
Allow to set configuration elements as deprecated ( #5540 )
...
Automatically print an appropriate warning to the console.
2024-04-25 19:37:04 +00:00
Danny Mösch
1b7fbc4bcd
Make postprocessors non-throwing ( #5539 )
...
Failing immediately when a property is invalid is too strict. It feels
sufficient to allow to report an issue but otherwise continue with a default
value instead of stopping execution completely.
2024-04-23 16:45:59 -04:00
waitbutY
5315c3d1b6
Add SARIF reporter ( #5516 )
2024-04-13 05:49:57 -04:00