Commit Graph

67 Commits

Author SHA1 Message Date
Marcelo Fabri 5282134fec Remove unnecessary import 2017-01-02 03:25:04 -02:00
Marcelo Fabri d44bf896b9 Avoid duplicating default value 2017-01-02 02:55:41 -02:00
Marcelo Fabri 09a251a8f6 number_separator can be configured with a min length
Fixes #1109
2017-01-02 02:50:04 -02:00
Marcelo Fabri f7cb7bae2c PR feedback 2016-12-22 00:09:27 -02:00
Marcelo Fabri 1d06302643 Add dictionary colon validation to colon rule
Fixes #603
2016-12-22 00:09:27 -02:00
JP Simard 80e34272a2 minor changes to ProhibitedSuperConfiguration 2016-12-13 00:11:55 -08:00
Aaron McTavish f54c9c4d5a Add ProhibitedSuperRule
Resolves #970: `Rule: Methods calling super that should not`
2016-12-13 07:22:11 +00:00
Marcelo Fabri 482dd16833 Dates 2016-12-12 23:04:42 -02:00
Marcelo Fabri fd09fde10e Trying to fix Linux build 2016-12-12 01:32:36 -02:00
Marcelo Fabri 9c43a21fed Merge branch 'master' into attributes-rule 2016-12-11 23:46:18 -02:00
JP Simard 89526264db improve RegexConfiguration 2016-12-11 16:49:28 -08:00
JP Simard 3431ef4798 improve PrivateUnitTestRule 2016-12-11 16:41:45 -08:00
JP Simard 38c221b698 break up SeverityConfiguration.applyConfiguration(_:)
to help the type checker
2016-12-11 16:23:49 -08:00
JP Simard 54acf03983 use NSRegularExpression with a placeholder pattern to compile on Linux
since `NSRegularExpression.init()` isn't available on Linux yet.
2016-12-11 14:04:49 -08:00
JP Simard 49b5ee665d omit needless types in static calls in PrivateUnitTestConfiguration.swift 2016-12-11 14:04:49 -08:00
JP Simard 43edeeba25 eliminate needless conditional casts in FileHeaderConfiguration 2016-12-11 13:48:41 -08:00
Marcelo Fabri 2ddf7757d7 Merge branch 'master' into attributes-rule 2016-12-09 14:50:48 -02: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 ac0b0824c9 Swift 3 migration 2016-12-08 18:29:57 -02:00
Marcelo Fabri b4a3c17b41 Initial work to support configuration in file header rule 2016-12-08 18:29:57 -02:00
JP Simard a57526d639 omit 'self.' references when not ambiguous 2016-12-08 01:25:54 -08:00
Marcelo Fabri 1d42d29714 Merge branch 'master' into attributes-rule 2016-12-04 18:36:06 -02:00
Marcelo Fabri 0c018a15c7 Swift 3 migration 2016-12-04 18:19:44 -02:00
JP Simard 576e1a5d4d remove unnecessary .lowercased() calls
now that ViolationSeverity is already lowercase.
2016-12-01 22:29:09 -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
Marcelo Fabri 5e9095a1e3 PR feedback 2016-11-30 11:51:25 -02:00
Marcelo Fabri 12dae9c029 Handling parameters and custom configurations 2016-11-30 11:51:25 -02:00
Norio Nomura b7862b9f6a Merge commit 'e0cafea80ffba746a103d8d5a25be8fcd0993c81' into swift3.0
* commit 'e0cafea80ffba746a103d8d5a25be8fcd0993c81':
  remove unnecessary file.invalidateCache()
  add changelog entry for #893
  fix up indentation in MarkRule.swift
  omit self if it can be inferred
  Corrections for mark rule
  Update regex part to be more precise.
  Add autocorrection to MarkRule

# Conflicts:
#	Source/SwiftLintFramework/Rules/ConditionalReturnsOnNewline.swift
#	Source/SwiftLintFramework/Rules/MarkRule.swift
#	Source/SwiftLintFramework/Rules/StatementPositionRule.swift
2016-11-30 22:26:51 +09:00
Norio Nomura 191e022ca2 Merge commit 'e63c6ce4172f201554ab70c0e4fec694d82d8f60' into swift3.0
* commit 'e63c6ce4172f201554ab70c0e4fec694d82d8f60':
  Use severityConfiguration in rules == function
2016-11-30 19:41:44 +09: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
JP Simard 4bb23dd75a omit self if it can be inferred 2016-11-28 22:18:56 -08:00
Marcelo Fabri 6a8ebe61c6 Use severityConfiguration in rules == function 2016-11-26 23:50:52 -02:00
Marcelo Fabri 3bacc80fc7 Add configuration to enforce/forbid trailing comma 2016-11-25 23:51:25 -02: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
Javier Hernández 84b8b03e89 Add configuration for trailing_whitespace to ignore comments 2016-11-04 07:19:56 +00:00
Brian Lu 21c4303bad Fix "Statment" typos 2016-10-21 21:07:37 -04:00
Angel Garcia 6161c9b001 Renamed rule and configuration to OverridenSuperCall 2016-10-20 09:44:18 +02:00
Angel Garcia 2d758dd70d Changed resolvedMethodNames to compute on configuration changes only 2016-10-19 11:20:31 +02:00
Angel Garcia 83141c1967 List of methods sorted by class+method name 2016-10-17 13:42:19 +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 b3edc678a9 fixed white spacing 2016-09-26 11:29:33 +02:00
Angel Garcia 47ef5ca100 Added more methods to list of super calls 2016-09-06 11:06:19 +02:00
Angel Garcia 96de4ee866 Added super call configuration list 2016-09-05 10:59:06 +02:00
Cristian Filipov a60bcddc8f Fix #786: Private unit test rule not scoped to tests 2016-08-29 21:03:09 -07:00
rohan 26daddcf0d Adding new configuration for private outlet rules to allow private(set) 2016-08-25 00:08:05 -07:00
Cristian Filipov ea592e0e98 Add rule to check for private unit tests 2016-08-18 17:17:03 -07:00
bootstraponline 0d78cdb0c2 Add included to custom rules 2016-06-23 10:21:45 -04:00