Marcelo Fabri
7d94f5cff6
Updating rule identifier
2017-01-23 21:38:57 -02:00
JP Simard
16ca04905c
0.16.1: Commutative Fabric Sheets
2017-01-20 10:32:33 -08:00
JP Simard
9b51973961
actualy pass enableAllRules value to Configuration initializer
2017-01-12 14:13:48 -08:00
JP Simard
5dbd4756b9
add cli option for --enable-all-rules
2017-01-12 14:13:47 -08:00
JP Simard
ed7209cb45
0.16.0: Maximum Energy Efficiency Setting
2017-01-10 17:05:13 -08:00
Marcelo Fabri
b7b905c3e5
Merge branch 'master' into cache
2017-01-10 14:33:04 -02:00
JP Simard
9db40bf3e1
update swiftlint/Extensions to follow Swift 3 API Design Guidelines
2017-01-10 08:00:17 -08:00
JP Simard
c2c79a8a46
update swiftlint/Commands to follow Swift 3 API Design Guidelines
2017-01-10 13:42:00 -02:00
Marcelo Fabri
e1e2369c5f
Merge branch 'master' into cache
2017-01-10 12:54:30 -02:00
JP Simard
9e7cdc3282
update SwiftLintFramework/Protocols to follow Swift 3 API Design Guidelines
2017-01-09 19:19:25 -08:00
JP Simard
c5c2e21120
update SwiftLintFramework/Models to follow Swift 3 API Design Guidelines
2017-01-09 19:05:29 -08:00
Marcelo Fabri
5e309356c6
Save cache in shared folder by default
2017-01-10 00:20:31 -02:00
Marcelo Fabri
05d0a31865
Merge branch 'master' into cache
2017-01-09 23:53:59 -02:00
JP Simard
abb251225d
remove unnecessary 'import Foundation' from VersionCommand
2017-01-09 16:40:22 -08:00
Marcelo Fabri
1d4d04d72b
PR feedback
2017-01-07 12:54:30 -02:00
Marcelo Fabri
20620d5b6e
Merge branch 'master' into cache
2017-01-07 12:54:27 -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
119c214492
Merge remote-tracking branch 'upstream/master' into cache
2017-01-02 16:29:32 -02:00
JP Simard
95a468a723
Merge branch 'master' into jp-parallelize
...
* master:
use first(where:) instead of for loop in RulesCommand.swift
remove unnecessary imports from AutoCorrectCommand.swift
Typo in changelog
Remove unnecessary import
Avoid duplicating default value
Update number_separator configuration in SwiftLint
number_separator can be configured with a min length
Enable more opt-in rules in SwiftLint
Fix out of range exception in AttributesRule
Fix trailing_comma crash
2017-01-02 09:55:32 -08:00
JP Simard
9b4288e8b1
use first(where:) instead of for loop in RulesCommand.swift
2017-01-01 22:00:45 -08:00
JP Simard
4ec7fd9917
remove unnecessary imports from AutoCorrectCommand.swift
2017-01-01 22:00:31 -08:00
JP Simard
3608cf4675
re-add autoreleasepool around visitorBlock invocation
2017-01-01 10:50:10 -08:00
JP Simard
253e1f4f86
make recording benchmarks thread-safe
2016-12-31 17:24:43 -08:00
JP Simard
8774a921a6
use DispatchQueue.concurrentPerform rather than rolling our own
...
also remove parallelForEach from SwiftLintFramework's public interface
since calling the GCD API is almost as concise and avoids polluting the
public API.
Finally, also remove the "fast" path for parallelMap since GCD should
do the reasonable thing for us here.
2016-12-31 17:06:02 -08:00
JP Simard
f24ceac200
parallelize linting multiple files
2016-12-30 23:09:07 -08: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
JP Simard
d9ca2d98b0
make successOrExit private
2016-12-30 19:23:29 -08: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
c7461e0bbb
Supporting CLI and configuration options
2016-12-31 00:26:05 -02:00
Marcelo Fabri
3d376241be
Moving cache usage to the linter
2016-12-31 00:26:05 -02:00
Marcelo Fabri
a47385a64f
Ignore cache if configuration has changed
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
3106f32649
move autoreleasepool invocation into visitLintableFiles
...
which cleans up the call site a bit and brings the memory footprint
improvements to AutoCorrectCommand too.
2016-12-30 18:21:11 -08:00
JP Simard
da555b8a3b
minor spacing fixes
2016-12-30 18:21:11 -08:00
JP Simard
548e67e51e
use '<nopath>' instead of '<no path>'
2016-12-30 18:18:43 -08:00
JP Simard
1c1045c58f
add Benchmark and BenchmarkEntry structs
...
and generally improve the file/rule benchmarking code
2016-12-30 18:12:09 -08:00
Marcelo Fabri
55f7b04a6f
Fixing existing violations
2016-12-26 18:44:37 -02:00
JP Simard
e4fa18df06
release 0.15.0
2016-12-22 14:40:12 -08:00
JP Simard
7e7576e9f3
release 0.14.0
2016-12-18 18:07:35 -08:00
Marcelo Fabri
1351fdb643
Fix violations for void_return rule
2016-12-13 10:41:08 -02:00
JP Simard
8ae09b8ec1
add autoreleasepool shim to make LintCommand.swift compile on Linux
2016-12-11 14:04:49 -08:00
JP Simard
35290a1935
add missing imports
...
to help compile on Linux later
2016-12-11 14:04:49 -08:00
JP Simard
0faf567931
use bridge() rather than explict or implicit casts
...
this is a step in aligning the code to compile on both Darwin and
Linux
2016-12-11 13:47:44 -08:00
Marcelo Fabri
13b0cfe623
Fixing inconsistencies
2016-12-08 18:29:57 -02:00
JP Simard
2a936ba62f
minor Benchmark.swift refactor
2016-12-08 01:42:03 -08:00
JP Simard
fe01334bb3
another small refactoring of Configuration+CommandLine.swift
2016-12-08 01:39:41 -08:00
JP Simard
27d999414c
minor refactoring of Configuration+CommandLine.swift
2016-12-08 01:35:19 -08:00