Commit Graph

24 Commits

Author SHA1 Message Date
JP Simard c699d3d2fa Disable/re-enable rules from within source code comments. Fixes #4. 2015-08-29 17:09:28 -07:00
JP Simard 19cc87a404 Configure SwiftLint via a YAML file. Fixes #1 and #3. 2015-08-27 14:21:17 -07:00
JP Simard e95625ee79 update for swift 2 2015-08-27 14:20:51 -07:00
akirahrkw 56e2ffb95b add OperatorFunctionWhitespaceRule
#60 https://github.com/realm/SwiftLint/issues/60
2015-06-17 01:24:47 +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
Andrea Mazzini 383bd3de43 Add ControlStatementRule 2015-05-26 22:04:19 +02:00
JP Simard 8c94cc6221 renamed Linter.explainableRules to Linter.ruleExamples 2015-05-25 15:41:27 -07:00
JP Simard a68a886d3f minor tweaks 2015-05-25 15:23:21 -07:00
Chris Eidhof d84348d2d7 Remove unnecessary self 2015-05-25 14:46:14 -07:00
Chris Eidhof 20fd31672a List of all the rules 2015-05-25 14:46:13 -07:00
Chris Eidhof 89ea957b05 Changed RuleExample to be a struct 2015-05-25 14:46:13 -07:00
Chris Eidhof 1456f067c0 Only show examples when it makes sense 2015-05-25 14:46:00 -07:00
Chris Eidhof 5d4fdc4a84 Explain command showing the rules 2015-05-25 14:45:28 -07:00
Aaron Daub aac1a3282f When calling .validateFile make sure to call it on an instance of Rule 2015-05-19 07:53:32 +02:00
JP Simard 1bbeb35473 moved all style violation calls to Linter 2015-05-18 06:24:56 +02:00
JP Simard df46421f95 split Linter.swift into individual files 2015-05-18 04:33:25 +02:00
JP Simard d5914edbab Added nesting violations 2015-05-18 02:34:54 +02:00
JP Simard a4cdc2aad7 added colon violations 2015-05-17 12:53:31 +02:00
JP Simard 3efbfadce5 Added TODO and FIXME violations 2015-05-17 12:17:55 +02:00
JP Simard 83a291841d generalized matchPattern(_:withSyntaxKinds:) 2015-05-17 12:06:44 +02:00
JP Simard 135fb4cf13 added function body length violation 2015-05-17 11:35:07 +02:00
JP Simard 7bbfa99e07 added type body length violation 2015-05-17 11:26:38 +02:00
JP Simard 036087ada3 added variable name validation 2015-05-17 11:02:08 +02:00
JP Simard 767add47e8 First commit 2015-05-16 18:58:10 +02:00