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
11364edeb2
Renaming enums
2017-01-23 21:38:56 -02:00
Marcelo Fabri
e1eae5ec24
Function kinds refactor
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
JP Simard
3599723a65
simplify equality check in AttributesRule
2017-01-22 09:40:23 -08:00
Marcelo Fabri
394069e1e3
Make redundant_nil_coalescing faster
2017-01-22 02:19:51 -02:00
Marcelo Fabri
6859d5f494
Performance improvements to generic_type_name rule
...
This simple regex change boosted the rule time from ~`0,500`s to ~`0,070`s.
2017-01-21 14:04:18 -02:00
JP Simard
85abab13b9
fix SPM build
2017-01-20 11:17:48 -08:00
JP Simard
16ca04905c
0.16.1: Commutative Fabric Sheets
2017-01-20 10:32:33 -08:00
JP Simard
3294e5cbab
allow forcing Swift version via SWIFTLINT_SWIFT_VERSION
2017-01-20 10:14:33 -08:00
Marcelo Fabri
66e9635766
Add nonTriggering examples
2017-01-19 14:15:47 -02:00
Marcelo Fabri
a11fe6accb
Disable commutative operations on shorthand_operator rule
...
Fixes #1182 , #1183 , #1211
2017-01-18 22:07:45 -02:00
Aaron McTavish
980b8fff8f
Clean LegacyConstantRule from code review
...
Comments by @marcelofabri
2017-01-18 12:16:27 +00:00
Aaron McTavish
eb902f79ad
Fix legacy_constant for Swift 2
2017-01-17 15:38:49 +00: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
0b268ad606
Merge pull request #1202 from bjarkehs/decimal_number_separator
...
Add minimum_fraction_length to number_separator
2017-01-17 04:56:11 -02:00
Bjarke Hesthaven Søndergaard
4a9d354210
Fixes to comply with review
2017-01-16 20:38:29 +01:00
Bjarke Hesthaven Søndergaard
ad749ac9f7
Add minimum_fraction_length configuration
2017-01-16 18:40:11 +01:00
Mikael Konradsson
f8c2ed6a54
Fixed typo
2017-01-16 16:32:25 +01:00
Aaron McTavish
9cfc51a527
Ignore overrides for variable_name
...
Resolves #1169 `variable_name should not apply to overriding
properties`.
2017-01-16 10:41:01 +00:00
JP Simard
df6cfa4d56
use enableAllRules in Configuration.swift
2017-01-12 14:13:48 -08:00
JP Simard
4d709b68d0
Merge pull request #1179 from rakaramos/unsued-optional-binding
...
Unused optional binding
2017-01-12 11:11:01 -08:00
rakaramos
7625c08d86
Improve tuples checking
2017-01-12 12:37:42 -02:00
Alpa Dedhia
ec48387973
correct spelling mistake Redudant -> Redundant
2017-01-12 13:57:58 +05:30
Marcelo Fabri
e6155ea76e
Fix excluded configuration not excluding files.
...
Fixes #1166
2017-01-12 00:36:59 -02:00
Marcelo Fabri
a761608403
Fix false positive on operator_usage_whitespace
...
Fixes #1153
2017-01-11 19:41:17 -02:00
Marcelo Fabri
ece8c7b596
Fix more false positives on shorthand_operator
...
Fixes #1163
2017-01-11 18:02:59 -02:00
Marcelo Fabri
c4106c3325
Fix false positive on redundant_optional_initialization
...
Fixes #1159
2017-01-11 15:52:37 -02:00
Marcelo Fabri
cbe149f7ee
Fix false positive on shorthand_operator rule
...
Fixes #1156
2017-01-11 02:59:39 -02:00
JP Simard
ed7209cb45
0.16.0: Maximum Energy Efficiency Setting
2017-01-10 17:05:13 -08:00
JP Simard
86214a7758
remove trailing comma from array
2017-01-10 15:31:55 -08: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
Marcelo Fabri
2a97a1cd3d
PR feedback
2017-01-10 20:53:17 -02:00
Marcelo Fabri
66d0bb2eb8
Update how hash is calculated
2017-01-10 20:49:53 -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
Marcelo Fabri
c28e3080f1
Get hash from parsed dictionary instead of String
2017-01-10 18:14:19 -02:00
Marcelo Fabri
b7b905c3e5
Merge branch 'master' into cache
2017-01-10 14:33:04 -02:00
Marcelo Fabri
94f48f4ebd
PR feedback
2017-01-10 13:09:18 -02:00
Marcelo Fabri
e1e2369c5f
Merge branch 'master' into cache
2017-01-10 12:54:30 -02:00
rakaramos
23a0d53424
Merge branch 'master' of github.com:realm/SwiftLint
2017-01-10 10:12:28 -02:00
rakaramos
c0a9aa44b7
Fix triggering example and add couple more
2017-01-10 09:36:51 -02:00
JP Simard
f0006fe9a3
rename VerticalWhitespaceRule.internalValidate(file:)
...
to violatingLineSections(in:)
2017-01-09 20:31:06 -08:00
JP Simard
c1be9cdd21
use 'guard shouldMakeViolation'
2017-01-09 20:28:06 -08:00
JP Simard
9a0bd3afc2
move extractCallsToSuper to Dictionary extension
2017-01-09 20:24:46 -08:00
JP Simard
40e6272f90
make reduceSwitchComplexity's first argument label more explicity
2017-01-09 19:46:35 -08:00
JP Simard
7522635ad8
update SwiftLintFramework/Rules to follow Swift 3 API Design Guidelines
2017-01-09 19:37:53 -08:00
JP Simard
00cd61ab17
update SwiftLintFramework/Reporters to follow Swift 3 API Design Guidelines
2017-01-09 19:31:19 -08:00
JP Simard
a98b0c0070
address some PR feedback
2017-01-09 19:28:08 -08:00
JP Simard
9e7cdc3282
update SwiftLintFramework/Protocols to follow Swift 3 API Design Guidelines
2017-01-09 19:19:25 -08:00