Commit Graph
36 Commits
Author SHA1 Message Date
JP SimardandGitHub 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 e64e82d80d Get rid of periods finishing rule descriptions 2023-01-10 22:29:13 +01:00
JP SimardandGitHub 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
Marcelo FabriandGitHub 844b7c02dd Rewrite trailing_comma rule with SwiftSyntax (#4385) 2022-10-16 23:36:11 -07:00
Danny MöschandGitHub c1b74cd752 Rename test classes (#4083) 2022-08-11 07:33:11 +02:00
Danny MöschandGitHub cdb87e3869 Verify all examples provided in rule descriptions (#4061) 2022-08-04 23:06:37 +02:00
Marcelo FabriandGitHub 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
Zev EisenbergandGitHub 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
JP Simard 0e862ca9c4 Enable vertical whitespace rules in SwiftLint
and fix violations
2018-12-02 14:01:23 -08:00
JP SimardandGitHub 6799b06f1b Refactor TestHelpers (#2378) 2018-09-01 13:52:02 -07:00
JP Simard e89e56b99a Fix TrailingCommaRuleTests for Swift < 4.1 2018-05-06 13:11:17 -07:00
JP Simard b83e0991b9 Remove all file headers
The MIT license doesn't require that all files be prepended with this
licensing or copyright information. Realm confirmed that they're ok with this
change. This will enable some companies to contribute to SwiftLint and the
date & authorship information will remain accessible via git source control.
2018-05-04 13:42:02 -07:00
Marcelo Fabri aa88d5a707 Fix existing violations 2017-10-02 02:09:53 -03:00
Marcelo Fabri 63e95a22c5 Refactoring tests that create RuleDescriptions 2017-07-02 17:10:26 +02:00
Marcelo FabriandMarcelo Fabri e86763739f Move kind to RuleDescription 2017-07-02 15:50:16 +02:00
JP Simard 25a92c4e03 automatically generate LinuxMain.swift using Sourcery
This adds 6 tests that were accidentally not being run on Linux:

* LineLengthConfigurationTests.testLineLengthConfigurationInitialiserSetsIgnoresComments
* LineLengthConfigurationTests.testLineLengthConfigurationInitialiserSetsIgnoresFunctionDeclarations
* LineLengthConfigurationTests.testLineLengthConfigurationThrowsOnBadConfigValues
* LineLengthRuleTests.testLineLengthWithIgnoreCommentsEnabled
* LineLengthRuleTests.testLineLengthWithIgnoreFunctionDeclarationsEnabled
* RegionTests.testSeveralRegionsFromSeveralCommands
2017-06-02 14:28:37 -07:00
JP Simard 99d13d14a3 remove workaround for SR-3448/SR-3449
as they were fixed in the 3.1 release
2017-05-25 07:58:04 -07:00
JP Simard 3968b01bb6 update tests to reflect unicode fixes in SourceKitten 2017-05-19 14:10:24 -07:00
Jeremy David Giesbrecht 433b8e9ba0 Fixed return lines. 2017-03-28 23:12:21 -06:00
Jeremy David Giesbrecht abf2a7218f Fixed types. 2017-03-28 23:06:42 -06:00
Jeremy David Giesbrecht fec56475e7 Applied workaround for underlying Linux bug. 2017-03-28 22:53:03 -06:00
Jeremy David Giesbrecht ff545575ee More CI debugging... 2017-03-28 22:38:20 -06:00
Jeremy David Giesbrecht 43e97e50da More CI debugging... 2017-03-28 22:28:12 -06:00
Jeremy David Giesbrecht 0182ab0900 More CI debugging..a 2017-03-28 22:16:44 -06:00
Jeremy David Giesbrecht 9a69a6ddc0 More CI debugging... 2017-03-28 22:02:20 -06:00
Jeremy David Giesbrecht 424c0f9ebb More CI debugging. 2017-03-28 21:51:06 -06:00
Jeremy David Giesbrecht 68203c8251 More CI debugging... 2017-03-28 21:29:39 -06:00
Jeremy David Giesbrecht 332c14761b More CI debugging. 2017-03-28 20:39:41 -06:00
Jeremy David Giesbrecht 0939857b71 More CI debugging... 2017-03-28 20:24:52 -06:00
Jeremy David Giesbrecht 8b3595f450 More CI debugging. 2017-03-28 19:02:40 -06:00
Jeremy David Giesbrecht 0a1572975f Satisfied style checks. 2017-03-25 17:39:05 -06:00
Jeremy David Giesbrecht 6213ee8d53 Simplified offset conversions. 2017-03-25 16:21:30 -06:00
Samuel Susla eb75ff52e4 add tests for mandatoryComma 2017-03-21 10:45:35 +01:00
Matt Rubin 27514d73bf Amend TrailingCommaRuleTests to ensure the reason strings are correct 2016-12-22 18:02:58 -05:00
Matt Rubin 34c79cd51d Move TrailingCommaRule tests to a dedicated XCTestCase 2016-12-22 17:40:42 -05:00