JP Simard
4bf69d7d84
Remove newlines from switch case reason
2018-05-06 14:33:47 -07:00
freak4pc
1ba963c443
Address PR feedback from @jpsim
2018-05-07 00:06:00 +03:00
freak4pc
3738512511
Added indented triggering cases
2018-05-06 23:34:14 +03:00
freak4pc
d429ad4358
Get rid of duplicated RuleConfiguration and use reason instead
2018-05-06 23:34:14 +03:00
freak4pc
7809ac731a
Add specific violation reason for switch_case_alignment based on configuration.
2018-05-06 23:34:14 +03:00
freak4pc
fbdba25636
Further abstracted non-triggering and triggering examples based on config.
...
Also updated ACL to be internal for rule Examples.
2018-05-06 23:34:14 +03:00
freak4pc
8e0202cfc8
Added violation marker and fixed tests
2018-05-06 23:34:14 +03:00
freak4pc
ca47802fd4
Add tests for indented and non-indented cases (still failing WIP)
2018-05-06 23:34:14 +03:00
freak4pc
9cc41ac9cf
Switched to indented_cases bool style
2018-05-06 23:34:14 +03:00
freak4pc
e8b64b4a72
Add indentation to SwitchCaseAlignmentRule
2018-05-06 23:34:13 +03: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
Norio Nomura
2a0ac455bc
'flatMap' is deprecated: renamed to 'compactMap(_:)'
2018-04-08 13:28:09 +09:00
Austin Lu
9f3ff26668
Enable rule by default, and update wording
2017-09-12 09:26:42 -07:00
Austin Lu
b2a17026cc
Add SwitchCaseAlignmentRule
2017-09-12 09:26:42 -07:00