Javier Hernández
9d31eaccda
Rename option to validates_start_lowercase
2017-05-10 20:53:44 +01:00
Javier Hernández
3245fd83a9
Fix tests
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
db66e74ccd
Merge pull request #1499 from marcelofabri/complexityConfigTypo
...
Fix `ignores_case_statements` key in `cyclomatic_complexity` description
2017-05-07 17:11:50 +02:00
Jeffrey Blagdon
2e3130048f
Fix ignores_case_statements key in cyclomatic_complexity description
...
Fixes #1434 .
2017-05-07 17:10:21 +02:00
Marcelo Fabri
6805c4a1e0
Merge pull request #1480 from marcelofabri/unused_optional_binding_rule_ignore_option
...
Unused optional binding rule ignore option
2017-05-07 17:03:15 +02:00
Marcelo Fabri
2282362989
Remove extra parenthesis on file header rule description
2017-05-04 21:37:34 +02:00
Marcelo Fabri
9412861143
Prevent triggering redundant_optional_initialization rule on a lazy var
...
Fixes #1334
2017-05-02 00:15:44 +02:00
Marcelo Fabri
32d5266409
Small rule improvements
2017-05-01 16:11:12 +02:00
Сергей Галездинов
894416a1a1
filter optional try's from matches when ignore_optional_try is true
2017-05-01 14:59:00 +02:00
Сергей Галездинов
74e77e82bb
Additional configuration for UnusedOptionalBindingRule
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
JP Simard
a841508c0b
Merge pull request #1476 from marcelofabri/top-acl
...
Add explicit_top_level_acl opt-in rule
2017-04-30 12:26:13 -07:00
Marcelo Fabri
4a9ba8248f
Fix build with Swift 3.0.x
2017-04-30 20:42:09 +02:00
Marcelo Fabri
74b7744de6
Alternative implementation
2017-04-30 20:17:41 +02:00
Marcelo Fabri
42e6c8a06c
Fix empty_parameters rule with Swift 3
...
Fixes #1460
2017-04-30 17:27:51 +02:00
J Cheyo Jimenez
d608a632fd
replace NSNumber with Int64 to fix Linux boxes
2017-04-29 21:36:56 -07:00
J Cheyo Jimenez
06b1446ae7
Fix violations starting at zero index
2017-04-29 19:21:49 -07:00
J Cheyo Jimenez
1ce589ee82
Added ExplicitInternalTopLevelRule
2017-04-29 18:51:45 -07:00
JP Simard
5673b3fb5e
Merge pull request #1455 from marcelofabri/remove-swift-2-support
...
Remove Swift 2 support
2017-04-25 15:53:30 -07:00
Jeffrey
3812ef3612
change parameter.value to configuration.warning
2017-04-25 13:46:44 -07:00
Jeffrey
a37445d068
Revert "We should be using parameter.value instead of configuration.warning in order to report accurate information about the violation."
...
This reverts commit c4006276a3 .
2017-04-25 13:39:12 -07:00
Jeffrey
c4006276a3
We should be using parameter.value instead of configuration.warning in order to report accurate information about the violation.
2017-04-24 18:28:40 -07:00
Spencer Kaiser
acea43409f
Fixing a minor typo
2017-04-24 15:41:11 -05: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
Jay Moore
ad621bcc12
add tests for missing colon, lowercase mark
2017-04-23 02:55:15 +02:00
Norio Nomura
a3d6a4295d
NSRegularExpression is added on Linux
2017-04-17 17:22:54 +09:00
Nigel Flack
6321e24877
Adds support for excluded in custom rules
2017-04-14 15:14:45 +01: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
JP Simard
ab664127d5
release 0.18.1
2017-04-06 16:45:34 -07:00
JP Simard
691d79f650
break out FileHeaderConfiguration.consoleDescription
...
to speed up type checking.
It took 18 seconds to type check on Homebrew's Jenkins job when
submitting 0.18.0: https://github.com/Homebrew/homebrew-core/pull/12161
2017-04-06 15:59:24 -07:00
JP Simard
f20e24c6c5
release 0.18.0
2017-04-06 15:16:29 -07:00
JP Simard
4008fa38f1
refactor YamlParser.parse(_:)
2017-04-06 15:10:15 -07:00
JP Simard
e2ecafea5d
refactor hasExplicitType a tiny bit
2017-04-06 14:36:16 -07:00
Jeremy David Giesbrecht
9b4f495507
Fixed false positives in redundant let rule.
2017-04-06 14:35:02 -07:00
Daniel Rodríguez Troitiño
c29cf9a4d0
Avoid pattern matching false positives
...
The rule for unused optional binding was false triggering for pattern matching where the associated value was just an underscore. Additionally, pattern matching mixed with unused optional binding was not triggering in some cases.
New non triggering and triggering examples have been added for the failing cases, and new regular expressions are used to catch all the cases.
Modify the code in `File+SwiftLint` to expose full `NSTextCheckingResult` (and not just ranges) and rewire some pieces to use the new functions.
Fixes #1376
2017-04-06 14:16:12 -07:00
Keith Smiley
b410c9376a
Update optional interpolated strings for Xcode 8.3
2017-04-06 13:37:49 -07:00
JP Simard
1b69b90691
remove superfluous string interpolation of a single String
2017-04-06 13:33:38 -07:00
Samuel Susla
b76d6e2416
Merge branch 'trailing-comma-autocorrect' of https://github.com/sammy-SC/SwiftLint into trailing-comma-autocorrect
2017-04-06 09:36:29 +02:00
Samuel Susla
9fd2256244
Merge branch 'master' of https://github.com/realm/SwiftLint into trailing-comma-autocorrect
2017-04-06 09:36:21 +02:00
Norio Nomura
b4f85d873a
Make yaml error message to be locatable by Xcode’s Issue Navigator
2017-04-05 12:45:27 +09:00
Norio Nomura
b5cba7ae40
Replace YamlSwift with Yams
2017-04-03 09:16:04 +09:00
Jeremy David Giesbrecht
d12b15f93d
Final optimizations.
2017-03-28 23:46:09 -06:00
Jeremy David Giesbrecht
efae41de9c
More re‐optimizing.
2017-03-28 23:42:30 -06:00
Jeremy David Giesbrecht
b36aca33fb
Try re‐optimizing.
2017-03-28 23:24:36 -06:00
Jeremy David Giesbrecht
433b8e9ba0
Fixed return lines.
2017-03-28 23:12:21 -06:00
Jeremy David Giesbrecht
abf2a7218f
Fixed types.
2017-03-28 23:06:42 -06:00