Commit Graph
16 Commits
Author SHA1 Message Date
Martin Redington 7623f1e730 Enable more rules in SwiftLint's own .swiftlint.yml (#5532) 2024-04-27 18:43:08 +02:00
JP Simard a7bc9e20c7 Move built-in rules to new SwiftLintBuiltInRules module (#4950) 2023-04-27 11:16:01 -04:00
JP Simard 4c04cdafa7 Introduce SwiftLintTestCase
To consistently set up rules before tests
2023-04-25 12:28:50 -04:00
Danny Mösch 16e2bb0f18 Extend xct_specific_matcher rule to check for boolean asserts on (un)equal comparisons (#3858) 2023-04-02 12:30:21 +02:00
Danny Mösch e64e82d80d Get rid of periods finishing rule descriptions 2023-01-10 22:29:13 +01:00
JP Simard 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 c1b74cd752 Rename test classes (#4083) 2022-08-11 07:33:11 +02:00
Danny Mösch d730e0b3fa Let all example verification tests be generated by Sourcery (#4076) 2022-08-10 22:49:28 +02:00
Zev Eisenberg fcf848608e Add Inline test failure messages (#3040)
* Add Example wrapper in order to display test failures inline when running in Xcode.
* Stop using Swift 5.1-only features so we can compile on Xcode 10.2.
* Wrap strings in Example.
* Add Changelog entry.
* Wrap all examples in Example struct.
* Better and more complete capturing of line numbers.
* Fix broken test.
* Better test traceability.
* Address or disable linting warnings.
* Add documentation comments.
* Disable linter for a few cases.
* Limit mutability and add copy-and-mutate utility functions.
* Limit scope of mutability.
2020-02-02 10:35:37 +02:00
Marcelo Fabri e6ee8f7145 Fix violations after rebase 2018-12-24 01:04:25 -08:00
Ornithologist Coder 13d51e7b4c Rebase and remove file headers 2018-12-24 01:01:12 -08:00
Ornithologist Coder 488488ef0d Prepare for SR-5717 apple/swift#11542 2018-12-24 01:01:11 -08:00
Ornithologist Coder e37baf106c Handles optinals when argument is true/false 2018-12-24 01:01:11 -08:00
Ornithologist Coder 237c7eeef1 Rebases and remove duplicate tests 2018-12-24 01:01:11 -08:00
Ornithologist Coder e497f63fe0 Adds additional tests for the reasons 2018-12-24 01:01:11 -08:00
Ornithologist Coder 6d60d03fca Moves tests to its own file 2018-12-24 01:01:11 -08:00