Changelog History
Page 10
-
v0.9.1 Changes
๐ฅ Breaking
- None.
โจ Enhancements
- None.
๐ Bug Fixes
๐ Fix force unwrap rule missed cases with quotes.
Norio Nomura #535๐ Fix issues with nested
.swiftlint.ymlfile resolution.
Norio Nomura #543
-
v0.9.0 Changes
๐ฅ 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 Simard๐ง
Configuration(path:optional:silent)has been changed toConfiguration(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 toconfiguredRules.
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 #479All instances of the abbreviation "config" in the API have been expanded to "configuration". The
--configcommand line parameter anduse_nested_configsconfiguration key are unaffected.
JP SimardThe
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 betweenxcode(default),json,csvorcheckstyle.
JP Simard #440๐
swiftlint rulesnow shows a configuration description for all rules.
JP Simard๐
lintandautocorrectcommands 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 #466Fixed an issue where
variable_nameortype_namewould always report a violation when configured with only awarningvalue on eithermin_lengthormax_length.
JP Simard #522
-
v0.8.0 Changes
๐ฅ Breaking
โ Setting only warning on
SeverityLevelsConfigrules now disables the error value.
Robin Kunde #409enabled_ruleshas been renamed toopt_in_rules.
Daniel Beard
โจ Enhancements
โ Add
whitelist_rulesrule whitelists in config files.
Daniel Beard #256๐ Improve performance of
ColonRule,LineLengthRule&syntaxKindsByLine.
Norio Nomuraโ Add command to display rule description:
swiftlint rules <rule identifier>.
Tony Li #392โ Add
FunctionParameterCountRule.
Denis Lebedev #415Measure complexity of nested functions separately in
CyclomaticComplexityRule.
Denis Lebedev #424โ Added exception for multi-line
if/guard/whileconditions to allow opening brace to be on a new line inOpeningBraceRule.
Scott Hoyt #355๐จ The
rulescommand now prints a table containing values for:identifier,opt-in,correctable,enabled in your config&configuration.
JP Simard #392โฌ๏ธ Reduce maximum memory usage.
Norio Nomura
๐ Bug Fixes
๐ Fix more false positives in
ValidDocsRule.
diogoguimaraes #451๐ Fix
trailing_newlineautocorrect to handle more than one violation per line.
Daniel Beard #465๐ Fix complexity measurement for switch statements in
CyclomaticComplexityRule.
Denis Lebedev #461
-
v0.7.2 Changes
๐ฅ Breaking
- None.
โจ Enhancements
- None.
๐ Bug Fixes
- ๐ Fix several false positives in
ValidDocsRule.
diogoguimaraes #375
-
v0.7.1 Changes
๐ฅ Breaking
- None.
โจ Enhancements
๐ Improve performance of
MissingDocsRule.
Norio Nomuraโ Added
CustomRules.
Scott Hoyt
#123โ Added opt-in
ForceUnwrappingRuleto issue warnings for all forced unwrappings.
Benjamin Otto #55
๐ Bug Fixes
- ๐ Fix several false positives in
ValidDocsRule.
diogoguimaraes #375
-
v0.7.0 Changes
๐ฅ Breaking
Replaced all uses of
XPCDictionarywith[String: SourceKitRepresentable].
JP SimardVariableNameMinLengthRuleandVariableNameMaxLengthRulehave been removed.VariableNameRulenow has this functionality.
Scott Hoyt๐
ViolationLevelRulehas been removed. This functionality is now provided byConfigProviderRuleandSeverityLevelsConfig.
Scott Hoyt
โจ Enhancements
TypeBodyLengthRulenow does not count comment or whitespace lines.
Marcelo Fabri #369FunctionBodyLengthRulenow does not count comment or whitespace lines.
Marcelo Fabri #258๐ง All
Rules are now configurable in at least their severity:SeverityConfig.
Scott Hoyt #371 #130 #268TypeNameRuleandVariableNameRuleconform toConfigProviderRuleusingNameConfigto supportmin_length,max_length, andexcludednames.
Scott Hoyt #388 #259 #191โ Add
CyclomaticComplexityRule.
Denis Lebedev
๐ Bug Fixes
๐ Fix crash caused by infinite recursion when using nested config files.
JP Simard #368๐ Fix crash when file contains NULL character.
Norio Nomura #379
-
v0.6.0 Changes
๐ฅ Breaking
๐ง
ParameterizedRuleis removed. UseConfigurableRuleinstead.
Scott Hoyt #353To activate a
Rule, it must be added to the globalmasterRuleList.
Scott Hoyt
โจ Enhancements
๐
ConfigurableRuleprotocol allows for improved rule configuration. SeeCONTRIBUTINGfor more details.
Scott Hoyt #303๐
VariableNameMinLengthRulenow supports excluding certain variable names (e.g. "id").
Scott Hoyt #231๐ง
ViolationLevelRuleprovides defaultConfigurableRuleimplementation for rules that only need integer error and warning levels.
Scott Hoytโ Add AutoCorrect for StatementPositionRule.
Raphael Randschauโ Add AutoCorrect for CommaRule.
Raphael Randschauโ Add AutoCorrect for LegacyConstructorRule.
Raphael Randschau๐ Improve performance of
LineLengthRule.
Norio Nomuraโ Add ConditionalBindingCascadeRule.
Aaron McTavish #202โ Add LegacyConstantRule.
Aaron McTavish #319โ Add opt-in rule to encourage checking
isEmptyover comparingcountto zero.
JP Simard #202โ Add opt-in "Missing Docs" rule to detect undocumented public declarations.
JP Simard
๐ Bug Fixes
- None.
-
v0.5.6 Changes
๐ฅ Breaking
- None.
โจ Enhancements
- ๐ Improve performance by reducing calls to SourceKit.
Norio Nomura
๐ Bug Fixes
๐ Fix homebrew deployment issues.
Norio Nomura๐ AutoCorrect for TrailingNewlineRule only removes at most one line.
John Estropiavalid_docsdid not detect tuple as return value.
Norio Nomura #324Escape strings when using CSV reporter.
JP Simard
-
v0.5.5 Changes
http://www.amazon.com/Magic-Drying-Fluff-Balls-Softening/dp/B001EIW1SG
๐ฅ Breaking
- None.
โจ Enhancements
- None.
๐ Bug Fixes
-
v0.5.4 Changes
๐ฅ Breaking
- โ Remove
Location.init(file:offset:)in favor of the more explicitLocation.init(file:byteOffset:)&Location.init(file:characterOffset:).
JP Simard
โจ Enhancements
โ Add
checkstylereporter to generate XML reports in the Checkstyle 4.3 format.
JP Simard #277๐ Support command comment modifiers (
previous,this&next) to limit the command's scope to a single line.
JP Simard #222โ Add nested
.swiftlint.ymlconfiguration support.
Scott Hoyt #299
๐ Bug Fixes
๐ Fix an
NSRangeExceptioncrash.
Norio Nomura #294The
valid_docsrule now handles multibyte characters.
Norio Nomura #295
- โ Remove