Cristian Filipov
ed192f35bd
Fix long lines and unit test
2016-08-22 23:17:50 -07:00
Cristian Filipov
c2a58a574a
Merge remote-tracking branch 'upstream/master' into cfilipov/fix_absolute_path
2016-08-21 23:21:39 -07:00
Cristian Filipov
e543b54a17
Update CHANGELOG & code spacing
2016-08-21 23:15:01 -07:00
JP Simard
7bb369b92f
minor tweaks after merging #757
2016-08-21 16:37:22 -07:00
George Woodham
8ce4af6f54
Changes after PR feedback. Removed ?? nil as this does nothing. Removed some redundant conditional
2016-08-22 11:21:29 +12:00
Cristian Filipov
27aa8e3383
Use path arg as root for include/exclude paths
2016-08-18 16:44:21 -07:00
George Woodham
6b9bb2e98d
Added function to create an error when the threshold has been broken
2016-08-15 10:47:29 +12:00
George Woodham
4a3987a9b4
Using configuration parameter instead of new rule
2016-07-19 16:35:40 +12:00
JP Simard
c66c5c8df0
formatting fixes
...
found running `swiftlint autocorrect --format`
2016-05-29 14:58:28 -07:00
Brian Hardy
5c1d40ca87
Updates whitespace to avoid line length violation.
...
The shame, oh the shame.
2016-05-02 00:23:49 -04:00
Brian Hardy
88c0c8ba8e
Improves error messaging for Configuration, particularly with YAML parsing.
2016-05-02 00:05:57 -04:00
Norio Nomura
1716c6e108
Did not pass the IntegrationTests
2016-02-13 13:14:41 +09:00
Norio Nomura
f9fc51bb57
Fix nested config traversing did not stop on root path
2016-02-13 13:08:58 +09:00
JP Simard
79d796817c
deprecate use_nested_configs: always consider nested configuration files
2016-02-12 10:55:20 -08:00
JP Simard
048c5dda84
expand "config" to "configuration" in Configuration.swift
...
with an exception being made for the "use_nested_configs" configuration key,
since that's already long enough as it is
2016-02-12 10:53:36 -08:00
JP Simard
24e3adc355
make Configuration.configPath public
2016-02-10 17:26:06 -08:00
JP Simard
1af80bcc31
remove Configuration.disabledRules
2016-02-10 17:26:06 -08:00
JP Simard
1866edae77
adjust access control levels for many APIs in SwiftLintFramework
...
this is done in an effort to stabilize the API for SwiftLint 1.0.
2016-02-10 17:26:06 -08:00
JP Simard
714902ef01
treat single values as an array in the configuration dictionary
2016-02-08 13:24:14 -08:00
JP Simard
5e118070ce
log an error when supplying invalid keys in the configuration dictionary
2016-02-08 13:24:14 -08:00
JP Simard
09e9d62056
print deprecation warning for 'enabled_rules' to stderr rather than stdout
...
to follow the convention used elsewhere in the project as to not invalidate
the output structure from formatted violation reporters like json, csv &
checkstyle.
2016-02-08 13:24:14 -08:00
JP Simard
711f23a9b9
introduce private ConfigurationKey enum in Configuration.swift
...
this should replace all the hardcoded string literals representing configuration
dictionary keys.
2016-02-08 13:24:14 -08:00
JP Simard
70c1008591
use constant strings rather than literals in Configuration.swift
2016-02-08 13:24:14 -08:00
JP Simard
a0524644f5
move Configuration.rulesFromDict to RuleList.configuredRulesWithDictionary
2016-02-08 13:24:13 -08:00
JP Simard
59da7f3ce9
add --quiet flag to lint and autocorrect commands
...
addresses #386
2016-02-08 13:21:40 -08:00
JP Simard
368ee9544a
fold ConfigurableRule into Rule
2016-02-08 13:08:51 -08:00
JP Simard
c4ed26c05c
allow passing an optional --reporter parameter to swiftlint lint
2016-02-06 11:14:23 -08:00
Daniel Beard
998bed9716
Add whitelist only rules
2016-01-29 13:55:31 -08:00
Scott Hoyt
610782220c
Make ConfigurationError marginally more useful by not squashing it in Configuration.rulesFromDict.
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
c9246542ad
fix infinite recursion when using nested config files. Fixes #368
2016-01-21 12:49:04 -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
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
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
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