JP Simard
b83e0991b9
Remove all file headers
...
The MIT license doesn't require that all files be prepended with this
licensing or copyright information. Realm confirmed that they're ok with this
change. This will enable some companies to contribute to SwiftLint and the
date & authorship information will remain accessible via git source control.
2018-05-04 13:42:02 -07:00
Marcelo Fabri
ef4dde90b7
Improve colon rule to catch dictionary types and Any
...
Fixes #1074
2017-09-11 03:09:53 -03:00
Marcelo Fabri
37de094fbd
Enable testCustomRuleConfigurationIgnoreInvalidRules on Linux
...
By failing in a way that doesn’t trigger https://bugs.swift.org/browse/SR-5477
2017-07-17 16:39:57 +02:00
Marcelo Fabri
5d0bc74ae1
Add support for skipping tests on Linux with Sourcery
2017-07-17 13:56:19 +02:00
Marcelo Fabri
60229853cd
Add test for invalid custom rule handling
2017-07-17 11:48:01 +02:00
Marcelo Fabri
4684237803
Add tests
2017-06-13 22:47:52 +02:00
Marcelo Fabri
fd231b607d
Fix existing violations
2017-06-13 16:12:58 +02:00
JP Simard
25a92c4e03
automatically generate LinuxMain.swift using Sourcery
...
This adds 6 tests that were accidentally not being run on Linux:
* LineLengthConfigurationTests.testLineLengthConfigurationInitialiserSetsIgnoresComments
* LineLengthConfigurationTests.testLineLengthConfigurationInitialiserSetsIgnoresFunctionDeclarations
* LineLengthConfigurationTests.testLineLengthConfigurationThrowsOnBadConfigValues
* LineLengthRuleTests.testLineLengthWithIgnoreCommentsEnabled
* LineLengthRuleTests.testLineLengthWithIgnoreFunctionDeclarationsEnabled
* RegionTests.testSeveralRegionsFromSeveralCommands
2017-06-02 14:28:37 -07:00
Nigel Flack
d4d9c17a1d
Adds test for excluded option in custom rules
2017-04-19 17:57:43 +01:00
JP Simard
9e7cdc3282
update SwiftLintFramework/Protocols to follow Swift 3 API Design Guidelines
2017-01-09 19:19:25 -08:00
Marcelo Fabri
50535e7e5c
Refactor regex functions to accept options
...
Fixes #1127
2017-01-06 21:04:15 -02:00
Marcelo Fabri
55f7b04a6f
Fixing existing violations
2016-12-26 18:44:37 -02:00
JP Simard
6093934fec
simplify getTestTextFile()
2016-12-13 12:33:05 -08:00
JP Simard
97e798dc70
add LinuxMain.swift and allTests extensions
...
to run all unit tests on Linux
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
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
7c12a63e8f
Merge commit '58eb0f69c4055bb2cb89b3df278eca6ce0fb1c34' into swift3.0
...
* commit '58eb0f69c4055bb2cb89b3df278eca6ce0fb1c34':
generally clean up usage of swiftlint comment commands
update README to reflect the ability to specify multiple rules in commands
add changelog entry
allow specifying multiple rule identifiers in comment commands
# Conflicts:
# Source/SwiftLintFramework/Extensions/NSRegularExpression+SwiftLint.swift
# Source/SwiftLintFramework/Models/Command.swift
# Source/SwiftLintFramework/Rules/LegacyNSGeometryFunctionsRule.swift
# Tests/SwiftLintFrameworkTests/ConfigurationTests.swift
# Tests/SwiftLintFrameworkTests/IntegrationTests.swift
2016-11-30 18:42:40 +09:00
Norio Nomura
121d19b941
Support Swift Package Manager on macOS
2016-11-08 20:35:30 +09:00