JP Simard
c4ed26c05c
allow passing an optional --reporter parameter to swiftlint lint
2016-02-06 11:14:23 -08:00
Norio Nomura
a583b8e22c
Rename label of tuple
...
It fixes following error:
> Source/swiftlint/Commands/LintCommand.swift:35:27: error: cannot invoke 'appendContentsOf' with an argument list of type '([(rule: String, time: Double)])'
> ruleTimes.appendContentsOf(currentRuleTimes)
> ^
>Source/swiftlint/Commands/LintCommand.swift:35:27: note: expected an argument list of type '(C)'
> ruleTimes.appendContentsOf(currentRuleTimes)
> ^
It seems Swift does not allow label mismatch on that.
2016-02-01 13:23:55 +09:00
Norio Nomura
fe6cdb2bdc
Add calls invalidateCache() on every corrections in Linter.correct()
...
Cache entry should be invalidate on every corrections,
because caches and content may not match after corrections.
2016-01-30 15:46:47 +09:00
JP Simard
6a3c3bfa3b
also benchmark rule times when running lint with --benchmark
2016-01-25 23:27:30 -08:00
JP Simard
d8167e83d7
add --benchmark option to LintCommand
...
to benchmark how long each file took to lint
2016-01-25 23:27:30 -08:00
JP Simard
ace0999154
update SourceKitten to 0.8.0
2016-01-22 19:19:15 -08:00
JP Simard
f9f9d3c10e
get correctable rules by casting configured rules as CorrectableRule
2015-12-05 21:09:43 -08:00
JP Simard
7a12c49560
Don't correct if a rule is disabled locally
2015-12-05 21:09:43 -08:00
JP Simard
c08c300c20
Don't correct if a rule is disabled globally
2015-12-05 21:09:43 -08:00
JP Simard
5be62adfd4
report corrections
2015-12-05 21:09:43 -08:00
JP Simard
f30b0791db
autocorrect trailing semicolon violations
2015-12-05 21:09:43 -08:00
JP Simard
e953a3a57b
autocorrect trailing newline violations
2015-12-05 21:09:43 -08:00
JP Simard
cea94ce255
autocorrect trailing whitespace violations
2015-12-05 21:09:43 -08:00
JP Simard
a01ebc5167
introduce CorrectableRule protocol and Linter.correct()
2015-12-05 21:09:43 -08:00
JP Simard
d269bde1fa
allow trailing semicolons in comments
2015-11-17 11:41:02 -08:00
JP Simard
8a30cb2e3d
organize Xcode project
...
make Extensions, Models & Protocols groups under SourceKittenFramework
2015-11-15 15:07:25 -08:00