Changelog History
Page 9
-
v0.9.0 Changes
๐ฅ Breaking
๐
Linter.reporter
has been removed andConfiguration.reporterFromString(_:)
has been renamed to a free function:reporterFromString(_:)
.
JP Simard๐ง
_ConfigProviderRule
&ConfigurableRule
have 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
rules
parameter in theConfiguration
initializer 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
--config
command line parameter anduse_nested_configs
configuration key are unaffected.
JP SimardThe
use_nested_configs
configuration key has been deprecated and its value is now ignored. Nested configuration files are now always considered.
JP Simard
โจ Enhancements
๐
swiftlint lint
now accepts an optional--reporter
parameter which overrides existingreporter
values in the configuration file. Choose betweenxcode
(default),json
,csv
orcheckstyle
.
JP Simard #440๐
swiftlint rules
now shows a configuration description for all rules.
JP Simard๐
lint
andautocorrect
commands now accept a--quiet
flag 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: Source
is 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
LegacyConstructorRule
from correcting legacy constructors in string literals.
JP Simard #466Fixed an issue where
variable_name
ortype_name
would always report a violation when configured with only awarning
value on eithermin_length
ormax_length
.
JP Simard #522
-
v0.8.0 Changes
๐ฅ Breaking
โ Setting only warning on
SeverityLevelsConfig
rules now disables the error value.
Robin Kunde #409enabled_rules
has been renamed toopt_in_rules
.
Daniel Beard
โจ Enhancements
โ Add
whitelist_rules
rule 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
/while
conditions to allow opening brace to be on a new line inOpeningBraceRule
.
Scott Hoyt #355๐จ The
rules
command 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_newline
autocorrect 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
ForceUnwrappingRule
to 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
XPCDictionary
with[String: SourceKitRepresentable]
.
JP SimardVariableNameMinLengthRule
andVariableNameMaxLengthRule
have been removed.VariableNameRule
now has this functionality.
Scott Hoyt๐
ViolationLevelRule
has been removed. This functionality is now provided byConfigProviderRule
andSeverityLevelsConfig
.
Scott Hoyt
โจ Enhancements
TypeBodyLengthRule
now does not count comment or whitespace lines.
Marcelo Fabri #369FunctionBodyLengthRule
now does not count comment or whitespace lines.
Marcelo Fabri #258๐ง All
Rule
s are now configurable in at least their severity:SeverityConfig
.
Scott Hoyt #371 #130 #268TypeNameRule
andVariableNameRule
conform toConfigProviderRule
usingNameConfig
to supportmin_length
,max_length
, andexcluded
names.
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
๐ง
ParameterizedRule
is removed. UseConfigurableRule
instead.
Scott Hoyt #353To activate a
Rule
, it must be added to the globalmasterRuleList
.
Scott Hoyt
โจ Enhancements
๐
ConfigurableRule
protocol allows for improved rule configuration. SeeCONTRIBUTING
for more details.
Scott Hoyt #303๐
VariableNameMinLengthRule
now supports excluding certain variable names (e.g. "id").
Scott Hoyt #231๐ง
ViolationLevelRule
provides defaultConfigurableRule
implementation 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
isEmpty
over comparingcount
to 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_docs
did 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
checkstyle
reporter 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.yml
configuration support.
Scott Hoyt #299
๐ Bug Fixes
๐ Fix an
NSRangeException
crash.
Norio Nomura #294The
valid_docs
rule now handles multibyte characters.
Norio Nomura #295
- โ Remove
-
v0.5.3 Changes
๐ฅ Breaking
- None.
โจ Enhancements
๐ Improve autocorrect for OpeningBraceRule.
Yasuhiro Inamiโ Add autocorrect for ColonRule.
Brian Partridgeโ Add ClosingBraceRule.
Yasuhiro Inami
๐ Bug Fixes