Commit Graph

1324 Commits

Author SHA1 Message Date
Marcelo Fabri 55f7b04a6f Fixing existing violations 2016-12-26 18:44:37 -02:00
Marcelo Fabri 570e627f9a Sorted imports (#1071)
Add rule requiring imports be sorted
2016-12-26 18:28:43 -02:00
Marcelo Fabri d6a15f7341 PR feedback 2016-12-26 13:34:50 -02:00
Marcelo Fabri c43f808cfc Re-enable ConfigurationTests.testExcludedPaths 2016-12-26 13:32:13 -02:00
Marcelo Fabri 635b809d8f Re-enable testLeadingWhitespace 2016-12-26 13:32:13 -02:00
Marcelo Fabri 9d64a22426 Re-enable testVariableName and testTypeName on Linux 2016-12-26 13:32:13 -02:00
JP Simard 27d1a49241 Merge pull request #1070 from marcelofabri/redundant_void_return
Add redundant_void_return rule
2016-12-25 22:57:25 -08:00
JP Simard 8fd337727b improve wording when SourceKit fails 2016-12-25 22:52:19 -08:00
Marcelo Fabri c6ac9b919c Add redundant_void_return rule
Fixes #1066
2016-12-26 01:01:04 -02:00
Marcelo Fabri 278f99fe3e Make empty_parentheses_with_trailing_closure correctable 2016-12-24 22:31:09 -02:00
Marcelo Fabri 82d65c3daf Merge pull request #1055 from marcelofabri/number_separator_rule_improvements
Number separator rule improvements
2016-12-24 20:03:14 -02:00
Marcelo Fabri fb6066ce74 sign, not signal 2016-12-24 19:45:16 -02:00
Marcelo Fabri 79bcbf64c2 redundant_nil_coalescing rule is now correctable 2016-12-24 19:37:45 -02:00
Marcelo Fabri 8aa6ebd012 number_separator is now correctable 2016-12-24 19:36:34 -02:00
Marcelo Fabri 045e2cadcb Fix false negative on number_separtor rule with negative numbers 2016-12-24 18:45:44 -02:00
Marcelo Fabri 5c39a76526 Add redundant_optional_initialization rule
Fixes #1052
2016-12-24 17:28:45 -02:00
JP Simard 8ce031ff5f add substructure member to Dictionary+SwiftLint.swift 2016-12-23 12:35:01 -08:00
Marcelo Fabri 9253977bb3 Handle Optional<String>.Type false positive 2016-12-23 17:38:07 -02:00
Marcelo Fabri 0bd1647d1f Handle Optional<T>.self false positive 2016-12-23 16:59:01 -02:00
Marcelo Fabri a3b1e7f248 syntactic_sugar rule now doesn't flag declarations that can't be fixed
Fixes #928
2016-12-23 16:51:16 -02:00
Marcelo Fabri 49eabb7ee1 Merge pull request #1040 from marcelofabri/class-protocols-rule
Add class_delegate_protocol rule
2016-12-23 16:50:12 -02:00
Marcelo Fabri 47c6ae5c2f Check if protocol inherits from another Delegate 2016-12-23 16:34:03 -02:00
Marcelo Fabri ba8fe5f8b4 Ignore close parentheses on vertical_parameter_alignment rule
Fixes #1042
2016-12-23 12:46:22 -02:00
Marcelo Fabri 608a2725c8 Add class_delegate_protocol rule
Fixes #1039
2016-12-23 02:37:44 -02:00
Matt Rubin a4944b9b41 Unwrap an unnecessarily-wrapped line in TrailingCommaRule 2016-12-22 23:13:59 -05:00
Matt Rubin 86b0f4e08e Merge master into trailing-comma-rule-reason-string 2016-12-22 23:08:05 -05:00
Marcelo Fabri 7937438947 Date format 2016-12-22 22:05:46 -02:00
Marcelo Fabri d480c865bd Fix violation 2016-12-22 21:21:23 -02:00
Marcelo Fabri 64a624ccf6 Add vertical_parameter_alignment rule
Fixes #1033
2016-12-22 21:21:23 -02:00
JP Simard e4fa18df06 release 0.15.0 2016-12-22 14:40:12 -08:00
Matt Rubin 96a1d4b4e3 Add more helpful reason strings to TrailingCommaRule 2016-12-22 17:24:02 -05:00
JP Simard c82cc6d9f6 fix JSON reporter on Linux and re-enable its unit test
the printed JSON string is slightly different on Linux than it is on
Darwin, but produces equivalent JSON
2016-12-22 10:39:26 -08:00
JP Simard 07bae496f1 Merge pull request #1030 from marcelofabri/bugfix_1028
Fix false positive in `operator_usage_whitespace`
2016-12-22 09:34:56 -08:00
Marcelo Fabri 37771fd156 Fix false positive in operator_usage_whitespace
Fixes #1028
2016-12-22 12:23:33 -02:00
Marcelo Fabri 3d660123b9 PR feedback 2016-12-22 12:11:04 -02:00
Marcelo Fabri d7e583f0a5 Make first_where rule opt-in 2016-12-22 11:57:06 -02:00
Marcelo Fabri b18c98084c Fix existing violations 2016-12-22 11:57:06 -02:00
Marcelo Fabri 56f6fcdd5d Add first_where rule
Fixes #1005
2016-12-22 11:57:06 -02:00
Marcelo Fabri cc8150dd77 Fix crash in closure_parameter_position rule.
Fixes #1026
2016-12-22 01:14:11 -02:00
Marcelo Fabri 09d031dc3e PR feedback 2016-12-22 00:14:34 -02:00
Marcelo Fabri f7cb7bae2c PR feedback 2016-12-22 00:09:27 -02:00
Marcelo Fabri fdff7b1dac Closure end indentation 2016-12-22 00:09:27 -02:00
Marcelo Fabri b4ae1eccbe Make dictionary colon correctable 2016-12-22 00:09:27 -02:00
Marcelo Fabri 666373dce6 Add more tests 2016-12-22 00:09:27 -02:00
Marcelo Fabri 68ee2008af Fixing existing violations 2016-12-22 00:09:27 -02:00
Marcelo Fabri 1d06302643 Add dictionary colon validation to colon rule
Fixes #603
2016-12-22 00:09:27 -02:00
Marcelo Fabri 367bbb84ff Merge pull request #1010 from marcelofabri/120-is-better-than-100
Changing the default line length limit to 120
2016-12-22 00:00:27 -02:00
JP Simard 8858b3c484 sort imports in Location.swift 2016-12-21 13:26:55 -08:00
Marcelo Fabri ca958a5b67 Merge pull request #1023 from marcelofabri/bugfix_1020
Fix false positive in `switch_case_on_newline` when switching over a selector
2016-12-21 18:31:32 -02:00
Jamie Edge 8c89acdf82 Merge branch 'master' into relative-path-html-report
# Conflicts:
#	CHANGELOG.md
2016-12-21 20:29:41 +00:00