Scott Hoyt
|
ddcde17f04
|
Add min and max length checking responsibilities to VariableNameRule.
|
2016-01-23 17:42:13 -08:00 |
|
Scott Hoyt
|
0b61c63937
|
Extracted Rule Configuration structs to own files.
|
2016-01-23 17:42:13 -08:00 |
|
Scott Hoyt
|
ccbcb537b5
|
Convert ConfigurableRule to throwing init instead of failing.
|
2016-01-23 17:42:13 -08:00 |
|
JP Simard
|
61920d2ab7
|
avoid Swift 2.2 deprecations
|
2016-01-22 21:09:28 -08:00 |
|
JP Simard
|
ace0999154
|
update SourceKitten to 0.8.0
|
2016-01-22 19:19:15 -08:00 |
|
JP Simard
|
c9246542ad
|
fix infinite recursion when using nested config files. Fixes #368
|
2016-01-21 12:49:04 -08:00 |
|
JP Simard
|
9acc4c56b3
|
rewrite Location.description to compile 25x faster
before: 1097.1ms
after: 44.2ms
|
2016-01-18 13:52:37 -08:00 |
|
Scott Hoyt
|
e389aafa0c
|
Removed ruleParametersFromArray.
|
2016-01-14 08:53:18 -08:00 |
|
Aaron McTavish
|
20dbbe81b7
|
Implement LegacyConstantRule
From #319
CGGeometry: Prefer struct-scope constants CGRect.infinite, CGRect.null,
etc. over global constants CGRectInfinite, CGRectNull, etc.
|
2016-01-13 17:17:35 -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 |
|
JP Simard
|
2f3b2096e6
|
support opt-in rules
|
2016-01-12 12:11:09 -08:00 |
|
Scott Hoyt
|
46838b11f1
|
Fixed access level issues.
|
2016-01-11 11:21:49 -08:00 |
|
Scott Hoyt
|
da45c7fe88
|
Switched out force cast with failable cast in Configuration.rulesFromDict()
|
2016-01-11 11:21:49 -08:00 |
|
Scott Hoyt
|
7bb8316664
|
Removed new test rule from master list and made to pass tests.
|
2016-01-11 11:21:49 -08:00 |
|
Scott Hoyt
|
dd58175000
|
Added example VariableNameMinLengthNewRule using ConfigurableRule.
|
2016-01-11 11:21:49 -08:00 |
|
Scott Hoyt
|
b654dc0c8b
|
Clean up some linting warnings.
|
2016-01-11 11:21:49 -08:00 |
|
Scott Hoyt
|
8cd2d9f3f2
|
Removed ruleParametersFromArray from Configuration.
|
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
|
9b6f3070a3
|
Wrote ConfigurableRule, made ParameterizedRule's conform, moved configuration into rules themselves.
|
2016-01-11 11:21:49 -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
|
f0cb4d81c3
|
Added dictionary-based initialization for Configuration.
|
2016-01-11 11:14:54 -08:00 |
|
Scott Hoyt
|
909ca9fcb6
|
Added masterRuleList.
|
2016-01-11 11:14:54 -08:00 |
|
Scott Hoyt
|
ddcc67273b
|
Added tests for new Yaml+SwiftLint extensions.
|
2016-01-11 11:14:54 -08:00 |
|
Scott Hoyt
|
a81b228e5f
|
Extracted Yaml extensions out of Configuration.swift
|
2016-01-11 11:14:54 -08:00 |
|
Aaron McTavish
|
c5873a4620
|
Fixed alphabetising list
|
2016-01-11 07:40:44 -08:00 |
|
Aaron McTavish
|
fe3136d8ff
|
Adding ConditionalBindingCascadeRule
|
2016-01-11 07:40:16 -08:00 |
|
JP Simard
|
d60a85aae0
|
make commands with modifiers work for violations with line-only locations
|
2016-01-04 13:25:57 -08:00 |
|
JP Simard
|
948566ae2f
|
fail if YAML doesn't parse
|
2016-01-03 14:11:27 -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
|
5b023501c2
|
Tested merge.
|
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
|
9188d161f5
|
Added recursive search for configurations.
|
2016-01-02 15:41:53 -08:00 |
|
JP Simard
|
65f992d8fe
|
Support command comment modifiers
addresses #222
|
2015-12-27 21:06:12 -05: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 |
|
Norio Nomura
|
859e8b2f03
|
Change to fail on YAML parser error if configuration file is required
This will help user to noticing YAML parser error.
|
2015-12-23 15:29:19 +09:00 |
|
Norio Nomura
|
a1f734e55d
|
Add printing error when Yaml.load(_:) returns error
This will help finding error from YAML parser without using third-party YAML validator.
|
2015-12-23 15:08:54 +09:00 |
|
Yasuhiro Inami
|
05efe54d28
|
Add ClosingBraceRule.
|
2015-12-19 15:59:32 +09:00 |
|