JP Simard
9b51973961
actualy pass enableAllRules value to Configuration initializer
2017-01-12 14:13:48 -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
Marcelo Fabri
e1e2369c5f
Merge branch 'master' into cache
2017-01-10 12:54:30 -02:00
JP Simard
c5c2e21120
update SwiftLintFramework/Models to follow Swift 3 API Design Guidelines
2017-01-09 19:05:29 -08:00
Marcelo Fabri
119c214492
Merge remote-tracking branch 'upstream/master' into cache
2017-01-02 16:29:32 -02:00
JP Simard
3608cf4675
re-add autoreleasepool around visitorBlock invocation
2017-01-01 10:50:10 -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
a2ea9ca2a4
Merge remote-tracking branch 'upstream/master' into cache
...
# Conflicts:
# Source/swiftlint/Commands/LintCommand.swift
2016-12-31 01:33:08 -02: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
3d376241be
Moving cache usage to the linter
2016-12-31 00:26:05 -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
Marcelo Fabri
1351fdb643
Fix violations for void_return rule
2016-12-13 10:41:08 -02: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
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
Norio Nomura
8bf15f1dba
Migrate to Swift 3.0
2016-10-09 01:09:50 +09:00
JP Simard
c66c5c8df0
formatting fixes
...
found running `swiftlint autocorrect --format`
2016-05-29 14:58:28 -07:00
JP Simard
048c5dda84
expand "config" to "configuration" in Configuration.swift
...
with an exception being made for the "use_nested_configs" configuration key,
since that's already long enough as it is
2016-02-12 10:53:36 -08:00
JP Simard
59da7f3ce9
add --quiet flag to lint and autocorrect commands
...
addresses #386
2016-02-08 13:21:40 -08:00
Scott Hoyt
9188d161f5
Added recursive search for configurations.
2016-01-02 15:41:53 -08:00
JP Simard
b653973776
re-introduce use-script-input-files option for lint & autocorrect
2015-12-13 16:59:01 -08:00
JP Simard
8ab6f4674a
clarify that stdin must be a UTF8-encoded string
2015-12-05 20:52:40 -08:00
JP Simard
0ca4221161
move Configuration.lintableFilesForPath out of extension and into framework
2015-12-05 20:49:49 -08:00
JP Simard
341406a90c
add Configuration.visitLintableFiles
...
to simplify performing operations on all files (e.g. autocorrect)
2015-12-05 20:49:49 -08:00
JP Simard
491e0a7db7
add Configuration.getFiles to combine STDIN, input files & standard behaviors
2015-12-05 20:44:00 -08:00
JP Simard
a17bc283d9
move scriptInputFiles() to Configuration+CommandLine.swift
2015-12-05 20:44:00 -08:00
JP Simard
8f534df33d
add Configuration.lintableFilesForPath(...)
2015-12-05 20:44:00 -08:00
JP Simard
c708c53fc1
introduce Configuration+CommandLine.swift and move initialization to it
2015-12-05 20:44:00 -08:00