Commit Graph

41 Commits

Author SHA1 Message Date
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
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
Michael Skiba b2ad5fc5fb Code Review Updates
- renamed "standard" to "default"
- Updated formatting per code review
- added note to changelog
2016-06-09 21:57:35 -04:00
Michael Skiba d0247a382f added autocorrect support to the uncuddled else rule 2016-06-09 14:37:09 -04:00
Michael Skiba 7a56338eb0 uncuddled else folded into statement position
still needs autocorrect
2016-06-09 14:35:34 -04:00
JP Simard 25b7dc5cd5 remove redundant Bool ? "true" : "false" 2016-06-07 14:48:40 -07:00
Reimar Twelker 2917d939d9 Reduced setting ignoresEmptyLines in applyConfiguration(_:) to a single line 2016-06-07 14:15:32 -07:00
Reimar Twelker 7d0cd39abd Fixed line-length warning 2016-06-07 14:15:32 -07:00
Reimar Twelker 183e448530 Added severity to consoleDescription 2016-06-07 14:15:32 -07:00
Reimar Twelker a6b9fb0304 Changed expected value of ignores_empty_lines setting to Bool 2016-06-07 14:15:32 -07:00
Reimar Twelker 7e56b46024 Changed to match the actual keyword used in the configuration file 2016-06-07 14:15:32 -07:00
Reimar Twelker 76656e17b5 Fixed line-length and trailing-whitespace warnings 2016-06-07 14:15:32 -07:00
Reimar Twelker 940b0c194e Added a RuleConfiguration subclass specifically for the trailing whitespace rule.
Its `ignoresEmptyLines` flag controls whether the rule should ignore whitespace-indented empty lines when detecting violations and correcting files. By default, the flag is false.
2016-06-07 14:14:29 -07:00
JP Simard c66c5c8df0 formatting fixes
found running `swiftlint autocorrect --format`
2016-05-29 14:58:28 -07:00
Norio Nomura 39282654f4 Fix conditional_binding_cascade violations 2016-04-16 08:30:00 +09:00
JP Simard 601470ab8f expand some instances of "config" to "configuration" 2016-02-12 10:53:36 -08:00
JP Simard 144495306b rename rule configurations to expand "Config" to "Configuration" 2016-02-12 10:53:36 -08:00
JP Simard b2d954f655 rename ConfigType to ConfigurationType 2016-02-12 10:53:36 -08:00
JP Simard 5ad4e88ac0 move RuleConfigs to RuleConfigurations 2016-02-12 10:53:36 -08:00