Repository navigation
0.9.0: Appliance Maintenance
This is a big release, with lots of breaking changes and deprecations for users of SwiftLintFramework. If we've removed functionality from the framework's public API that you were depending on, please let us know by filing an issue so we can consider adding it back in.
Breaking
Linter.reporterhas been removed andConfiguration.reporterFromString(_:)
has been renamed to a free function:reporterFromString(_:).
JP Simard_ConfigProviderRule&ConfigurableRulehave been removed and their
requirements have been moved toRule.
JP SimardConfiguration(path:optional:silent)has been changed to
Configuration(path:rootPath:optional:quiet:).
JP Simard- The static function
Configuration.rulesFromDict(_:ruleList:)has been moved
to an instance method:RuleList.configuredRulesWithDictionary(_:).
JP Simard - The
rulesparameter in theConfigurationinitializer has been renamed to
configuredRules.
JP Simard - Removed a large number of declarations from the public SwiftLintFramework API.
This is being done to minimize the API surface area in preparation of a 1.0
release. See #507 for a
complete record of this change.
JP Simard
#479 - All instances of the abbreviation "config" in the API have been expanded to
"configuration". The--configcommand line parameter and
use_nested_configsconfiguration key are unaffected.
JP Simard - The
use_nested_configsconfiguration key has been deprecated and its value
is now ignored. Nested configuration files are now always considered.
JP Simard
Enhancements
swiftlint lintnow accepts an optional--reporterparameter which
overrides existingreportervalues in the configuration file. Choose between
xcode(default),json,csvorcheckstyle.
JP Simard
#440swiftlint rulesnow shows a configuration description for all rules.
JP Simardlintandautocorrectcommands now accept a--quietflag that prevents
status messages like 'Linting ' & 'Done linting' from being logged.
JP Simard
#386- All top-level keys in a configuration file that accept an array now also
accept a single value.
e.g.included: Sourceis equivalent toincluded:\n - Source.
JP Simard
#120 - Improve performance of
FunctionParameterCountRule.
Norio Nomura - Improve performance of
ColonRule.
Norio Nomura
Bug Fixes
- Fix case sensitivity of keywords for
valid_docs.
Ankit Aggarwal
#298 - Fixed inconsistencies between violations & corrections in
StatementPositionRule.
JP Simard
#466 - A warning will now be logged when invalid top-level keys are included in the
configuration file.
JP Simard
#120 - Fixed
LegacyConstructorRulefrom correcting legacy constructors in string
literals.
JP Simard
#466 - Fixed an issue where
variable_nameortype_namewould always report a
violation when configured with only awarningvalue on eithermin_length
ormax_length.
JP Simard
#522