Commit Graph

58 Commits

Author SHA1 Message Date
JP Simard e89e56b99a Fix TrailingCommaRuleTests for Swift < 4.1 2018-05-06 13:11:17 -07:00
JP Simard 2eed8d469d Apply Marcelo Fabri's patch 2018-05-06 10:33:33 -07:00
John Szumski d8283a40ef Added new trigger for trailing_comma. 2018-05-06 10:33:33 -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
Norio Nomura 2a0ac455bc 'flatMap' is deprecated: renamed to 'compactMap(_:)' 2018-04-08 13:28:09 +09:00
Marcelo Fabri 0be8c855d2 Move functions to properties and Sets instead of Arrays 2017-10-04 14:34:00 -07:00
Marcelo Fabri e86763739f Move kind to RuleDescription 2017-07-02 15:50:16 +02:00
Marcelo Fabri 5012211d3d Add RuleKind 2017-07-02 15:50:16 +02:00
Marcelo Fabri fd231b607d Fix existing violations 2017-06-13 16:12:58 +02:00
JP Simard 51833fe1a1 avoid over-bridging 2017-05-25 11:34:55 -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
Marcelo Fabri 32e38c96cf Add kinds(inByteRange:) 2017-05-25 04:55:47 +02:00
Jeremy David Giesbrecht d12b15f93d Final optimizations. 2017-03-28 23:46:09 -06:00
Jeremy David Giesbrecht efae41de9c More re‐optimizing. 2017-03-28 23:42:30 -06:00
Jeremy David Giesbrecht b36aca33fb Try re‐optimizing. 2017-03-28 23:24:36 -06: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 9a69a6ddc0 More CI debugging... 2017-03-28 22:02:20 -06:00
Jeremy David Giesbrecht b9918521c8 Find out where CI is crashing. 2017-03-28 18:44:17 -06:00
Jeremy David Giesbrecht d884008199 Removed indents from empty lines. 2017-03-28 18:06:20 -06:00
Jeremy David Giesbrecht 66dbd66b06 Fixed index selection. 2017-03-28 17:58:34 -06:00
Jeremy David Giesbrecht e5896af83e Fixed range type. 2017-03-28 17:49:35 -06:00
Jeremy David Giesbrecht f26dd15a81 Switch back to the inefficient way for Linux. 2017-03-28 17:40:47 -06:00
Jeremy David Giesbrecht 1d6ca3e831 Oh the things you do just to make Linux happy... 2017-03-28 15:14:50 -06:00
Jeremy David Giesbrecht 260d01528d Bridged NSStrings instead of NSMutableStrings. 2017-03-28 14:45:41 -06:00
Samuel Susla 5c1336c81b Fix build on linux 2017-03-28 09:02:25 +01:00
Jeremy David Giesbrecht 6213ee8d53 Simplified offset conversions. 2017-03-25 16:21:30 -06:00
Samuel Susla 3d0948330b calculate corrected violation indexes before calling ruleEnabled 2017-03-25 11:00:17 +00:00
Samuel Susla 4f1cb5f2b7 add new test case 2017-03-25 10:59:02 +00:00
Samuel Susla abd5dd781a use sourceKitten to convert indices 2017-03-25 09:38:06 +00:00
Samuel Susla 6fb7275642 use shorter syntax 2017-03-21 23:01:16 +01:00
Samuel Susla eb75ff52e4 add tests for mandatoryComma 2017-03-21 10:45:35 +01:00
Samuel Susla edf4e8cc4d take unicode characters into account 2017-03-21 10:09:56 +01:00
Samuel Susla 5386722ca8 add corrections to rule description 2017-03-18 11:39:47 +01:00
Samuel Susla bde2307141 add autocorrect support for mandatory comma 2017-03-01 09:03:55 +01:00
Samuel Susla 29359bbad5 add trailing comma autocorrect 2017-02-26 21:57:27 +01:00
Marcelo Fabri f90b25e2e1 Refactor elements to not be optional 2017-02-09 17:59:31 -08:00
JP Simard 29cdc86185 add some convenience members to SourceKit dictionaries 2017-01-22 11:00:57 -08:00
JP Simard 7522635ad8 update SwiftLintFramework/Rules to follow Swift 3 API Design Guidelines 2017-01-09 19:37:53 -08:00
JP Simard 9e7cdc3282 update SwiftLintFramework/Protocols to follow Swift 3 API Design Guidelines 2017-01-09 19:19:25 -08:00
JP Simard a291bb594a update SwiftLintFramework/Extensions to follow Swift 3 API Design Guidelines 2017-01-09 17:53:07 -08:00
Marcelo Fabri 50535e7e5c Refactor regex functions to accept options
Fixes #1127
2017-01-06 21:04:15 -02:00
Marcelo Fabri 1a9d2ef7e6 Fix trailing_comma crash
Fixes #921
2017-01-01 01:14:19 -02:00
Matt Rubin a4944b9b41 Unwrap an unnecessarily-wrapped line in TrailingCommaRule 2016-12-22 23:13:59 -05:00
Matt Rubin 96a1d4b4e3 Add more helpful reason strings to TrailingCommaRule 2016-12-22 17:24:02 -05:00
Marcelo Fabri 5359582782 Refactoring SwiftExpressionKind 2016-12-12 22:27:46 -02:00
JP Simard 396dcb2e99 prefer passing function to filter 2016-12-12 13:59:47 -08:00
Marcelo Fabri b1812b4eb1 Using .bridge() 2016-12-11 23:45:33 -02:00
Marcelo Fabri 0a03476745 PR feedback 2016-12-11 23:44:15 -02:00