Marcelo Fabri
0abc114895
Add redundant_discardable_let rule
...
Fixes #1232
2017-02-10 11:46:13 -08:00
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
Marcelo Fabri
f0c8fba3b6
Add for_where rule
...
Fixes #1228
2017-02-09 13:43:58 -08:00
Marcelo Fabri
c8e08181e0
Merge branch 'master' into identifier-rule
2017-01-25 12:17:05 -02:00
Marcelo Fabri
3800915e88
Swift 2.3 compatibility
2017-01-24 22:27:46 -02:00
Marcelo Fabri
46a2c25af4
Add notification_center_detachment rule
...
Fixes #1061
2017-01-24 22:27:45 -02:00
Marcelo Fabri
5c42f59595
Validate enum element only on Swift 3
2017-01-23 21:38:57 -02:00
Marcelo Fabri
8ef0703d3a
Applying fix on Linux
2017-01-23 21:38:56 -02:00
Marcelo Fabri
43a91ef31e
Add workaround for CharacterSet crash on Linux
2017-01-23 21:38:56 -02:00
Marcelo Fabri
44c55f4bde
VariableNameRule is now IdentifierNameRule
2017-01-23 21:38:56 -02:00
Marcelo Fabri
c891efc8d6
Add discarded_notification_center_observer rule
...
Fixes #1062
2017-01-23 21:38:33 -02:00
Aaron McTavish
edb0fedd0e
Update legacy_constant to support CGFloat.pi
...
Resolves #1198 `Prefer CGFloat.pi to CGFloat(M_PI)`.
2017-01-17 08:10:56 +00:00
Marcelo Fabri
dc2ebdf67c
Extract number_separator tests to another class
2017-01-17 04:28:52 -02:00
JP Simard
0530a2303f
Merge branch 'master' into cache
...
* master:
fix typos in ProjectMock configuration files
update SourceKitten to 0.17
build SwiftLint in release mode when running benchmarks
run Circle CI's Xcode 8.2 image
don't pass CI if Danger crashes
Fix triggering example and add couple more
Use range parameter if exists
CHANGELOG entries must break at the 80th char
Fix indentation
Update CHANGELOG
Delete extra variable
Clean up code and improve overall logic
Add range to avoid whole file lookup
Clean up regex pattern
Delete print command
Fix test case clause
Ignore tuples
Append test to allTests array
Add CHANGELOG entry
Add UnusedOptionalBinding rule
2017-01-10 15:19:27 -08:00
Rafael Machado
8e5a63d1c0
Merge branch 'master' of github.com:realm/SwiftLint
2017-01-07 09:01:22 -02:00
JP Simard
a16e77c39e
fix swiftlint version with SPM
...
all done by @marcelofabri, originally in #1073
2017-01-07 00:09:27 -08:00
Marcelo Fabri
b1b9027663
Merge branch 'master' into cache
2017-01-06 21:06:50 -02:00
Rafael Machado
068b903d1c
Merge branch 'master' of github.com:realm/SwiftLint
2017-01-06 19:53:25 -02:00
Marcelo Fabri
5d6c2ec3e7
Add shorthand_operator rule
...
Fixes #902
2017-01-06 18:02:02 -02:00
Javier Hernández
7b3648899d
Extract line length tests to their own test files
2017-01-06 01:08:50 +01:00
Javier Hernández
ed42d9b38e
Add line length configuration to ignore urls
2017-01-06 01:05:54 +01:00
rakaramos
da071774e0
Add UnusedOptionalBinding rule
2017-01-05 21:13:03 -02:00
Marcelo Fabri
903f43ba39
Merge branch 'master' into cache
2017-01-05 13:07:37 -02:00
Aaron McTavish
00b8e79318
Add max_empty_lines config to vertical_whitespace
...
Update `vertical_whitespace` rule to allow configuration of the number
of consecutive empty lines before a violation using `max_empty_lines`.
The default value is still 1 line.
2017-01-05 10:05:03 +00:00
Marcelo Fabri
690d329fd5
Update xcodeproj
2017-01-05 00:41:11 -02:00
Marcelo Fabri
dd59f4e9f9
Add generic_type_name rule
...
Fixes #51
2017-01-05 00:41:11 -02:00
Marcelo Fabri
c5db646115
Add large_tuple rule
...
Fixes #1065
2017-01-04 18:21:33 -02:00
Marcelo Fabri
66403ec5fa
Handle other protocols
2017-01-04 15:34:19 -02:00
Marcelo Fabri
c381720d3e
Add expressible_by_array_literal_init rule
...
Fixes #1096
2017-01-04 15:34:19 -02:00
Marcelo Fabri
b9eb54adf4
Merge remote-tracking branch 'upstream/master' into cache
2017-01-02 03:36:36 -02:00
Marcelo Fabri
09a251a8f6
number_separator can be configured with a min length
...
Fixes #1109
2017-01-02 02:50:04 -02:00
Marcelo Fabri
a56dba7b14
Move cache code to an extension
2016-12-31 01:42:38 -02:00
Marcelo Fabri
a2ea9ca2a4
Merge remote-tracking branch 'upstream/master' into cache
...
# Conflicts:
# Source/swiftlint/Commands/LintCommand.swift
2016-12-31 01:33:08 -02:00
Marcelo Fabri
b006a28f00
Merge remote-tracking branch 'upstream/master' into cache
...
# Conflicts:
# Source/swiftlint/Commands/LintCommand.swift
# Source/swiftlint/Extensions/Configuration+CommandLine.swift
# SwiftLint.xcodeproj/project.pbxproj
2016-12-31 01:17:16 -02:00
JP Simard
86308adf6b
refactor LintCommand
...
mostly by moving things out of run(_:) and out of the file
2016-12-30 18:43:51 -08:00
Marcelo Fabri
b1f62e2b63
Add some tests
2016-12-31 00:24:54 -02:00
Marcelo Fabri
a92a24c598
Ignore cache when versions are different
2016-12-31 00:24:54 -02:00
Marcelo Fabri
c698d021dc
Initial cache implementation
2016-12-31 00:24:54 -02:00
JP Simard
2bbcdc8867
sort extensions in Xcode project
...
and apparently fix ObjectLiteralRule.swift's placement in pbxproj file,
which Xcode did automatically
2016-12-30 18:23:45 -08:00
Marcelo Fabri
7056434992
Add object_literal rule
...
Fixes #1060
2016-12-30 17:57:30 -02:00
Marcelo Fabri
1a91a3abe3
type_name rule validates enum values with Swift 2.3
...
Fixes #1090
2016-12-30 15:21:26 -02:00
Marcelo Fabri
6bd9bec6d7
PR feedback
2016-12-30 01:46:05 -02:00
Marcelo Fabri
9757442491
Moving Swift 2 tests to a single file
2016-12-30 00:44:22 -02:00
Marcelo Fabri
d75cd234f7
Run tests with Swift 2.3 set for SourceKitten
...
This should help preventing issues like #1019 .
2016-12-30 00:06:51 -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
570e627f9a
Sorted imports ( #1071 )
...
Add rule requiring imports be sorted
2016-12-26 18:28:43 -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
Marcelo Fabri
5c39a76526
Add redundant_optional_initialization rule
...
Fixes #1052
2016-12-24 17:28:45 -02:00
Marcelo Fabri
608a2725c8
Add class_delegate_protocol rule
...
Fixes #1039
2016-12-23 02:37:44 -02:00