Commit Graph

29 Commits

Author SHA1 Message Date
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
Marcelo Fabri 33166f8f88 Fix traling_comma when using commas in comments.
Fixes #940
2016-12-11 23:44:15 -02:00
JP Simard 0faf567931 use bridge() rather than explict or implicit casts
this is a step in aligning the code to compile on both Darwin and
Linux
2016-12-11 13:47:44 -08:00
JP Simard 19fad01b29 make all enum members lowercase to comply with Swift 3 API Guidelines 2016-12-01 22:16:21 -08:00
Norio Nomura 4aa4322991 Merge branch 'master' into swift3.0
* master:
  TrailingCommaRule only triggers when multi-line
2016-12-01 11:39:02 +09:00
Marcelo Fabri 485518faef TrailingCommaRule only triggers when multi-line
Fixes #910 and #911
2016-11-30 19:02:12 -02:00
Norio Nomura 84ca11b6aa Merge commit 'b22d1a93c93537acde79a2496031012489fe270d' into swift3.0
* commit 'b22d1a93c93537acde79a2496031012489fe270d':
  Updating CHANGELOG entry
  Updates existing code to respect TrailingCommaRule
  Add configuration to enforce/forbid trailing comma
  Fixing rebase
  Addded TrailingCommaRule
2016-11-30 19:38:31 +09:00
Marcelo Fabri 3bacc80fc7 Add configuration to enforce/forbid trailing comma 2016-11-25 23:51:25 -02:00
Marcelo Fabri 8464a71095 Addded TrailingCommaRule 2016-11-25 20:56:46 -02:00