Commit Graph

320 Commits

Author SHA1 Message Date
JP Simard ef4e3c9ddf Merge pull request #325 from realm/nn-fix-324
Fix regex for ignoring closure parameter on detecting return value
2016-01-07 16:28:58 -08:00
Norio Nomura 8edc234e64 Fix regex for ignoring closure parameter on detecting return value
fix #324
2016-01-08 09:12:17 +09:00
Norio Nomura e1b8a12376 Add failing example 2016-01-08 08:57:49 +09:00
Raphael Randschau 02834c89c0 StatementPositionRule is a correctable rule 2016-01-07 20:02:51 +01:00
Jonas Schmid cecaddf95c Missing space in doc 2016-01-06 10:54:32 +01:00
John Estropia 897f2781a3 fixed trailing whitespace linter error 2016-01-05 15:58:29 +09:00
John Estropia dee61e7eb3 optimize counting newlines 2016-01-05 15:53:59 +09:00
John Estropia ccad677169 fix trailingNewlineCount() returning wrong count 2016-01-05 14:51:23 +09:00
JP Simard 3b9aa3bb4d release 0.5.5 2016-01-04 13:50:49 -08:00
JP Simard 8cc8c63414 Merge pull request #317 from realm/jp-fix-316
make commands with modifiers work for violations with line-only locations
2016-01-04 13:34:09 -08:00
JP Simard d60a85aae0 make commands with modifiers work for violations with line-only locations 2016-01-04 13:25:57 -08:00
Sebastian Grail 2d27db5e1f Fix typo in FunctionBodyLengthRule and TypeBodyLengthRule 2016-01-04 15:38:54 +11:00
Syo Ikeda 5b47fa25de Fix test failures 2016-01-04 08:58:08 +09:00
Syo Ikeda ac79c8be99 Update Commandant to 0.8.1 2016-01-04 08:58:08 +09:00
JP Simard 948566ae2f fail if YAML doesn't parse 2016-01-03 14:11:27 -08:00
JP Simard 4421657de5 release 0.5.4 2016-01-02 16:13:43 -08:00
JP Simard 1e553a54bb fix ConfigurationTests
by moving String.stringByAppendingPathComponent to the test

also remove @testable annotation because it is unused
2016-01-02 16:06:32 -08:00
JP Simard fc3545be1b minor refactorings 2016-01-02 15:59:16 -08:00
JP Simard 281a4dc587 no longer mirror some NSString methods in a String extension 2016-01-02 15:52:56 -08:00
Scott Hoyt 6c2adce0cf Cleaned up project mock *.yml's. 2016-01-02 15:41:53 -08:00
Scott Hoyt 246adf6353 No longer needed RuleMocks at global scope. 2016-01-02 15:41:53 -08:00
Scott Hoyt 39a0953f32 Replace manual config mocks with file-driven. 2016-01-02 15:41:53 -08:00
Scott Hoyt 314f72a7d7 Added Nested Configuration testing. 2016-01-02 15:41:53 -08:00
Scott Hoyt 5b023501c2 Tested merge. 2016-01-02 15:41:53 -08:00
Scott Hoyt 369ef23c1f Extracted Configuration mocks to test class constants. 2016-01-02 15:41:53 -08:00
Scott Hoyt 7b2f4bff43 Moved == implementation for [Rule] to more appropriate spot. Wrote missing test. 2016-01-02 15:41:53 -08:00
Scott Hoyt fcf9396a08 Added isEqual for Rule and ParameterizedRule. Made Configuration and RuleParameter conform to Equatable. Wrote tests to verify. All done in support of testing recursive configuration file search. 2016-01-02 15:41:53 -08:00
Scott Hoyt 88749c1e87 Updated comments. 2016-01-02 15:41:53 -08:00
Scott Hoyt 4361adca10 Silence the logging inside of Configuration.init instead. 2016-01-02 15:41:53 -08:00
Scott Hoyt f35f3d4a6c Revert "Silently load nested configurations."
This reverts commit d8c418e167.
2016-01-02 15:41:53 -08:00
Scott Hoyt 0d4fce9520 Silently load nested configurations. 2016-01-02 15:41:53 -08:00
Scott Hoyt ae15223789 Refactor Configuration initialization from yml for efficiency. 2016-01-02 15:41:53 -08:00
Scott Hoyt 4b0b4d7431 Added use_nested_configs option for .swiftlint.yml (defaults to no). 2016-01-02 15:41:53 -08:00
Scott Hoyt bd26e4c3af Use new String extension. 2016-01-02 15:41:53 -08:00
Scott Hoyt 9188d161f5 Added recursive search for configurations. 2016-01-02 15:41:53 -08:00
Scott Hoyt 43edbdb0d7 Added String extensions. 2016-01-02 15:41:53 -08:00
JP Simard 029a5eb008 Merge pull request #292 from realm/jp-command-modifiers
Support command comment modifiers
2015-12-30 15:32:59 -08:00
JP Simard ccdebe9791 Merge pull request #300 from realm/jp-test-violation-locations
test violation locations
2015-12-27 22:04:18 -05:00
JP Simard c8fa4e08f2 only generate violations once for triggering examples in verifyRule() 2015-12-27 21:51:06 -05:00
JP Simard 65f992d8fe Support command comment modifiers
addresses #222
2015-12-27 21:06:12 -05:00
Norio Nomura 090c061255 Fix #295 2015-12-28 09:23:22 +09:00
Norio Nomura e120984a81 Add failing test to ValidDocsRule.swift
Check for multibyte characters in .swift
2015-12-28 09:23:22 +09:00
JP Simard ce6ef95668 Merge pull request #296 from realm/fix-294
Fix NSRangeException crash in swiftlint
2015-12-27 19:05:10 -05:00
JP Simard 85d8c68978 test violation locations 2015-12-27 13:33:42 -05:00
Norio Nomura 5b63b6bfa7 Fix #294 2015-12-27 14:52:22 +09:00
JP Simard e546ecb094 add checkstyle reporter. addresses #277 2015-12-25 02:31:38 -05:00
JP Simard 8d529f1804 Fix multibyte handling in many rules 2015-12-24 20:59:15 -05:00
JP Simard 0c7e7299f4 release 0.5.3 2015-12-23 23:57:42 -05:00
JP Simard 4c770d52c9 fix superfluousOrMissingParameterDocumentation regression
where commentParameters.count > labelsAndParams.count
2015-12-23 23:45:03 -05:00
JP Simard d50a78e85c don't require documentation for unlabelled parameters 2015-12-23 23:26:49 -05:00