JP Simard
1e48ffb8fc
address some PR feedback
2017-01-09 19:17:27 -08:00
JP Simard
c5c2e21120
update SwiftLintFramework/Models to follow Swift 3 API Design Guidelines
2017-01-09 19:05:29 -08:00
JP Simard
a291bb594a
update SwiftLintFramework/Extensions to follow Swift 3 API Design Guidelines
2017-01-09 17:53:07 -08:00
JP Simard
9d697bf7a2
add .swiftlintVersion member to validKeys
2017-01-07 00:13:48 -08:00
JP Simard
6979d25733
allow specifying a swiftlint_version configuration key
...
which will log a warning if the current running version of SwiftLint
is different than this value.
2017-01-07 00:09:29 -08:00
JP Simard
36b1ea0ba4
fix linting directories ending in .swift
2017-01-06 11:33:21 -08:00
JP Simard
cce3505f1b
pass function reference rather than create a small closure
2017-01-03 23:30:55 -08:00
Marcelo Fabri
12a66d4fe1
Remove handleAlias function
2017-01-03 18:04:37 -02:00
Marcelo Fabri
3b682fb116
Remove support to non-deprecated aliases
2017-01-03 16:14:34 -02:00
Marcelo Fabri
a5683fa393
PR feedback
2017-01-02 16:21:10 -02:00
Marcelo Fabri
2e8ada85b1
Logging deprecation warning and adding tests
2017-01-02 16:21:10 -02:00
Marcelo Fabri
df8429d2eb
Add support for rule aliases
2017-01-02 16:21:10 -02:00
Marcelo Fabri
c43f808cfc
Re-enable ConfigurationTests.testExcludedPaths
2016-12-26 13:32:13 -02: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
Marcelo Fabri
13b0cfe623
Fixing inconsistencies
2016-12-08 18:29:57 -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
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
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
JP Simard
3568245c19
fix single file usage: swiftlint lint --path File.swift
2016-11-23 17:13:22 -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
8bf15f1dba
Migrate to Swift 3.0
2016-10-09 01:09:50 +09:00
J Cheyo Jimenez
8bed233282
added closure-spacing-rule
2016-09-03 21:10:33 -07:00
Cristian Filipov
ed192f35bd
Fix long lines and unit test
2016-08-22 23:17:50 -07:00
Cristian Filipov
c2a58a574a
Merge remote-tracking branch 'upstream/master' into cfilipov/fix_absolute_path
2016-08-21 23:21:39 -07:00
Cristian Filipov
e543b54a17
Update CHANGELOG & code spacing
2016-08-21 23:15:01 -07:00
JP Simard
7bb369b92f
minor tweaks after merging #757
2016-08-21 16:37:22 -07:00
George Woodham
8ce4af6f54
Changes after PR feedback. Removed ?? nil as this does nothing. Removed some redundant conditional
2016-08-22 11:21:29 +12:00
Cristian Filipov
27aa8e3383
Use path arg as root for include/exclude paths
2016-08-18 16:44:21 -07:00
George Woodham
6b9bb2e98d
Added function to create an error when the threshold has been broken
2016-08-15 10:47:29 +12:00
George Woodham
4a3987a9b4
Using configuration parameter instead of new rule
2016-07-19 16:35:40 +12:00
JP Simard
c66c5c8df0
formatting fixes
...
found running `swiftlint autocorrect --format`
2016-05-29 14:58:28 -07:00
Brian Hardy
5c1d40ca87
Updates whitespace to avoid line length violation.
...
The shame, oh the shame.
2016-05-02 00:23:49 -04:00
Brian Hardy
88c0c8ba8e
Improves error messaging for Configuration, particularly with YAML parsing.
2016-05-02 00:05:57 -04:00
Norio Nomura
1716c6e108
Did not pass the IntegrationTests
2016-02-13 13:14:41 +09:00
Norio Nomura
f9fc51bb57
Fix nested config traversing did not stop on root path
2016-02-13 13:08:58 +09:00
JP Simard
79d796817c
deprecate use_nested_configs: always consider nested configuration files
2016-02-12 10:55:20 -08:00
JP Simard
048c5dda84
expand "config" to "configuration" in Configuration.swift
...
with an exception being made for the "use_nested_configs" configuration key,
since that's already long enough as it is
2016-02-12 10:53:36 -08:00
JP Simard
24e3adc355
make Configuration.configPath public
2016-02-10 17:26:06 -08:00
JP Simard
1af80bcc31
remove Configuration.disabledRules
2016-02-10 17:26:06 -08:00
JP Simard
1866edae77
adjust access control levels for many APIs in SwiftLintFramework
...
this is done in an effort to stabilize the API for SwiftLint 1.0.
2016-02-10 17:26:06 -08:00
JP Simard
714902ef01
treat single values as an array in the configuration dictionary
2016-02-08 13:24:14 -08:00
JP Simard
5e118070ce
log an error when supplying invalid keys in the configuration dictionary
2016-02-08 13:24:14 -08:00
JP Simard
09e9d62056
print deprecation warning for 'enabled_rules' to stderr rather than stdout
...
to follow the convention used elsewhere in the project as to not invalidate
the output structure from formatted violation reporters like json, csv &
checkstyle.
2016-02-08 13:24:14 -08:00
JP Simard
711f23a9b9
introduce private ConfigurationKey enum in Configuration.swift
...
this should replace all the hardcoded string literals representing configuration
dictionary keys.
2016-02-08 13:24:14 -08:00
JP Simard
70c1008591
use constant strings rather than literals in Configuration.swift
2016-02-08 13:24:14 -08:00
JP Simard
a0524644f5
move Configuration.rulesFromDict to RuleList.configuredRulesWithDictionary
2016-02-08 13:24:13 -08:00
JP Simard
59da7f3ce9
add --quiet flag to lint and autocorrect commands
...
addresses #386
2016-02-08 13:21:40 -08:00