JP Simard
8c4bfcc58d
Merge branch 'master' into identifier-rule
...
* master: (44 commits)
make valid_docs rule opt-in
update LineLengthConfiguration.consoleDescription after #1264
small refactoring after #1264
fix for_where violation in CompilerProtocolInitRule.swift
Add for_where rule
explicitly set podspec dependency versions
Add changelog entry
Fix existing violations
Navigate substructure even for different kinds
Small style changes
Modified so that kinds(forByteOffset:) does not require a separate filter() setup of the results
Changes from PR feedback. Long comments following code in a line will now trigger, configuration will now fail if invalud value types are set for options
Fix false positive on large_tuple when using generics inside a tuple
fix wording in changelog
disable docs rules in Swift 2.3 and later
Fix deadlock when stderr fills up OS buffer
small Danger/oss-check improvements
Fix links
Fix cleanup
Always use Xcode reporter on oss-check
...
2017-02-09 15:50:06 -08:00
JP Simard
69f885cf08
small refactoring after #1264
2017-02-09 14:42:09 -08:00
Marcelo Fabri
2300ae3daf
Small style changes
2017-02-06 21:59:30 -02:00
Michael Welles
15a7a88297
Modified so that kinds(forByteOffset:) does not require a separate
...
filter() setup of the results
2017-02-06 15:58:45 -05:00
Michael Welles
7d48153d4a
fixed merge conflicts
2017-02-06 15:38:19 -05:00
Michael Welles
c9ff0aa07f
Changes from PR feedback. Long comments following code in a line will now trigger, configuration will now fail if invalud value types are set for options
2017-02-06 15:33:44 -05:00
JP Simard
a01cb69a83
disable docs rules in Swift 2.3 and later
2017-02-03 14:42:11 -08:00
Michael Welles
cd843e7fcd
Added "ignores_comments" and "ignores_function_declarations" as boolean options to LineLengthRule
2017-01-30 17:51:56 -05:00
Marcelo Fabri
8715b913de
PR feedback
2017-01-23 21:38:56 -02:00
Marcelo Fabri
44c55f4bde
VariableNameRule is now IdentifierNameRule
2017-01-23 21:38:56 -02:00
JP Simard
29cdc86185
add some convenience members to SourceKit dictionaries
2017-01-22 11:00:57 -08:00
Marcelo Fabri
e6155ea76e
Fix excluded configuration not excluding files.
...
Fixes #1166
2017-01-12 00:36:59 -02:00
JP Simard
92c5a11303
Merge pull request #1119 from rakaramos/master
...
Add Unused optional binding rule
2017-01-10 14:19:05 -08:00
rakaramos
23a0d53424
Merge branch 'master' of github.com:realm/SwiftLint
2017-01-10 10:12:28 -02:00
JP Simard
9a0bd3afc2
move extractCallsToSuper to Dictionary extension
2017-01-09 20:24:46 -08:00
JP Simard
a291bb594a
update SwiftLintFramework/Extensions to follow Swift 3 API Design Guidelines
2017-01-09 17:53:07 -08:00
rakaramos
147bfd6d5b
Use range parameter if exists
2017-01-09 13:14:21 -02:00
Rafael Machado
14ea8a22d5
Add range to avoid whole file lookup
2017-01-07 16:28:04 -02:00
Marcelo Fabri
50535e7e5c
Refactor regex functions to accept options
...
Fixes #1127
2017-01-06 21:04:15 -02:00
JP Simard
1c0e0b7b61
use NSString.isSwiftFile() instead of hasSuffix(".swift")
2017-01-05 20:43:04 -08:00
JP Simard
43a56ffa85
use FileManager.DirectoryEnumerator to implement filesToLintAtPath(...)
2017-01-05 18:08:29 -08:00
Marcelo Fabri
d9eda655bf
PR feedback
2017-01-02 17:49:54 -02:00
JP Simard
8906da640c
perform Cache factory while locked
2017-01-02 09:52:01 -08:00
JP Simard
53d0cf6975
fix incorrect flatMap usage to use map instead
2017-01-02 09:47:48 -08:00
JP Simard
8774a921a6
use DispatchQueue.concurrentPerform rather than rolling our own
...
also remove parallelForEach from SwiftLintFramework's public interface
since calling the GCD API is almost as concise and avoids polluting the
public API.
Finally, also remove the "fast" path for parallelMap since GCD should
do the reasonable thing for us here.
2016-12-31 17:06:02 -08:00
JP Simard
28813fce08
extend Array with parallelMap, parallelFlatMap and parallelForEach
2016-12-30 23:08:23 -08:00
JP Simard
8a4671ecc5
make Cache thread-safe
...
and make some of its members private instead of fileprivate
2016-12-30 23:07:47 -08:00
JP Simard
da555b8a3b
minor spacing fixes
2016-12-30 18:21:11 -08:00
JP Simard
a50a0bee06
move array(of:) into other unconstrained Array extension
2016-12-30 18:21:11 -08:00
Marcelo Fabri
8c1532691d
Make object_literal rule work with Swift 2.3
2016-12-30 17:57:30 -02:00
Marcelo Fabri
7056434992
Add object_literal rule
...
Fixes #1060
2016-12-30 17:57:30 -02:00
Marcelo Fabri
aea1fd3538
Fix false positives on closure rules with Swift 2.3
...
Fixes #1019
2016-12-29 18:18:06 -02:00
Marcelo Fabri
d6a15f7341
PR feedback
2016-12-26 13:34:50 -02:00
Marcelo Fabri
c43f808cfc
Re-enable ConfigurationTests.testExcludedPaths
2016-12-26 13:32:13 -02:00
Marcelo Fabri
9d64a22426
Re-enable testVariableName and testTypeName on Linux
2016-12-26 13:32:13 -02:00
Marcelo Fabri
c6ac9b919c
Add redundant_void_return rule
...
Fixes #1066
2016-12-26 01:01:04 -02:00
JP Simard
8ce031ff5f
add substructure member to Dictionary+SwiftLint.swift
2016-12-23 12:35:01 -08:00
Marcelo Fabri
47c6ae5c2f
Check if protocol inherits from another Delegate
2016-12-23 16:34:03 -02:00
Marcelo Fabri
608a2725c8
Add class_delegate_protocol rule
...
Fixes #1039
2016-12-23 02:37:44 -02:00
Marcelo Fabri
b18c98084c
Fix existing violations
2016-12-22 11:57:06 -02:00
Marcelo Fabri
5cccc12eb7
Style changes because of the 120 length limit
2016-12-20 12:10:11 -02:00
Marcelo Fabri
23a0b03fe8
Fixing violations
2016-12-19 21:20:58 -02:00
Marcelo Fabri
3f6ca7611a
Fix violations
2016-12-19 20:08:17 -02:00
Marcelo Fabri
e854701fb2
Refactoring shared code
2016-12-15 19:57:49 -02:00
Fabian Ehrentraud
2f8c54d3c7
uppercase XML
2016-12-13 12:33:05 -08:00
Fabian Ehrentraud
96aa86b500
moved String+XML.swift to Extensions folder and fixed header comment
2016-12-13 12:33:05 -08:00
JP Simard
8b49cd36b5
Merge pull request #967 from marcelofabri/void-return-rule
...
Void return rule
2016-12-13 12:04:01 -08:00
JP Simard
3f7c010be8
fix specifying multiple rule identifiers in comment commands
2016-12-13 08:55:05 -08:00
Marcelo Fabri
7af7eb8fbe
Handling curried declarations
2016-12-13 11:57:43 -02:00
Marcelo Fabri
1351fdb643
Fix violations for void_return rule
2016-12-13 10:41:08 -02:00