Commit Graph

21 Commits

Author SHA1 Message Date
JP Simard d269bde1fa allow trailing semicolons in comments 2015-11-17 11:41:02 -08:00
JP Simard 0a2b9e8a54 add trailing semicolon rule 2015-11-17 10:46:26 -08:00
JP Simard a45043bbaf use verifyRule to test Trailing Newline rule 2015-11-17 10:44:30 -08:00
JP Simard 0335f155ab Perform major refactor of rule description, identifiers and examples
Fixes #183.
2015-11-04 12:24:33 -08:00
JP Simard 5cb80cfd22 All rules now print their identifiers in reports. Fixes #180. 2015-11-04 10:30:36 -08:00
Alex Culeva aa1fc70c9c Add StatementPosition rule 2015-11-03 22:27:26 +02:00
Alex Culeva 5af582ca53 Add Comma rule 2015-11-03 22:05:31 +02:00
Alex Culeva 023466e843 Add OpeningBrace Rule 2015-11-03 11:06:16 +02:00
Daniel Beard 4339a281df PR comments 2015-10-07 11:16:20 -07:00
Daniel Beard 137cb6ad92 Fix tests 2015-10-07 11:15:18 -07:00
JP Simard 56fe7b0d3b Merge pull request #111 from realm/jp-comment-commands
Disable/re-enable rules from within source code comments. Fixes #4.
2015-08-31 17:03:03 -07:00
JP Simard fe5f1affc9 ViolationSeverity is now only .Warning and .Error 2015-08-30 22:21:59 -07:00
JP Simard 61d46c6c29 add tests for disabling rules via source code comments 2015-08-29 20:39:39 -07:00
JP Simard fbc253a2ab use single space in SwiftLint comment commands & fix issue with testTodoOrFIXME 2015-08-29 17:51:34 -07:00
JP Simard 29536759d1 update for Xcode 7 Beta 6 2015-08-27 14:20:51 -07:00
JP Simard e95625ee79 update for swift 2 2015-08-27 14:20:51 -07:00
Keith Smiley 65f6715915 Improve trailing newline performance
This sidesteps the previous method of reversing the entire string from
every file by only checking the minimum number of trailing characters
for each file.
2015-08-14 20:30:40 -07:00
JP Simard 90dfe362a2 [OperatorFunctionWhitespaceRule] refactored rule. Fixes #60. 2015-06-17 10:37:52 -07:00
akirahrkw fe4ef11939 change for ReturnArrowWhitespaceRule
1: uses default showExamples value (true)
2: uses default commentDoesntViolate value (true)
2015-06-04 01:47:58 +08:00
akirahrkw 87c7c5cd5d add ReturnArrowWhitespaceRule
This rule checks whether you have 1 space before return arrow and return type

Good: func abc() -> Int {}
Bad:  func abc()->Int {}
2015-06-03 16:26:21 +08:00
JP Simard f8ea553a0e [Tests] Split LinterTests into 3 files 2015-05-28 16:49:30 -07:00