JP Simard
5dbd4756b9
add cli option for --enable-all-rules
2017-01-12 14:13:47 -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
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
253e1f4f86
make recording benchmarks thread-safe
2016-12-31 17:24:43 -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
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
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
Marcelo Fabri
13b0cfe623
Fixing inconsistencies
2016-12-08 18:29:57 -02:00
JP Simard
19fad01b29
make all enum members lowercase to comply with Swift 3 API Guidelines
2016-12-01 22:16:21 -08:00
Norio Nomura
8bf15f1dba
Migrate to Swift 3.0
2016-10-09 01:09:50 +09:00
JP Simard
7bb369b92f
minor tweaks after merging #757
2016-08-21 16:37:22 -07:00
George Woodham
8ce4af6f54
Changes after PR feedback. Removed ?? nil as this does nothing. Removed some redundant conditional
2016-08-22 11:21:29 +12:00
George Woodham
d8228aac8e
Failing build
2016-08-18 17:04:02 +12:00
George Woodham
b255dc5367
Moved check into a method so func limit no longer violated
2016-08-18 16:39:33 +12:00
George Woodham
6b9bb2e98d
Added function to create an error when the threshold has been broken
2016-08-15 10:47:29 +12:00
George Woodham
4a3987a9b4
Using configuration parameter instead of new rule
2016-07-19 16:35:40 +12:00
JP Simard
c66c5c8df0
formatting fixes
...
found running `swiftlint autocorrect --format`
2016-05-29 14:58:28 -07:00
JP Simard
88ac48580d
add --format option to autocorrect command
2016-05-29 13:58:45 -07:00
Norio Nomura
0a6faafee7
Update SwiftyTextTable to 0.3.0
2016-03-19 10:05:18 +09:00
Norio Nomura
76b083894f
Fix printing duplicated violations bug that introduced by #584
2016-03-13 13:14:10 +09:00
JP Simard
681e993f08
break up LinterCommand's violation reporting
...
otherwise we get a function length exceeded violation
2016-03-09 20:46:04 -08:00
JP Simard
d0590055b3
use multiple exit codes to distinguish between errors & strict warnings
...
Addresses #166 .
2016-03-09 20:00:33 -08:00
JP Simard
db71448c47
rename Rule.configDescription to Rule.configurationDescription
2016-02-12 10:53:36 -08:00
JP Simard
5b6f2e46da
move common Commandant options to separate file
2016-02-11 15:40:48 -08:00
JP Simard
59da7f3ce9
add --quiet flag to lint and autocorrect commands
...
addresses #386
2016-02-08 13:21:40 -08:00
JP Simard
368ee9544a
fold ConfigurableRule into Rule
2016-02-08 13:08:51 -08:00