Marcelo Fabri
33955234b3
Skip files with valid cache & no violations when auto correcting
2017-05-28 12:47:52 +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
JP Simard
0aa93380e7
release 0.19.0
2017-05-25 14:25:31 -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
592537966c
make Region & Command structs conform to Equatable
2017-05-24 11:33:39 -07:00
Marcelo Fabri
bdcfe1b2cf
Merge pull request #1551 from realm/write-cache
...
Split cache into read cache and write cache
2017-05-24 17:38:15 +02:00
Marcelo Fabri
9a5e30e794
Split cache into read cache and write cache
2017-05-24 17:03:51 +02:00
JP Simard
eef39595f6
move cache-related Configuration code into Configuration+Cache.swift
2017-05-23 11:22:55 -07:00
JP Simard
b19e0de6e4
fix non-root configs logging warnings more than once
2017-05-23 11:22:55 -07:00
JP Simard
8ed4424a9a
release 0.19.0-rc.1
2017-05-22 14:09:33 -07: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
416384c4a5
Merge pull request #1526 from realm/jp-xcode-reporter-line-fallback
...
Fall back to line 1 when no line is provided & reporting with `xcode`
2017-05-18 15:42:50 -07:00
JP Simard
ca08d6598a
move LinterCache+CommandLine to SwiftLintFramework
...
and make cacheURL an internal member of Configuration
2017-05-18 14:53:39 -07:00
JP Simard
97bdac211a
keep a single cache file for all of SwiftLint
2017-05-18 14:45:46 -07:00
JP Simard
690b567421
simplify serialized cache structure
2017-05-18 14:40:40 -07:00
JP Simard
bd7169e40c
cache each file with its own configuration cache description
...
to make the cache play nicely with nested configurations
2017-05-18 14:31:33 -07:00
JP Simard
258a80b5cc
don't overwrite cache results from different versions
2017-05-18 14:31:33 -07:00
JP Simard
f639ae95f1
add CacheDescriptionProvider protocol
...
to provide more complete descriptions for cache invalidation
purposes.
2017-05-18 14:31:33 -07:00
JP Simard
903b48f4da
derive Configuration.cacheDescription in all cases
...
rather than just when using one of many code paths in one of many
initializers
2017-05-18 13:59:24 -07:00
JP Simard
70bcb2c4e5
add LinterCache.Key enum
...
rather than use hardcoded, duplicate string literals
2017-05-18 13:59:24 -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
385d726e52
simplify Configuration.swift's usage of its default file manager
2017-05-18 13:04:09 -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
04824c9b51
move 'AccessControlLevel.swift' from 'Extensions' to 'Models'
2017-05-16 10:58:49 -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
991d1fa65a
Add empty_enum_arguments rule
...
Fixes #1425
2017-05-08 08:29:27 +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
JP Simard
ab664127d5
release 0.18.1
2017-04-06 16:45:34 -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
1b69b90691
remove superfluous string interpolation of a single String
2017-04-06 13:33:38 -07: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
Marcelo Fabri
cc9e81754f
0.17.0: Extra Rinse Cycle
2017-03-23 22:32:37 +01:00
Marcelo Fabri
e26710c0ad
Merge pull request #1362 from SiarheiFedartsou/implicitly_unwrapped_optional_rule
...
Add `implicitly_unwrapped_optional` rule
2017-03-22 21:16:18 +01:00
Siarhei Fedartsou
a992ee0e84
Merge remote-tracking branch 'realm/master' into implicitly_unwrapped_optional_rule
2017-03-22 20:24:04 +03:00
Kim de Vos
f838bd6627
Added FatalErrorMessageRule
2017-03-19 00:30:02 +01:00
Kim de Vos
ec25033b73
Ordered by name
2017-03-18 16:57:44 +01:00
Kim de Vos
d475ed0241
Changed rule name from TypeInterfaceRule to ExplicitTypeInterfaceRule
2017-03-18 16:57:43 +01:00
Kim de Vos
0cbeab2c6d
Added TypeInterfaceRule to the MasterRuleList
2017-03-18 16:57:10 +01:00
Siarhei Fedartsou
fe8359a81d
Add implicitly_unwrapped_optional rule
2017-03-18 00:01:32 +03:00
Natan Rolnik
ef28e204e2
Allow displaying only enabled rules in RulesCommand
2017-02-15 13:09:43 +02:00
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