Marcelo Fabri
0fbf010ea4
Only skip autocorrect on files with errors ( #3933 )
...
* Only skip autocorrect on files with errors
* Use other kind of warning so tests succeed on Linux
* Update CHANGELOG.md
Co-authored-by: JP Simard <jp@jpsim.com >
Co-authored-by: JP Simard <jp@jpsim.com >
2022-04-05 10:59:50 -07:00
Danny Moesch
a801bbc83b
Add new type-safe ArrayInitRule ( #3914 )
...
The idea of this new Analyzer rule is to filter the calls of `map` before they are passed on to the classic ArrayInitRule which does the detailed checking of the lambda function block. The rule makes sure that only the `map` function is considered that is defined by the `Sequence` protocol.
2022-03-23 22:29:50 +01:00
JP Simard
e5791ec16c
release 0.47.0
2022-03-23 10:58:54 -04:00
Paul Taykalo
1616023b63
Add ability to run only one(focused) example ( #3911 )
...
* Add ability to focus on a specific test example
* Update CHANGELOG.md
Co-authored-by: JP Simard <jp@jpsim.com >
* Update CONTRIBUTING.md
Co-authored-by: JP Simard <jp@jpsim.com >
Co-authored-by: JP Simard <jp@jpsim.com >
2022-03-22 19:21:25 +02:00
Marcelo Fabri
db2721f78e
Require Swift 5.0 in runtime ( #3886 )
...
* Require Swift 5.0 in runtime
* Fix violation
* Enable legacy_rule by default
* Update changelog
* Fix changelog after rebase
* More cleanup
2022-03-11 14:01:27 -08:00
JP Simard
3273cef42b
Prevent empty files from triggering rule violations ( #3885 )
...
There are many valid cases to have an empty Swift source files, and these
shouldn't trigger violations.
2022-03-09 16:09:11 -05:00
Marcelo Fabri
b619154905
Automatically enforce min Swift version for all rules ( #3881 )
...
* Automatically enforce min Swift version for all rules
* Fix violations
2022-03-09 11:44:56 -08:00
JP Simard
0691a2e7e4
release 0.46.5
2022-03-08 16:35:33 -05:00
JP Simard
f3712b2b93
release 0.46.4
2022-03-07 11:15:27 -05:00
Marcelo Fabri
ff4249856e
Fix false positive in EmptyEnumArgumentsRule with Swift 5.6 ( #3868 )
...
Fixes #3850
2022-03-07 11:10:15 -05:00
JP Simard
02675a9c09
Fix typo in doc comment: delimeter -> delimiter
2022-03-07 09:27:28 -05:00
Danny Moesch
d77d23cbeb
Add option to exclude examples from the rule documentation ( #3834 )
...
The option can be used if an example has mainly been added as another test case, but is not suitable
as a user example. User examples should be easy to understand. They should clearly show where and
why a rule is applied and where not. Complex examples with rarely used language constructs or
pathological use cases which are indeed important to test but not helpful for understanding can be
hidden from the documentation with this option.
2022-03-02 10:55:42 -05:00
JP Simard
9c81e1a93a
release 0.46.3
2022-02-22 15:29:40 -05:00
JP Simard
b4a54f32df
release 0.46.2
2022-01-27 09:16:25 -05:00
JP Simard
61c5351978
release 0.46.1
2022-01-21 16:59:57 -05:00
JP Simard
17779cbfd4
release 0.46.0
2022-01-21 15:57:48 -05:00
JP Simard
341ec2a907
Remove 'weak_delegate' rule ( #3809 )
...
This was very prone to false positives and not worth keeping.
The identifier will stick around for a release to ease the migration.
2022-01-21 17:56:59 +00:00
Andrés Cecilia Luque
af59581b66
Fix specifying the cachePath from command line ( #3797 )
2022-01-21 08:01:48 -08:00
JP Simard
95349376fd
release 0.45.1
2021-11-29 16:47:21 -05:00
Danny Mösch
050473a0e1
Add optional prefer_self_in_static_references rule ( #3732 )
2021-11-29 18:42:53 +00:00
JP Simard
99465e659f
release 0.45.0
2021-10-18 11:57:37 -04:00
Marcelo Fabri
383e5b5bc2
Handle get async and get throws in implicit_getter ( #3743 )
...
Fixes #3684
2021-10-12 10:32:34 -07:00
Marcelo Fabri
4052c43f16
Make rule more generic and rename it
2021-09-29 10:28:39 -07:00
Marcelo Fabri
2674d367f9
Fix violation
2021-09-29 10:28:39 -07:00
Marcelo Fabri
68bfc13941
Add add_target_in_variable_declaration_closure rule
2021-09-29 10:28:39 -07:00
Ben Fox
00799cc782
Fixes MissingDocRuleConfiguration ( #3713 )
...
* add configuration for missing_docs
* fix MissingDocsRuleConfiguration
* add to changelog
* fix up Config default values and update tests
* use XCTAssertTrue and XCTAssertFalse
* fix line length violation
* finish up unit tests
* rever Package.resolved
2021-09-13 15:23:55 -04:00
JP Simard
e820e750b0
release 0.44.0
2021-09-09 17:59:13 -04:00
Kane Cheshire
4a293632c2
Named rule correctly for Sourcery to work properly
2021-08-24 00:19:35 -07:00
Marcelo Fabri
9e3f0a8ff8
Fix some rules when using Swift 5.4
2021-08-16 02:23:28 -07:00
Marcelo Fabri
9939c536d5
Add anonymous_argument_in_multiline_closure opt-in rule ( #3659 )
...
* Add anonymous_argument_in_multiline_closure opt-in rule
* Restrict match to the closure
* Fixes
2021-06-17 17:03:19 -07:00
Kane Cheshire
3536a86ba1
Added more non-triggering examples
2021-05-24 12:05:29 -07:00
Marcelo Fabri
a10158c475
Add duplicated_key_in_dictionary_literal rule ( #3613 )
2021-04-28 17:25:08 -07:00
JP Simard
4039eff984
Release 0.43.1
2021-03-15 13:13:51 -04:00
JP Simard
da2ca76953
release 0.43.0
2021-03-03 16:01:42 -05:00
JP Simard
e47fb60c7a
Regenerate Sourcery output
2021-03-03 15:41:50 -05:00
László Kustra
87d4accb39
Add "Capture non-constant variable" rule
2021-03-02 16:11:33 -05:00
Otavio Cordeiro
24122e1325
Rename Rule to BalancedXCTestLifecycleRule
2021-03-01 01:29:16 +01:00
Otavio Cordeiro
bd4dcd5b23
Add required_xctest_tearddown opt-in rule
2021-02-28 23:48:05 +01:00
JP Simard
3e04acd97d
Revert "Revert "Fix issue that prevented the inclusion of a configuration file from a parent folder ( #3491 )""
...
This reverts commit b66f7c7992 .
2021-02-26 11:44:10 -05:00
JP Simard
b66f7c7992
Revert "Fix issue that prevented the inclusion of a configuration file from a parent folder ( #3491 )"
...
This reverts commit 2f6fd1e95f .
2021-02-25 14:49:10 -05:00
Artem Garmash
4266ea9d60
Add Bool violation reporting in redundant_type_annotation ( #3438 )
...
* Add Bool violation detection
* Update Changelog
* Fix issues found by the rule
2021-02-24 14:29:08 -08:00
Frederick Pietschmann
2f6fd1e95f
Fix issue that prevented the inclusion of a configuration file from a parent folder ( #3491 )
...
* Add (currently failing) test for #3485
* [#3485 ] Add missing rootDir adjustment for included / excluded paths
* Add changelog entry
* Adjust tests for relative included / excluded paths
2021-02-23 18:19:19 -05:00
JP Simard
eca9ea4bb8
Adding Legacy ObjC Type Rule #2758 ( #3531 )
2021-02-23 12:08:01 -08:00
Otavio Cordeiro
46777539ad
Add opt-in rule private_passthrough_subject ( #3504 )
2021-02-08 10:43:27 -08:00
Otavio Cordeiro
59eb887cfa
Add opt-in rule discouraged_assert ( #3506 )
...
Co-authored-by: Keith Smiley <keithbsmiley@gmail.com >
2021-01-29 09:30:57 -08:00
JP Simard
d53fc2664d
release 0.42.0
2020-12-14 15:26:56 -05:00
JP Simard
f8bc10aaaa
Merge pull request #3460 from realm/dont-log-a-warning-if-no-configuration-files-were-explicitly-specified
...
Don't log a warning if no configuration files were explicitly specified
2020-12-11 10:02:41 -05:00
JP Simard
01b1001a81
fixup! Don't log a warning if no configuration files were explicitly specified
2020-12-11 10:02:16 -05:00
JP Simard
cb3eed544c
Add FileGraphInitializationResult to make error handling more explicit
2020-12-11 09:27:51 -05:00
JP Simard
ab700a3262
Re-add warning message if the config file was implicit and misconfigured
...
Thanks fredpi!
2020-12-10 09:37:09 -05:00