Changelog History
Page 10
-
v0.5.2 Changes
๐ฅ Breaking
- None.
โจ Enhancements
- ๐ Performance improvements & unicode fixes (via SourceKitten).
Norio Nomura
๐ Bug Fixes
- ๐ Fix
ValidDocsRule
false positive when documenting functions with closure parameters.
diogoguimaraes #267
-
v0.5.1 Changes
๐ฅ Breaking
- None.
โจ Enhancements
- None.
๐ Bug Fixes
๐ Make linting faster than 0.5.0, but slower than 0.4.0
Norio Nomura #119๐ Re-introduce
--use-script-input-files
option forlint
&autocorrect
commands. Should also fix some issues when running SwiftLint from an Xcode build phase.
JP Simard #264
-
v0.5.0 Changes
๐ฅ Breaking
init()
is no longer a member of theRule
protocol.
โจ Enhancements
โ Add legacy constructor rule.
Marcelo Fabri #202The
VariableNameRule
now allows variable names when the entire name is capitalized. This allows stylistic usage common in cases likeURL
and other acronyms.
Marcelo Fabri #161โ Add
autocorrect
command to automatically correct certain violations (currently onlytrailing_newline
,trailing_semicolon
&trailing_whitespace
).
JP Simard #5๐ Allow to exclude files from
included
directory withexcluded
.
Michal Laskowski
๐ Bug Fixes
-
v0.4.0 Changes
๐ฅ Breaking
- ๐
API: Rename RuleExample to RuleDescription, remove StyleViolationType and
combine Rule().identifier and Rule().example into Rule.description.
JP Simard #183
โจ Enhancements
The
VariableNameRule
now allows capitalized variable names when they are declared static. This allows stylistic usage common in cases likeOptionSetType
subclasses.
Will Flemingโ Add
VariableNameMaxLengthRule
andVariableNameMinLengthRule
parameter rules. Remove length checks onVariableNameRule
.
Mickael Morierโ Add trailing semicolon rule.
JP Simardโ Add force try rule.
JP Simard๐ Support linting from Input Files provided by Run Script Phase of Xcode with
--use-script-input-files
.
Norio Nomura #193
๐ Bug Fixes
๐จ All rules now print their identifiers in reports.
JP Simard #180ControlStatementRule
now detects all violations.
Mickael Morier #187ControlStatementRule
no longer triggers a violation for acceptable use of parentheses.
Mickael Morier #189Nesting rule no longer triggers a violation for enums nested one level deep.
JP Simard #190ColonRule
now triggers a violation even if equal operator is collapse to type and value.
Mickael Morier #135๐ Fix an issue where logs would be printed asynchronously over each other.
JP Simard #200
- ๐
API: Rename RuleExample to RuleDescription, remove StyleViolationType and
combine Rule().identifier and Rule().example into Rule.description.
-
v0.3.0 Changes
๐ฅ Breaking
- ๐
swiftlint rules
now just prints a list of all available rules and their identifiers.
โจ Enhancements
๐ Support for Swift 2.1.
JP Simardโ Added
StatementPositionRule
to make sure that catch, else if and else statements are on the same line as closing brace preceding them and after one space.
Alex Culevaโ Added
Comma Rule
to ensure there is a single space after a comma.
Alex Culevaโ Add rule identifier to all linter reports.
zippy1978โ Add
OpeningBraceRule
to make sure there is exactly a space before opening brace and it is on the same line as declaration.
Alex Culeva๐ Print to stderr for all informational logs. Only reporter outputs is logged to stdout.
JP Simard๐ JSON and CSV reporters now only print at the very end of the linting process.
JP Simardโ Add support for
guard
statements to ControlStatementRule.
David Potter๐ Lint parameter variables.
JP Simard
๐ Bug Fixes
- ๐
-
v0.2.0 Changes
๐ฅ Breaking
๐ SwiftLint now exclusively supports Swift 2.0.
JP Simard #77ViolationSeverity
now has an associated type ofString
and two members:.Warning
and.Error
.
JP Simard #113
โจ Enhancements
๐ Configure SwiftLint via a YAML file: Supports
disabled_rules
,included
,excluded
and passing parameters to parameterized rules. Pass a configuration file path to--config
, defaults to.swiftlint.yml
.
JP Simard #1 #3 #20 #26โก๏ธ Updated
TypeNameRule
andVariableNameRule
to allow private type & variable names to start with an underscore.
JP SimardDisable and re-enable rules from within source code comments using
// swiftlint:disable $IDENTIFIER
and// swiftlint:enable $IDENTIFIER
.
JP Simard #4โ Add
--strict
lint flag which makes the lint fail if there are any warnings.
Keith Smiley๐จ Violations are now printed to stderr.
Keith Smiley๐ Custom reporters are now supported. Specify a value for the
reporter:
key in your configuration file. Available reporters arexcode
(default),json
,csv
.
JP Simard #42
๐ Bug Fixes
๐ Improve performance of
TrailingWhitespaceRule
.
Keith Smiley๐ Allow newlines in function return arrow.
JP Simard
-
v0.1.2 Changes
๐ฅ Breaking
- None.
โจ Enhancements
โ Added
OperatorFunctionWhitespaceRule
to make sure that you use whitespace around operators when defining them.
Akira Hirakawa #60โ Added
ReturnArrowWhitespaceRule
to make sure that you have 1 space before return arrow and return type.
Akira Hirakawa๐ Support linting from standard input (use
--use-stdin
).
JP Simard #78๐ Improve performance of
TrailingNewlineRule
.
Keith Smiley๐ Lint parentheses around switch statements.
Keith Smiley
๐ Bug Fixes
- None.
-
v0.1.1 Changes
๐ฅ Breaking
The
Rule
andASTRule
protocol members are now non-static.
aarondaubSplit
Rule
intoRule
andParameterizedRule
protocols.
aarondaub #21
โจ Enhancements
โ Added a command line option
--path
to specify a path to lint.
Lars Lockefeer #16๐ swiftlint now returns a non-zero error code when a warning of high-severity or above is found in the source files being linted.
Pat Wallace #30โ Added
rules
command to display which rules are currently applied along with examples.
Chris Eidhof๐ Cache parsing to reduce execution time by more than 50%.
Nikolaj Schumacherโ Added
ControlStatementRule
to make sure that if/for/while/do statements do not wrap their conditionals in parentheses.
Andrea MazziniCharacter position is now included in violation location where appropriate.
JP Simard #62The following rules now conform to
ASTRule
: FunctionBodyLength, Nesting, TypeBodyLength, TypeName, VariableName.
JP Simard
๐ Bug Fixes
-
v0.1.0 Changes
First Version!