Commit Graph

88 Commits

Author SHA1 Message Date
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
JP Simard 368ee9544a fold ConfigurableRule into Rule 2016-02-08 13:08:51 -08:00
JP Simard c4ed26c05c allow passing an optional --reporter parameter to swiftlint lint 2016-02-06 11:14:23 -08:00
Daniel Beard 998bed9716 Add whitelist only rules 2016-01-29 13:55:31 -08:00
Scott Hoyt 610782220c Make ConfigurationError marginally more useful by not squashing it in Configuration.rulesFromDict. 2016-01-23 17:42:13 -08:00
Scott Hoyt ccbcb537b5 Convert ConfigurableRule to throwing init instead of failing. 2016-01-23 17:42:13 -08:00
JP Simard 61920d2ab7 avoid Swift 2.2 deprecations 2016-01-22 21:09:28 -08:00
JP Simard c9246542ad fix infinite recursion when using nested config files. Fixes #368 2016-01-21 12:49:04 -08:00
JP Simard 2f3b2096e6 support opt-in rules 2016-01-12 12:11:09 -08:00
Scott Hoyt 46838b11f1 Fixed access level issues. 2016-01-11 11:21:49 -08:00
Scott Hoyt da45c7fe88 Switched out force cast with failable cast in Configuration.rulesFromDict() 2016-01-11 11:21:49 -08:00
Scott Hoyt b654dc0c8b Clean up some linting warnings. 2016-01-11 11:21:49 -08:00
Scott Hoyt 8cd2d9f3f2 Removed ruleParametersFromArray from Configuration. 2016-01-11 11:21:49 -08:00