Angel Garcia
6161c9b001
Renamed rule and configuration to OverridenSuperCall
2016-10-20 09:44:18 +02:00
Marcelo Fabri
a1096e8ee2
Adding ValidIBInspectableRule rule
...
Fixes #756
2016-10-20 03:21:46 -02:00
Angel Garcia
aec1679a5d
Merge remote-tracking branch 'refs/remotes/realm/master' into feature/super_rule
2016-10-19 11:23:35 +02:00
Norio Nomura
47cf2db7a2
Merge branch 'master' into swift3.0
...
* master:
Using character based init
PR feedback
Handling pattern matching cases (if case, for case, etc)
Addressing PR feedback
Add SwitchCaseOnNewline rule
Adding CHANGELOG entry
Validates if "return" in ConditionalReturnsOnNewline is a keyword
Stop `make` if working tree does not have git repository
# Conflicts:
# Source/SwiftLintFramework/Rules/ConditionalReturnsOnNewline.swift
2016-10-18 19:34:43 +09:00
Marcelo Fabri
8d0f344747
Add SwitchCaseOnNewline rule
...
This fixes https://github.com/realm/SwiftLint/issues/681
2016-10-16 02:39:06 -02:00
Norio Nomura
ec3f9d0c94
Fix line_length style violations, unused warnings
2016-10-13 22:40:45 +09:00
Norio Nomura
8bf15f1dba
Migrate to Swift 3.0
2016-10-09 01:09:50 +09:00
Angel Garcia
6b5d2df338
Added first implementation for super call check
2016-09-04 21:04:03 +02:00
J Cheyo Jimenez
8bed233282
added closure-spacing-rule
2016-09-03 21:10:33 -07:00
dbeard
4cb44013eb
Add redundant nil coalesing operator rule
2016-08-24 15:25:26 -07:00
JP Simard
431758a82c
Merge pull request #760 from cfilipov/cfilipov/fix_absolute_path
...
Use path arg as root for include/exclude paths
2016-08-23 11:59:30 -07:00
Cristian Filipov
caa6d5eb61
Merge remote-tracking branch 'upstream/master' into cfilipov/add_private_unit_test_rule
2016-08-22 23:32:05 -07:00
Cristian Filipov
ed192f35bd
Fix long lines and unit test
2016-08-22 23:17:50 -07:00
JP Simard
f737e734fd
Merge pull request #768 from realm/mark_rule
...
Mark rule
2016-08-22 14:14:56 -07:00
JP Simard
98d03753b5
Merge pull request #747 from masters3d/aug6th2016
...
[new rule] VerticalWhitespace rule
2016-08-22 13:55:48 -07:00
Krzysztof Rodak
af0add6a22
- Adding new MarkRule
...
- Adding test for new `MarkRule`
- Adding contribution to `CHANGELOG` file
- Adding new `MarkRule` to list of all rules in `MasterRuleList`
2016-08-22 13:33:37 -07:00
J Cheyo Jimenez
854d1e6714
[new rule] VerticalWhitespace rule
2016-08-22 11:00:40 -07:00
Cristian Filipov
c2a58a574a
Merge remote-tracking branch 'upstream/master' into cfilipov/fix_absolute_path
2016-08-21 23:21:39 -07:00
Cristian Filipov
e543b54a17
Update CHANGELOG & code spacing
2016-08-21 23:15:01 -07:00
Cristian Filipov
66c2303a92
Merge remote-tracking branch 'upstream/master' into cfilipov/add_private_unit_test_rule
2016-08-21 23:09:16 -07:00
rohan
050ccd1797
Alphabetize rule, changing to configuration provider rule
2016-08-21 21:12:21 -07:00
HaloZero
37b4583121
Changing guard to conditional rule
2016-08-21 21:12:03 -07:00
rohan
c79cd5c5a5
Adding new rule: Guard Returns on Newline
2016-08-21 21:12:03 -07:00
JP Simard
7bb369b92f
minor tweaks after merging #757
2016-08-21 16:37:22 -07:00
JP Simard
2725e577f8
Merge pull request #757 from woodhamgh/changingToUseConfiguration
...
Warning threshold rule
2016-08-21 16:34:49 -07:00
George Woodham
8ce4af6f54
Changes after PR feedback. Removed ?? nil as this does nothing. Removed some redundant conditional
2016-08-22 11:21:29 +12:00
JP Simard
49ef19d1b2
address minor issues from #754
2016-08-21 14:57:12 -07:00
Cristian Filipov
ea592e0e98
Add rule to check for private unit tests
2016-08-18 17:17:03 -07:00
Cristian Filipov
27aa8e3383
Use path arg as root for include/exclude paths
2016-08-18 16:44:21 -07:00
George Woodham
6b9bb2e98d
Added function to create an error when the threshold has been broken
2016-08-15 10:47:29 +12:00
Olivier Halligon
17dd91960b
[New Rule] private_outlet
2016-08-12 02:52:23 +02:00
J Cheyo Jimenez
a177bfab13
Removed ConditionalBindingCascadeRule
...
closes #701
2016-08-02 14:43:51 -07:00
David Rönnqvist
340ec61257
Add rule for legacy Cocoa geometry functions
...
This mirrors the Legacy CGGeometry rule, but for NSWidth, NSHeight, …, NSInsetRect, NSOffsetRect, …, NSPointInRect, etc.
2016-08-02 08:28:33 +02:00
George Woodham
4a3987a9b4
Using configuration parameter instead of new rule
2016-07-19 16:35:40 +12:00
JP Simard
c66c5c8df0
formatting fixes
...
found running `swiftlint autocorrect --format`
2016-05-29 14:58:28 -07:00
Brian Hardy
5c1d40ca87
Updates whitespace to avoid line length violation.
...
The shame, oh the shame.
2016-05-02 00:23:49 -04:00
Brian Hardy
88c0c8ba8e
Improves error messaging for Configuration, particularly with YAML parsing.
2016-05-02 00:05:57 -04:00
Blaise Sarr
3e91e27843
Enable rule
2016-04-17 14:56:03 +02:00
Norio Nomura
9c0a2492e8
Refactor ASTRule and add SourceKitFreeRule
...
- Make `ASTRule` to generic and remove `ASTBaseRule`
- Add `SourceKitFreeRule` and remove `RuleDescription.needsSourceKit`
2016-04-16 22:32:53 +09:00
Norio Nomura
ad50e35c4e
Add ASTBaseRule
...
`ASTBaseRule` takes kind as `String` for supporting other than `SwiftDeclarationKind`.
`ASTRule` inherits `ASTBaseRule`.
2016-04-16 08:30:00 +09:00
Norio Nomura
5cc6d3243a
On SourceKitd failed, continue linting the file by limited rules that does not use SourceKitd
...
Add `RuleDescription.needsSourceKit` indicating the rule needs SourceKit.
If `ASTRule` or `needsSourceKit` is true, skip linting if SourceKitd fails.
2016-04-13 18:40:25 +09:00
Norio Nomura
1716c6e108
Did not pass the IntegrationTests
2016-02-13 13:14:41 +09:00
Norio Nomura
f9fc51bb57
Fix nested config traversing did not stop on root path
2016-02-13 13:08:58 +09:00
JP Simard
79d796817c
deprecate use_nested_configs: always consider nested configuration files
2016-02-12 10:55:20 -08:00
JP Simard
7e07e813ca
rename RuleConfig to RuleConfiguration
2016-02-12 10:53:36 -08:00
JP Simard
d9cd1d670a
rename Rule.init(config:) to Rule.init(configuration:)
2016-02-12 10:53:36 -08:00
JP Simard
048c5dda84
expand "config" to "configuration" in Configuration.swift
...
with an exception being made for the "use_nested_configs" configuration key,
since that's already long enough as it is
2016-02-12 10:53:36 -08:00
JP Simard
24e3adc355
make Configuration.configPath public
2016-02-10 17:26:06 -08:00
JP Simard
1af80bcc31
remove Configuration.disabledRules
2016-02-10 17:26:06 -08:00
JP Simard
1866edae77
adjust access control levels for many APIs in SwiftLintFramework
...
this is done in an effort to stabilize the API for SwiftLint 1.0.
2016-02-10 17:26:06 -08:00