JP Simard
|
a2f06246d0
|
improve MissingDocsRule
by checking for documentation comment body rather than doc comment attribute
|
2016-01-13 15:59:37 -08:00 |
|
JP Simard
|
9eabd45ce5
|
add "Missing Docs" rule
|
2016-01-13 15:59:37 -08:00 |
|
JP Simard
|
4c52163a70
|
add rule to encourage checking isEmpty over comparing count to zero
|
2016-01-13 15:41:25 -08:00 |
|
Scott Hoyt
|
55fa348b6d
|
Made ParameterizedRule protocol inherit from ConfigurableRule with default implementation for conformance.
|
2016-01-11 11:21:49 -08:00 |
|
Scott Hoyt
|
dd243edf53
|
Removed unnecessary setUp override.
|
2016-01-11 11:21:49 -08:00 |
|
Scott Hoyt
|
35c92ff8fe
|
Fix style issues.
|
2016-01-11 11:21:49 -08:00 |
|
Scott Hoyt
|
943424dbb9
|
Fixed dictionary literal style.
|
2016-01-11 11:21:49 -08:00 |
|
Scott Hoyt
|
db03299828
|
Remove redundant module reference.
|
2016-01-11 11:21:49 -08:00 |
|
Scott Hoyt
|
6bcc06256c
|
Removed unnecessary inits.
|
2016-01-11 11:21:49 -08:00 |
|
Scott Hoyt
|
7efb020a4b
|
Added tests for configuring rules from config dictionary.
|
2016-01-11 11:21:49 -08:00 |
|
Scott Hoyt
|
fa7d4024e3
|
Switched Configurable rule to a failable initializer that takes AnyObject.
|
2016-01-11 11:21:49 -08:00 |
|
Scott Hoyt
|
1448576039
|
Added tests for configuring ParameterizedRules with config dictionaries.
|
2016-01-11 11:21:49 -08:00 |
|
Scott Hoyt
|
9b6f3070a3
|
Wrote ConfigurableRule, made ParameterizedRule's conform, moved configuration into rules themselves.
|
2016-01-11 11:21:49 -08:00 |
|
Scott Hoyt
|
2922ff14c4
|
Extracted Yaml parsing tests and rewrote Configuration tests to be Dictionary-based.
|
2016-01-11 11:18:54 -08:00 |
|
Scott Hoyt
|
eab96555e5
|
Switch to non optional Configuration initialization from dictionary.
|
2016-01-11 11:18:54 -08:00 |
|
Scott Hoyt
|
6510960fa6
|
Began extracting Yaml dependency out of Configuration and into YamlParser
|
2016-01-11 11:18:54 -08:00 |
|
Scott Hoyt
|
31b9cc0149
|
Remove redundant YAML functions from Configuration.
|
2016-01-11 11:18:54 -08:00 |
|
Scott Hoyt
|
ddcc67273b
|
Added tests for new Yaml+SwiftLint extensions.
|
2016-01-11 11:14:54 -08:00 |
|
Aaron McTavish
|
752b18ade2
|
Remove unnecessary whitespace
|
2016-01-11 07:40:37 -08:00 |
|
Aaron McTavish
|
fe3136d8ff
|
Adding ConditionalBindingCascadeRule
|
2016-01-11 07:40:16 -08:00 |
|
Sebastian Grail
|
2d27db5e1f
|
Fix typo in FunctionBodyLengthRule and TypeBodyLengthRule
|
2016-01-04 15:38:54 +11: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 |
|
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 |
|
JP Simard
|
c8fa4e08f2
|
only generate violations once for triggering examples in verifyRule()
|
2015-12-27 21:51:06 -05:00 |
|
JP Simard
|
85d8c68978
|
test violation locations
|
2015-12-27 13:33:42 -05:00 |
|
JP Simard
|
e546ecb094
|
add checkstyle reporter. addresses #277
|
2015-12-25 02:31:38 -05:00 |
|
Yasuhiro Inami
|
05efe54d28
|
Add ClosingBraceRule.
|
2015-12-19 15:59:32 +09:00 |
|
michallaskowski
|
f3e5277641
|
Exclude files from included folders.
|
2015-12-13 01:20:49 +01:00 |
|
JP Simard
|
4d2db186f0
|
fix spelling in assertCorrection failures
|
2015-12-05 21:09:43 -08:00 |
|
JP Simard
|
5be62adfd4
|
report corrections
|
2015-12-05 21:09:43 -08:00 |
|
JP Simard
|
9498153690
|
test corrections in verifyRule
|
2015-12-05 21:09:43 -08:00 |
|
JP Simard
|
9cc9e64374
|
add Valid Docs rule
|
2015-11-29 21:58:16 -08:00 |
|
Marcelo Fabri
|
1fec14180f
|
Adding LegacyConstructorRule
|
2015-11-29 01:46:06 -02:00 |
|
JP Simard
|
5ebc80a689
|
minor stylistic refactor of verifyRule
|
2015-11-27 14:39:14 -08:00 |
|
JP Simard
|
8d86e8647c
|
verify that triggering examples in a string literal don't trigger violations
|
2015-11-23 15:07:39 -08:00 |
|
JP Simard
|
737ab0ca6f
|
only run the tests for the current rule in verifyRule(_:)
this makes tests run twice as fast (from 13.5s to 6.2s)
|
2015-11-21 18:54:48 -08:00 |
|
JP Simard
|
cacc1aa616
|
use regular comments rather than doc comments when testing commented violations
|
2015-11-20 23:38:11 -08:00 |
|
JP Simard
|
427d58b14e
|
fix formatting issues in ExtendedNSStringTests
|
2015-11-20 23:37:48 -08:00 |
|
JP Simard
|
173c0058ca
|
Merge pull request #217 from crimsonwoods/fix_issue_213_wrong_line_number_is_detected
Fix an issue: wrong line number and/or index is reported
|
2015-11-17 19:44:57 -08:00 |
|
crimsonwoods
|
2611a75ffb
|
Add test code to verify change: 247f02eff4
That change is made to fix issue #213.
|
2015-11-18 12:05:08 +09:00 |
|
JP Simard
|
73896ee04c
|
add force try rule
|
2015-11-17 16:51:37 -08:00 |
|
Samuel Giddins
|
d24bc96f90
|
[TestHelpers] Consolidate comment testing
|
2015-11-17 16:39:39 -06:00 |
|
Samuel Giddins
|
426373824e
|
[StringRuleTests] Omit default parameter value
|
2015-11-17 16:37:05 -06:00 |
|