Skoti
b9841595a5
Separated nesting level counting for types and functions in nesting rule ( fixes #1151 ). Enhanced nesting rule to search for nested types and functions within closures and statements. Enhanced nesting rule to allow for one nested type within a function even if breaking a maximum type level nesting ( fixes #1151 ).
2020-11-09 12:06:34 -05:00
Marcelo Fabri
240e25232f
Add computed_accessors_order rule
...
Fixes #3158
2020-08-04 03:23:36 -07:00
Marcelo Fabri
dfb447490e
Enable collection_alignment on SwiftLint
2018-09-11 09:31:54 -07:00
JP Simard
84bfdca774
Enable File Name rule for SwiftLint & fix violations
2018-05-11 22:17:40 -07:00
JP Simard
5d4a7d7cc1
Type annotation over 'as' cast
2018-05-05 17:07:45 -07:00
JP Simard
6ff33e675b
Refactor
2018-05-05 16:24:54 -07:00
JP Simard
22a6187553
Merge branch 'master' into attibute_and_modifier_order
...
* master:
Remove all file headers
Make fallthrough rule opt-in
Update the swift file and run the unit tests
Fix a typo
2018-05-05 15:25:43 -07:00
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
Daniel Metzing
61259692ed
Removing s from rule name
2018-04-27 08:59:02 +02:00
Daniel Metzing
9a7005912a
Add modifiers_order rule
2018-04-26 20:25:58 +02:00
Ornithologist Coder
83c47cc493
Update tests not to trigger xctfail_message_rule
2017-08-02 14:52:36 +02:00
Marcelo Fabri
a4aeaedbe0
Add tests and improve behavior
2017-07-18 17:57:59 +02:00
Marcelo Fabri
e86763739f
Move kind to RuleDescription
2017-07-02 15:50:16 +02:00
Marcelo Fabri
102bca6155
Use validates_start_with_lowercase key on NameConfiguration
...
Fixes #1626
2017-06-18 20:13:31 +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
Javier Hernández
9d31eaccda
Rename option to validates_start_lowercase
2017-05-10 20:53:44 +01:00
t_hayashi
6872018862
Add configuration for NestingRule
2017-03-04 01:14:30 +09:00
JP Simard
9e7cdc3282
update SwiftLintFramework/Protocols to follow Swift 3 API Design Guidelines
2017-01-09 19:19:25 -08:00
JP Simard
af9331694c
fix dictionary literal syntax style
2017-01-09 16:21:31 -08:00
Marcelo Fabri
55f7b04a6f
Fixing existing violations
2016-12-26 18:44:37 -02: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
19fad01b29
make all enum members lowercase to comply with Swift 3 API Guidelines
2016-12-01 22:16:21 -08:00
Norio Nomura
121d19b941
Support Swift Package Manager on macOS
2016-11-08 20:35:30 +09:00