Marcelo Fabri
205c308100
Merge pull request #904 from marcelofabri/file-header-rule
...
Add FileHeaderRule
2016-12-09 01:22:58 -02:00
JP Simard
52c025b866
Merge pull request #950 from marcelofabri/redundant-enum
...
Add RedundantStringEnumValueRule
2016-12-08 14:55:23 -08:00
Marcelo Fabri
13b0cfe623
Fixing inconsistencies
2016-12-08 18:29:57 -02:00
Marcelo Fabri
54d8958386
PR feedback
2016-12-08 18:29:57 -02:00
Marcelo Fabri
4abe67c7d7
Add FileHeaderRule
...
Fixes #844
2016-12-08 18:29:57 -02:00
Marcelo Fabri
a7c58c14d4
Add RedundantStringEnumValueRule
...
Fixes #946
2016-12-08 18:26:45 -02:00
JP Simard
cd632bc106
fix silly typo
2016-12-08 12:13:11 -08:00
JP Simard
a57526d639
omit 'self.' references when not ambiguous
2016-12-08 01:25:54 -08:00
Marcelo Fabri
27456823e3
Add number_separator opt-in rule
...
Fixes #924
2016-12-06 00:17:28 -02:00
JP Simard
19fad01b29
make all enum members lowercase to comply with Swift 3 API Guidelines
2016-12-01 22:16:21 -08:00
JP Simard
0b481f1e16
change Array.arrayOf(_:) to Array.array(of:)
2016-12-01 18:09:38 -08:00
JP Simard
39e1001629
make lots of Swift 3 related changes
...
many of which are to help with otherwise very long compile times
2016-12-01 00:34:29 -08:00
Norio Nomura
84ca11b6aa
Merge commit 'b22d1a93c93537acde79a2496031012489fe270d' into swift3.0
...
* commit 'b22d1a93c93537acde79a2496031012489fe270d':
Updating CHANGELOG entry
Updates existing code to respect TrailingCommaRule
Add configuration to enforce/forbid trailing comma
Fixing rebase
Addded TrailingCommaRule
2016-11-30 19:38:31 +09:00
Norio Nomura
1d7fbe17eb
Merge commit '3ce57ba71ac2167d44aae39095475669bb5ec98c' into swift3.0
...
* commit '3ce57ba71ac2167d44aae39095475669bb5ec98c':
Add NimbleOperatorRule
2016-11-30 18:50:24 +09: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
Norio Nomura
636efb5b14
Merge commit 'aeb5d7ae442d6b590e7693a7214098a9328f951a' into swift3.0
...
* commit 'aeb5d7ae442d6b590e7693a7214098a9328f951a':
Updating changelog
Updating regex after PR feedback
Adding SyntacticSugar rule
# Conflicts:
# Source/SwiftLintFramework/Extensions/File+Cache.swift
2016-11-30 18:10:10 +09:00
Norio Nomura
b9426fb78e
Merge commit '487f8cccdfe27771f6cd9ec46470a3b3578eaec4' into swift3.0
...
* commit '487f8cccdfe27771f6cd9ec46470a3b3578eaec4':
fix changelog entry: weak rule isn't opt-in
minor WeakDelegateRule formatting
fix up changelog entry
[weak_delegate] Better code style for testing string matching
Thinking back about it, WeakDelegate rule should in fact maybe not be Opt-In, but rather enabled by default
Additional code comments
[New Rule] weak_delegate
2016-11-30 17:27:44 +09:00
Norio Nomura
7593deff3f
Merge commit 'b591ec71085572825616e9ac0ed15450198b52bb' into swift3.0
...
* commit 'b591ec71085572825616e9ac0ed15450198b52bb':
minor Tests comment formatting
ValidIBInspectableRule formatting
fix typo in OverriddenSuperCallRule file name
# Conflicts:
# Source/SwiftLintFramework/Rules/ValidIBInspectableRule.swift
2016-11-30 17:14:40 +09:00
Norio Nomura
6fc48e34fd
Merge commit 'bdeeac6b4c9e20847878b148ecaebf1efeec7a74' into swift3.0
...
* commit 'bdeeac6b4c9e20847878b148ecaebf1efeec7a74':
simplify disable in HTMLReporter
sort master rule list
fix some older changelog formatting inconsistencies
exclude test resources from linting
# Conflicts:
# Source/SwiftLintFramework/Reporters/HTMLReporter.swift
2016-11-30 14:36:56 +09:00
Norio Nomura
397b3ad8fc
Merge commit '1151c1883100fc2c65450a9266a06e0c9a4c83b3' into swift3.0
...
* commit '1151c1883100fc2c65450a9266a06e0c9a4c83b3':
Updating changelog
Rewriting rule to deal with nested structures
Add ImplicitGetterRule
2016-11-30 14:14:24 +09:00
Norio Nomura
ee638ef428
Merge commit '20870e7ab140e39dbe426feb322e8b02c7cfc993' into swift3.0
...
* commit '20870e7ab140e39dbe426feb322e8b02c7cfc993':
fix single file usage: `swiftlint lint --path File.swift`
# Conflicts:
# Source/SwiftLintFramework/Extensions/NSFileManager+SwiftLint.swift
# Source/SwiftLintFramework/Models/Configuration.swift
# Tests/SwiftLintFrameworkTests/ConfigurationTests.swift
2016-11-30 14:04:45 +09:00
Marcelo Fabri
8464a71095
Addded TrailingCommaRule
2016-11-25 20:56:46 -02:00
Marcelo Fabri
0c5ff7f7b5
Add NimbleOperatorRule
...
Fixes #881
2016-11-25 13:31:06 -08:00
JP Simard
639a18181c
allow specifying multiple rule identifiers in comment commands
2016-11-25 12:56:48 -08:00
Marcelo Fabri
c4b960000d
Adding SyntacticSugar rule
2016-11-25 12:25:10 -08:00
Olivier Halligon
71b475d9d7
[New Rule] weak_delegate
2016-11-25 12:04:18 -08:00
JP Simard
5dbffd3b26
fix typo in OverriddenSuperCallRule file name
2016-11-25 11:47:35 -08:00
JP Simard
38b512c4d4
sort master rule list
2016-11-25 11:15:01 -08:00
JP Simard
1151c18831
Merge pull request #862 from marcelofabri/implicit-getters
...
Add ImplicitGetterRule
2016-11-25 10:56:27 -08:00
JP Simard
3568245c19
fix single file usage: swiftlint lint --path File.swift
2016-11-23 17:13:22 -08:00
Marcelo Fabri
4e1d0d02f3
Add ImplicitGetterRule
2016-11-13 22:22:49 -02:00
Norio Nomura
df28dcfc13
Update YamlSwift to 3.1.0
2016-11-08 19:29:11 +09:00
Norio Nomura
34bb6a62a3
Merge branch 'master' into swift3.0
...
* master:
fix typo: coalesing -> coalescing
# Conflicts:
# Source/SwiftLintFramework/Rules/RedundantNilCoalescingRule.swift
2016-11-08 18:30:00 +09:00
JP Simard
55a0b5ec5a
fix typo: coalesing -> coalescing
...
fixes #866
2016-11-07 13:30:53 -08:00
Norio Nomura
40828dff03
Merge branch 'master' into swift3.0
...
* master: (41 commits)
Fix formatting in CHANGELOG.md
release 0.13.0
Update CHANGELOG.md
Fix check for trailing whitespace to return early
Fix checks for some inline comments
Replace check for comments to use SyntaxKind
Add configuration for trailing_whitespace to ignore comments
Unwanted space removed
- Lint issues fixed
Updated HTML Reporter
PR feedback
Add check on autocorrect for disabled range
Use `utf8.count` instead of `utf16.count` to byte range
Re-write `ExplicitInitRule` to `ASTRule`
added ExplicitInitRule
Updated CHANGELOG
HTML Reporter added
HTML Reporter added
Adds information about SwiftLint plugin for AppCode into README.md
added reasons why a new rule should be opt in
...
# Conflicts:
# Source/SwiftLintFramework/Extensions/File+SwiftLint.swift
# Source/SwiftLintFramework/Extensions/Structure+SwiftLint.swift
# Source/SwiftLintFramework/Rules/ColonRule.swift
# Source/SwiftLintFramework/Rules/CommaRule.swift
# Source/SwiftLintFramework/Rules/LegacyCGGeometryFunctionsRule.swift
# Source/SwiftLintFramework/Rules/LegacyConstantRule.swift
# Source/SwiftLintFramework/Rules/LegacyConstructorRule.swift
# Source/SwiftLintFramework/Rules/LegacyNSGeometryFunctionsRule.swift
# Source/SwiftLintFramework/Rules/LineLengthRule.swift
# Source/SwiftLintFramework/Rules/OperatorFunctionWhitespaceRule.swift
# Source/SwiftLintFramework/Rules/ReturnArrowWhitespaceRule.swift
# Source/SwiftLintFramework/Rules/RuleConfigurations/StatementPositionConfiguration.swift
# Source/SwiftLintFramework/Rules/StatementPositionRule.swift
# Source/SwiftLintFramework/Rules/TrailingWhitespaceRule.swift
# Tests/SwiftLintFramework/RuleConfigurationTests.swift
2016-11-04 21:40:56 +09:00
Norio Nomura
3ff76e7ce8
Update SourceKitten
2016-11-04 20:24:21 +09:00
Norio Nomura
0d432620cc
Merge pull request #849 from marcelofabri/valid-ibinspectable
...
Adding ValidIBInspectableRule rule
2016-10-31 17:55:32 +09:00
Matt Taube
cec0a61761
added ExplicitInitRule
2016-10-29 14:22:58 +09:00
Norio Nomura
c16efa15fb
Merge pull request #807 from masters3d/closure-spacing
...
added closure-spacing-rule
2016-10-24 19:30:13 +09:00
Angel Garcia
6161c9b001
Renamed rule and configuration to OverridenSuperCall
2016-10-20 09:44:18 +02:00
Marcelo Fabri
a1096e8ee2
Adding ValidIBInspectableRule rule
...
Fixes #756
2016-10-20 03:21:46 -02:00
Angel Garcia
aec1679a5d
Merge remote-tracking branch 'refs/remotes/realm/master' into feature/super_rule
2016-10-19 11:23:35 +02:00
Norio Nomura
47cf2db7a2
Merge branch 'master' into swift3.0
...
* master:
Using character based init
PR feedback
Handling pattern matching cases (if case, for case, etc)
Addressing PR feedback
Add SwitchCaseOnNewline rule
Adding CHANGELOG entry
Validates if "return" in ConditionalReturnsOnNewline is a keyword
Stop `make` if working tree does not have git repository
# Conflicts:
# Source/SwiftLintFramework/Rules/ConditionalReturnsOnNewline.swift
2016-10-18 19:34:43 +09:00
Marcelo Fabri
8d0f344747
Add SwitchCaseOnNewline rule
...
This fixes https://github.com/realm/SwiftLint/issues/681
2016-10-16 02:39:06 -02: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
Angel Garcia
6b5d2df338
Added first implementation for super call check
2016-09-04 21:04:03 +02:00
J Cheyo Jimenez
8bed233282
added closure-spacing-rule
2016-09-03 21:10:33 -07:00
dbeard
4cb44013eb
Add redundant nil coalesing operator rule
2016-08-24 15:25:26 -07:00
JP Simard
431758a82c
Merge pull request #760 from cfilipov/cfilipov/fix_absolute_path
...
Use path arg as root for include/exclude paths
2016-08-23 11:59:30 -07:00