Commit Graph

165 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 524bee7931 Merge pull request #107 from jakecraige/jc-document-rules
Document rule identifiers in README
2015-08-28 16:41:25 -07:00
Jake Craige 350b8c83a3 Document rule identifiers in README
Include names of all defined rules.
2015-08-28 16:40:30 -07:00
JP Simard bb27fb74a9 Merge pull request #105 from realm/jp-private-names-underscore
Allow private variable/type names to start with an underscore
2015-08-28 14:42:29 -07:00
JP Simard 26627fa1b2 [TypeNameRule][VariableNameRule] allow private names to start with an underscore 2015-08-28 14:22:32 -07:00
JP Simard 27d8a5dd4e Merge pull request #98 from realm/swift-2.0
Swift 2.0
2015-08-28 13:19:41 -07:00
JP Simard 9a65c5bdb8 extra space 2015-08-28 13:17:16 -07:00
JP Simard 7b9ac810a8 [CHANGELOG] added Swift 2 entry 2015-08-28 13:11:26 -07:00
JP Simard 3ac2fa2ce6 behrang/YamlSwift 2015-08-28 12:47:36 -07:00
JP Simard 20d9db9276 Merge pull request #99 from realm/yaml
Configure SwiftLint via a YAML file
2015-08-27 19:32:47 -07:00
JP Simard 57a8abb514 update for Xcode 7 Beta 6 2015-08-27 14:21:17 -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 f7891827e4 added YamlSwift dependency 2015-08-27 14:21:17 -07:00
JP Simard 66943c11fd update travis to Xcode 7 2015-08-27 14:20:51 -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
JP Simard 8835dbfff8 Merge pull request #103 from goktugyil/patch-1
Update README.md
2015-08-26 10:19:51 -07:00
Goktug Yilmaz f33232f1f6 Update README.md 2015-08-26 17:53:06 +03:00
JP Simard 4c91500e7b Release 0.1.2 0.1.2 2015-08-24 13:19:25 -07:00
JP Simard aa958b5d2a update SourceKitten to 0.4.5 2015-08-24 13:17:02 -07:00
JP Simard 2a05168a82 Merge pull request #97 from keith/ks-switch-parens
Lint parentheses around switch statements
2015-08-24 12:16:24 -07:00
Keith Smiley 3f9786a22d Lint parentheses around switch statements 2015-08-24 11:24:51 -07:00
JP Simard e7b7bf349a fix style violation (failing test) 2015-08-23 22:17:02 -07:00
JP Simard 9e417aeab9 Merge pull request #91 from keith/ks-test-only-active-rule
Only validate examples produce their own violations
2015-08-23 22:13:27 -07:00
JP Simard 6d303d8f4d added missing period in changelog 2015-08-23 13:04:16 -07:00
JP Simard 15e361c850 Merge pull request #94 from keith/ks-newline-performance
Improve trailing newline performance
2015-08-23 10:58:28 -07:00
Keith Smiley a342b1d7d9 Update CHANGELOG 2015-08-17 22:14:26 -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
Keith Smiley fdd814c64f Only validate examples produce their own violations
When adding new general rules, examples from other rules could violate
your new rule. Since we're already testing rules practically through the
integration tests we should only validate that examples produce the
expected violation types.
2015-08-11 15:37:09 -07:00
JP Simard 047922610b Merge pull request #83 from realm/jp-operator-whitespace
Use whitespace around operator definitions.
2015-06-17 10:44:40 -07:00
JP Simard 90dfe362a2 [OperatorFunctionWhitespaceRule] refactored rule. Fixes #60. 2015-06-17 10:37:52 -07:00
akirahrkw 752d970bc9 fix:
remove <String.Index> because Range infers
use trailing closure syntax
2015-06-17 17:54:39 +08:00
akirahrkw a2e0f2a06d remove parameter(showExample) to use default value 2015-06-17 02:16:35 +08:00
akirahrkw 4d0b34012e cleanup: remove unused variable 2015-06-17 02:11:44 +08:00
akirahrkw 10b9ce7fb9 Revert "remove unused variable"
This reverts commit f799880259.
2015-06-17 02:07:07 +08:00
akirahrkw f799880259 remove unused variable 2015-06-17 01:48:04 +08:00
akirahrkw ff51c8aaa3 add OperatorFunctionWhitespaceRule on CHANGELOG.md 2015-06-17 01:30:16 +08:00
akirahrkw edcfe8575d Merge remote-tracking branch 'upstream/master' into rule/operator-whitespace 2015-06-17 01:26:40 +08:00
akirahrkw 32edb24ce8 fix to follow issue #60 rule 2015-06-17 01:25:43 +08:00
akirahrkw 56e2ffb95b add OperatorFunctionWhitespaceRule
#60 https://github.com/realm/SwiftLint/issues/60
2015-06-17 01:24:47 +08:00
JP Simard e9e284c726 Merge pull request #79 from realm/jp-use-stdin
[CLI] Support linting from standard input
2015-06-11 21:19:15 -07:00
JP Simard 35ca4dc4b4 [CLI] fixed violations 2015-06-11 21:10:59 -07:00
JP Simard 0f28deeac6 [CLI] Support linting from standard input 2015-06-11 21:03:40 -07:00
JP Simard 3bb6e7c6a8 [ReturnArrowWhitespaceRule] small post-merge tweaks 2015-06-03 11:16:16 -07:00
JP Simard 22bc3cf743 Merge pull request #75 from akirahrkw/rule/return-arrow-whitespace
add ReturnArrowWhitespaceRule
2015-06-03 11:15:34 -07:00
akirahrkw 490e66d193 add an entry for ReturnArrowWhitespaceRule in CHANGELOG.md 2015-06-04 01:53:06 +08:00
akirahrkw 1be434af3c Merge remote-tracking branch 'upstream/master' into rule/return-arrow-whitespace 2015-06-04 01:49:39 +08: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
JP Simard 5990246399 [CHANGELOG] added empty "master" section 2015-06-03 10:43:57 -07: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