Releases: realm/SwiftLint
Releases · realm/SwiftLint
0.5.1: Lint Tray Malfunction
Bug Fixes
- Make linting faster than 0.5.0, but slower than 0.4.0
Norio Nomura
#119 - Re-introduce
--use-script-input-filesoption forlint&autocorrect
commands. Should also fix some issues when running SwiftLint from an Xcode
build phase.
JP Simard
#264
0.5.0: Downy™
Big thanks to @marcelofabri and @michallaskowski for contributing to this release!
Breaking
init()is no longer a member of theRuleprotocol.
Enhancements
- Add legacy constructor rule.
Marcelo Fabri
#202 - The
VariableNameRulenow allows variable names when the entire name is
capitalized. This allows stylistic usage common in cases likeURLand other
acronyms.
Marcelo Fabri
#161 - Add
autocorrectcommand to automatically correct certain violations
(currently onlytrailing_newline,trailing_semicolon&
trailing_whitespace).
JP Simard
#5 - Allow to exclude files from
includeddirectory withexcluded.
Michal Laskowski
Bug Fixes
0.4.0: Wrinkle Release
Lots of cool new/fixed rules in this release. Thanks to @wfleming & @mmorier for their contributions!
Breaking
- API: Rename RuleExample to RuleDescription, remove StyleViolationType and
combine Rule().identifier and Rule().example into Rule.description.
JP Simard
#183
Enhancements
- The
VariableNameRulenow allows capitalized variable names when they are
declared static. This allows stylistic usage common in cases like
OptionSetTypesubclasses.
Will Fleming - Add
VariableNameMaxLengthRuleandVariableNameMinLengthRuleparameter
rules. Remove length checks onVariableNameRule.
Mickael Morier - Add trailing semicolon rule.
JP Simard - Add force try rule.
JP Simard
Bug Fixes
- All rules now print their identifiers in reports.
JP Simard
#180 ControlStatementRulenow detects all violations.
Mickael Morier
#187ControlStatementRuleno longer triggers a violation for acceptable use of
parentheses.
Mickael Morier
#189- Nesting rule no longer triggers a violation for enums nested one level deep.
JP Simard
#190 ColonRulenow triggers a violation even if equal operator is collapse to
type and value.
Mickael Morier
#135
0.3.0: Wrinkly Rules
Lots of new rules in this one. Thanks to @S2dentik, @zippy1978, @Tableau-David-Potter for contributing to this release!
Breaking
swiftlint rulesnow just prints a list of all available rules and their
identifiers.
Enhancements
- Support for Swift 2.1.
JP Simard - Added
StatementPositionRuleto 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 Ruleto ensure there is a single space after a comma.
Alex Culeva - Add rule identifier to all linter reports.
zippy1978 - Add
OpeningBraceRuleto 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
guardstatements to ControlStatementRule.
David Potter - Lint parameter variables.
JP Simard
Bug Fixes
0.2.0: Tumble Dry
Breaking
- SwiftLint now exclusively supports Swift 2.0.
JP Simard
#77 ViolationSeveritynow has an associated type ofStringand two members:
.Warningand.Error.
JP Simard
#113
Enhancements
- Configure SwiftLint via a YAML file:
Supportsdisabled_rules,included,excludedand passing parameters to
parameterized rules.
Pass a configuration file path to--config, defaults to.swiftlint.yml.
JP Simard
#1
#3
#20
#26 - Updated
TypeNameRuleandVariableNameRuleto allow private type & variable
names to start with an underscore.
JP Simard - Disable and re-enable rules from within source code comments using
// swiftlint:disable $IDENTIFIERand// swiftlint:enable $IDENTIFIER.
JP Simard
#4 - Add
--strictlint 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
0.1.2: FabricSoftenerRule
Lots of new rules in this release, big thanks to our contributors! SwiftLint now smells as fresh as ever. 🌲
Breaking
- None.
Enhancements
- Added
OperatorFunctionWhitespaceRuleto make sure that
you use whitespace around operators when defining them.
Akira Hirakawa
#60 - Added
ReturnArrowWhitespaceRuleto 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.
0.1.1: Top Loading
Open Source is pretty great! We've received lots of external contributions in the week since publishing SwiftLint. Keep them coming! ✨
Breaking
- The
RuleandASTRuleprotocol members are now non-static.
aarondaub - Split
RuleintoRuleandParameterizedRuleprotocols.
aarondaub
#21
Enhancements
- Added a command line option
--pathto 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
rulescommand 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
ControlStatementRuleto make sure that if/for/while/do statements
do not wrap their conditionals in parentheses.
Andrea Mazzini - Character position is now included in violation location where appropriate.
JP Simard
#62 - The following rules now conform to
ASTRule:
FunctionBodyLength, Nesting, TypeBodyLength, TypeName, VariableName.
JP Simard
Bug Fixes
0.1.0: Fresh Out Of The Dryer
First release!