JP Simard
eef5e7cf74
Merge pull request #106 from realm/jp-configure-parameterized-rules
...
[Configuration] allow configuring parameterized rules from the configuration file
2015-09-30 09:51:09 -07:00
JP Simard
51dd2481ca
keep it functional, yo!
2015-09-30 09:44:12 -07:00
JP Simard
25017c4ea4
[Configuration] allow configuring parameterized rules from the configuration file
2015-09-21 11:08:29 -07:00
JP Simard
3c090e101f
Merge pull request #133 from realm/jp-custom-reporters
...
added custom reporters: xcode (default), json, csv. fixes #42
2015-09-20 00:09:00 +02:00
JP Simard
1bec2bcb23
use XcodeReporter for StyleViolation's description
2015-09-20 00:01:36 +02:00
JP Simard
f8e226d14b
Merge pull request #128 from realm/jp-generalize-todo-rule
...
Generalize TodoRule
2015-09-19 23:54:09 +02:00
JP Simard
ee79209db8
added custom reporters: xcode (default), json, csv. fixes #42
2015-09-19 17:48:32 +02:00
JP Simard
75f4122f63
generalize TodoRule
2015-09-04 13:57:16 -07:00
JP Simard
3f3c6e550f
further generalized TodoRule
2015-09-04 13:46:57 -07:00
JP Simard
e947f58669
Generalize TodoRule
...
as prompted by my own recommendations... doh! https://github.com/realm/SwiftLint/pull/126#issuecomment-137846688
2015-09-04 13:46:57 -07:00
JP Simard
d2496d87d7
Merge pull request #127 from realm/ks-first-region
...
Remove unnecessary firstRegion property
2015-09-04 13:44:28 -07:00
Keith Smiley
33aa47e117
Remove unnecessary first Region
2015-09-04 13:30:57 -07:00
JP Simard
b932cd2b24
Merge pull request #122 from realm/jp-allow-newline-return-arrow
...
Allow newlines in function return arrow
2015-09-03 16:39:03 -07:00
JP Simard
f3a7eff1a0
don't use `\h` in regex
2015-09-03 16:29:23 -07:00
JP Simard
7dd5ee1b15
Allow newlines in function return arrow. This prevented SwiftLint from linting
2015-09-03 15:23:21 -07:00
JP Simard
e07a9aadf3
Merge pull request #121 from realm/ks-trailing-whitespace-performance
...
Optimize trailing whitespace rule
2015-09-03 15:11:38 -07:00
Keith Smiley
469e3f1343
Update CHANGELOG
2015-09-03 13:41:59 -07:00
Keith Smiley
1b2373c40c
Remove unused count of trailing string extension
...
This method isn't very performant because it reverses the entire string
for comparison.
2015-09-03 13:41:58 -07:00
Keith Smiley
7a6028f1dd
Optimize trailing whitespace rule
...
This updates the rule to no longer reverse each line in each file.
Instead the last character in each line is individually checked for
whitespace.
2015-09-03 13:41:58 -07:00
JP Simard
37bf7b84af
Merge pull request #117 from realm/ks-file-lines
...
Update for SourceKitten File lines
2015-09-03 12:00:04 -07:00
Keith Smiley
e6135062f8
Update SourceKitten for immutable lines
2015-09-03 11:50:50 -07:00
Keith Smiley
d12f9cc271
Move to SourceKitten's File lines
...
The new lines property on File is a cached version of the same lines.
This means we don't have to compute these multiple times during linting.
2015-09-03 11:50:50 -07:00
JP Simard
e1e1f767f2
Merge pull request #119 from realm/ks-violations-stderr
...
Print violations to stderr
2015-09-03 10:58:32 -07:00
Keith Smiley
324053d217
Print violations to stderr
2015-09-03 10:51:26 -07:00
JP Simard
9cca3c1a37
Merge pull request #118 from realm/ks-strict-lint
...
Add strict linting flag
2015-09-03 08:04:13 -07:00
Keith Smiley
6693673b7a
Add strict linting flag
...
This flag makes SwiftLint exit with 1 even if there are only warnings.
This is useful for CI to make sure that nothing was introduced in the
current build.
2015-09-02 17:21:25 -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
86a0e505a1
Merge pull request #115 from daniel-beard/dbeard_fix_readme_rule_name
...
Update README .swiftlint.yml to use correct 'trailing_newline' rule identifier
2015-08-31 11:18:16 -07:00
Daniel Beard
0d948a353e
Update example .swiftlint.yml to use correct 'trailing_newline' rule name
2015-08-31 11:09:09 -07:00
JP Simard
24de24c217
Merge pull request #114 from realm/severity-warning-error
...
ViolationSeverity is now only `.Warning` and `.Error`
2015-08-31 10:49:59 -07:00
JP Simard
00bcfc2449
clarify that submodules are needed to install
...
Fixes #112 .
2015-08-31 07:54:10 -07:00
JP Simard
fe5f1affc9
ViolationSeverity is now only `.Warning` and `.Error`
2015-08-30 22:21:59 -07:00
JP Simard
7d85fe3261
converted Command/Region to structs and made Location Comparable
2015-08-29 21:45:55 -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
71d9d57c80
'.+' not '.*' to match rule identifier
2015-08-29 17:39:21 -07:00
JP Simard
c10830e959
only match swiftlint commands in comments and match any rule identifier (oops)
2015-08-29 17:38:04 -07:00
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