Cihat Gündüz
314da3dc8e
Remove unnecessary rule disabling
2017-06-15 06:08:38 +02:00
Cihat Gündüz
95a8b8137f
Remove basic ObjectLiteral rule verification
...
This removes the test from the collective test class.
There's a new ObjectLiteralRuleTests class instead.
2017-06-15 06:07:43 +02:00
Cihat Gündüz
be3b5daed2
Fix too long lines in tests
2017-06-15 06:07:43 +02:00
Cihat Gündüz
e3c0d2295b
Fix non triggering example issues in tests
2017-06-15 06:07:43 +02:00
Cihat Gündüz
028d2b98a3
Add tests for ObjectLiteral rule with config
2017-06-15 06:07:43 +02:00
Marcelo Fabri
4684237803
Add tests
2017-06-13 22:47:52 +02:00
Marcelo Fabri
dbdc9f7788
Add a test for loading custom configuration
2017-06-13 21:41:48 +02:00
Marcelo Fabri
fd231b607d
Fix existing violations
2017-06-13 16:12:58 +02:00
Marcelo Fabri
d123b47317
Add vertical_parameter_alignment_on_call rule
2017-06-13 16:12:58 +02:00
JP Simard
25a92c4e03
automatically generate LinuxMain.swift using Sourcery
...
This adds 6 tests that were accidentally not being run on Linux:
* LineLengthConfigurationTests.testLineLengthConfigurationInitialiserSetsIgnoresComments
* LineLengthConfigurationTests.testLineLengthConfigurationInitialiserSetsIgnoresFunctionDeclarations
* LineLengthConfigurationTests.testLineLengthConfigurationThrowsOnBadConfigValues
* LineLengthRuleTests.testLineLengthWithIgnoreCommentsEnabled
* LineLengthRuleTests.testLineLengthWithIgnoreFunctionDeclarationsEnabled
* RegionTests.testSeveralRegionsFromSeveralCommands
2017-06-02 14:28:37 -07:00
Marcelo Fabri
441bece9da
Add extension_access_modifier rule
2017-06-02 21:24:55 +02:00
Ornithologist Coder
48bb6c77d4
Adds multiline method definition rule
...
Parameters of methods and functions should be either on the same line,
or one per line.
2017-05-26 14:54:01 +02:00
Marcelo Fabri
b0effa83d9
Enable testForceUnwrapping on Linux
...
Fixes #966
2017-05-25 21:52:43 +02:00
JP Simard
6c2bb0cf52
remove SR-3366 workaround
...
as we're no longer testing on Swift 3.0.2 on Linux
2017-05-25 07:58:04 -07:00
JP Simard
99d13d14a3
remove workaround for SR-3448/SR-3449
...
as they were fixed in the 3.1 release
2017-05-25 07:58:04 -07:00
JP Simard
66c060ddc3
remove some unnecessary force try's in tests
2017-05-24 15:42:12 -07:00
JP Simard
0e50216114
Merge pull request #1557 from realm/jp-fix-overlapping-regions
...
Fix overlapping commands causing incorrect Region generation
2017-05-24 12:22:01 -07:00
JP Simard
ce482dcba3
add CommandTests & RegionTests
2017-05-24 11:33:40 -07:00
Marcelo Fabri
9a5e30e794
Split cache into read cache and write cache
2017-05-24 17:03:51 +02:00
JP Simard
572754f707
Merge pull request #1530 from realm/jp-reenable-cache-v2
...
Reenable cache
2017-05-21 22:43:12 -07:00
Marcelo Fabri
9d67308a92
Merge pull request #1511 from marcelofabri/protocol_property_accessors_order
...
Add protocol_property_accessors_order rule
2017-05-22 00:37:46 +02:00
J Cheyo Jimenez
aef7f81056
Added NoExtensionAccessModifierRule
2017-05-21 23:53:56 +02:00
JP Simard
3968b01bb6
update tests to reflect unicode fixes in SourceKitten
2017-05-19 14:10:24 -07:00
JP Simard
186231e1a4
rewrite cache tests
2017-05-18 14:53:39 -07:00
JP Simard
690b567421
simplify serialized cache structure
2017-05-18 14:40:40 -07:00
Víctor Pimentel
5ed010c9c0
Change LinterCache to use file modification dates instead of hashing files with a weak algorithm.
2017-05-18 13:39:05 -07:00
JP Simard
8c9cba0c0f
fallback to line 1 when no line is provided & reporting with xcode
...
this is a generalization of the fix from #1521
2017-05-17 14:56:46 -07:00
JP Simard
92043af1c0
rename ConditionalReturnsOnNewline to ConditionalReturnsOnNewlineRule
...
to match conventions used for rules
2017-05-16 10:58:47 -07:00
Marcelo Fabri
98dc0f78f6
Add protocol_property_accessors_order rule
...
Fixes #1504
2017-05-16 08:10:04 +02:00
Marcelo Fabri
85bd94d33a
Merge pull request #1510 from marcelofabri/ignoreOptionalTry-default-false
...
Change the default of ignoreOptionalTry to false in UnusedOptionalBindingRule
2017-05-15 00:38:19 +02:00
Marcelo Fabri
eec8935091
Merge pull request #1444 from jaherhi/identifier_name_allow_non_alphanumeric_and_uppercase_characters
...
Add options to disable some checks for identifier_name rule
2017-05-15 00:31:39 +02:00
Marcelo Fabri
1e115be030
Change the default of ignoreOptionalTry to false in UnusedOptionalBindingRule
...
To avoid breaking changes.
2017-05-15 00:19:07 +02:00
Javier Hernández
d652cfe4ab
Add options to generic_type_name and type_name rules
2017-05-10 21:02:30 +01:00
Javier Hernández
9d31eaccda
Rename option to validates_start_lowercase
2017-05-10 20:53:44 +01:00
Javier Hernández
fe916c121f
Add option to allow names to start with uppercase
2017-05-10 20:53:44 +01:00
Javier Hernández
93583f3153
Add option to exclude non alphanumeric characters
2017-05-10 20:53:42 +01:00
Marcelo Fabri
991d1fa65a
Add empty_enum_arguments rule
...
Fixes #1425
2017-05-08 08:29:27 +02:00
Marcelo Fabri
b41fe11dbc
Fixes after rebase
2017-05-01 15:34:38 +02:00
Сергей Галездинов
b3ae42811c
fix test failure
2017-05-01 14:59:00 +02:00
Сергей Галездинов
a22eb40524
tests with a new option
2017-05-01 14:59:00 +02:00
Marcelo Fabri
d356522491
Add implicit_return rule
...
Fixes #1194
2017-05-01 00:58:58 +02:00
Marcelo Fabri
74b7744de6
Alternative implementation
2017-04-30 20:17:41 +02:00
J Cheyo Jimenez
1ce589ee82
Added ExplicitInternalTopLevelRule
2017-04-29 18:51:45 -07:00
Marcelo Fabri
d73ee8d3d9
Remove Swift 2 support
...
Also removes `missing_docs` and `valid_docs` rules.
Fixes #1453 .
2017-04-23 13:43:41 +02:00
Marcelo Fabri
80b0c96dd7
Merge pull request #1438 from mobiledevstandards/1437_custom_excluded
...
Adds support for excluded in custom rules
2017-04-23 12:18:34 +02:00
Nigel Flack
d4d9c17a1d
Adds test for excluded option in custom rules
2017-04-19 17:57:43 +01:00
Norio Nomura
45049e8cdf
Apply workaround for https://bugs.swift.org/browse/SR-530
2017-04-14 20:03:12 +09:00
Norio Nomura
e0dfdb1d47
Update expected output of testEmojiReporter()
2017-04-14 19:54:00 +09:00
Norio Nomura
ccf85e87c3
Make emoji and checkstyle reporter to output report sorted by file name
...
Fixes #1429
2017-04-12 22:36:27 +09:00
Samuel Susla
32e7963b68
Merge branch 'master' of https://github.com/realm/SwiftLint into trailing-comma-autocorrect
2017-04-09 20:31:02 +02:00