Danny Mösch
5eed8fe91b
Enable `if_let_shadowing` rule and fix all violations ( #4247 )
2023-01-31 22:31:38 +01:00
Danny Mösch
32152646f3
Use `Self` in constructor calls ( #4505 )
2022-11-02 22:50:22 +00:00
JP Simard
05ac3c9d75
Require macOS 12 & Swift 5.6 ( #4037 )
...
This will unblock using Swift Concurrency features and updating to the
latest versions of Swift Argument Parser.
This won't drop support for linting projects with an older toolchain /
Xcode selected, as long as SwiftLint was _built_ with 5.6+ and is
_running_ on macOS 12+. So the main breaking change for end users here
is requiring macOS 12 to run.
However, the upside to using Swift Concurrency features is worth the
breaking change in my opinion. Also being able to stay on recent Swift
Argument Parser releases.
2022-07-26 03:55:36 -04:00
JP Simard
02675a9c09
Fix typo in doc comment: delimeter -> delimiter
2022-03-07 09:27:28 -05:00
Danny Mösch
050473a0e1
Add optional prefer_self_in_static_references rule ( #3732 )
2021-11-29 18:42:53 +00:00
Paul Taykalo
693ee2cae9
Add Isnot Empty extension in the Swift Framework ( #3387 )
2020-11-07 18:42:55 -05:00
John Mueller
be44017675
Fix false positives when line ends with carriage return + line feed ( #3061 )
...
Fixes : #3060
2020-02-02 15:37:49 -08:00
JP Simard
399f5b7df6
Fix docstring formatting issues using DrString ( #3032 )
...
Using command:
$ drstring check -i 'Source/**/*.swift' --first-letter lowercase --vertical-align
2020-01-12 11:19:33 -08:00
JP Simard
37167a8a35
Add documentation comments to all public declarations ( #3027 )
2020-01-08 09:47:10 -08:00
JP Simard
40ade98710
Update SourceKitten to 0.28.0 ( #3011 )
2020-01-03 16:47:18 -08:00
Kevin Randrup
d7439410e9
Introduce " - " delimiter to allow rules to be commented ( #2721 )
...
* Introduce " - " delimiter to allow rules to be commented
Ex. swiftlint:disable:next force_try - Explanation here
* Fix changelog formatting
2019-05-12 21:40:12 -07:00
Marcelo Fabri
bf9758679b
Support commands using “/* .. */“
2019-02-09 01:48:36 -08:00
Marcelo Fabri
735c432eaf
Skip whitespace only rule identifiers
2019-02-09 01:36:03 -08:00
Marcelo Fabri
cf0c7b7b21
Use default Equatable and Hashable implementations
2018-11-19 09:51:12 -08:00
Marcelo Fabri
1f121b1ef7
Enable static_operator opt-in rule in SwiftLint
2018-09-16 20:33:28 -07:00
Marcelo Fabri
f2d14e7c5a
`redundant_optional_initialization` rule now lints local variables
...
Fixes #2233
2018-07-21 21:35:24 -07:00
JP Simard
b83e0991b9
Remove all file headers
...
The MIT license doesn't require that all files be prepended with this
licensing or copyright information. Realm confirmed that they're ok with this
change. This will enable some companies to contribute to SwiftLint and the
date & authorship information will remain accessible via git source control.
2018-05-04 13:42:02 -07:00
Frederick Pietschmann
00154e9631
Improve map syntax
2018-03-21 07:42:46 +01:00
Frederick Pietschmann
0ad2488d7e
Add all keyword
2018-03-21 07:42:46 +01:00
JP Simard
c57c47d66f
Remove unnecessary Swift version differences
2017-10-04 13:49:40 -07:00
JP Simard
01e4831a7c
Update for Swift 4 in Xcode 9 beta 6 and latest Linux snapshot
2017-09-10 13:48:37 -07:00
Marcelo Fabri
fd231b607d
Fix existing violations
2017-06-13 16:12:58 +02:00
JP Simard
592537966c
make `Region` & `Command` structs conform to `Equatable`
2017-05-24 11:33:39 -07:00
JP Simard
7fb1875613
move CommandAction and CommandModifier into Command type
...
and make Command.modifier private
2017-01-09 16:25:19 -08:00
JP Simard
5b98fbe2f6
make Command.swift compile on Linux
...
by addressing differences in APIs between Scanner on Linux and Darwin.
2016-12-11 14:04:49 -08:00
JP Simard
0faf567931
use bridge() rather than explict or implicit casts
...
this is a step in aligning the code to compile on both Darwin and
Linux
2016-12-11 13:47:44 -08:00
JP Simard
19fad01b29
make all enum members lowercase to comply with Swift 3 API Guidelines
2016-12-01 22:16:21 -08:00
Norio Nomura
7c12a63e8f
Merge commit '58eb0f69c4055bb2cb89b3df278eca6ce0fb1c34' into swift3.0
...
* commit '58eb0f69c4055bb2cb89b3df278eca6ce0fb1c34':
generally clean up usage of swiftlint comment commands
update README to reflect the ability to specify multiple rules in commands
add changelog entry
allow specifying multiple rule identifiers in comment commands
# Conflicts:
# Source/SwiftLintFramework/Extensions/NSRegularExpression+SwiftLint.swift
# Source/SwiftLintFramework/Models/Command.swift
# Source/SwiftLintFramework/Rules/LegacyNSGeometryFunctionsRule.swift
# Tests/SwiftLintFrameworkTests/ConfigurationTests.swift
# Tests/SwiftLintFrameworkTests/IntegrationTests.swift
2016-11-30 18:42:40 +09:00
JP Simard
639a18181c
allow specifying multiple rule identifiers in comment commands
2016-11-25 12:56:48 -08:00
Norio Nomura
3ff76e7ce8
Update SourceKitten
2016-11-04 20:24:21 +09:00
Norio Nomura
ec3f9d0c94
Fix line_length style violations, unused warnings
2016-10-13 22:40:45 +09:00
Norio Nomura
8bf15f1dba
Migrate to Swift 3.0
2016-10-09 01:09:50 +09:00
JP Simard
c66c5c8df0
formatting fixes
...
found running `swiftlint autocorrect --format`
2016-05-29 14:58:28 -07:00
JP Simard
d60a85aae0
make commands with modifiers work for violations with line-only locations
2016-01-04 13:25:57 -08:00
JP Simard
65f992d8fe
Support command comment modifiers
...
addresses #222
2015-12-27 21:06:12 -05:00
crimsonwoods
4806e31f23
Rename `lineAndCharacterForByteOffset` to `lineAndCharacterForCharacterOffset`.
...
According to a change 247f02eff4
,
method name should be changed.
2015-11-18 12:05:08 +09:00
JP Simard
8a30cb2e3d
organize Xcode project
...
make Extensions, Models & Protocols groups under SourceKittenFramework
2015-11-15 15:07:25 -08:00