Commit Graph

894 Commits

Author SHA1 Message Date
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
JP Simard 43380cefe0 refactor RedundantStringEnumValueRule.swift
to consolidate duplicate code and generally simplify the code
2016-12-08 13:33:05 -08:00
Marcelo Fabri 819a5439db Fix header format 2016-12-08 18:32:21 -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 1c59d8fb6e Updating rule description 2016-12-08 18:29:57 -02:00
Marcelo Fabri 4b67f683df Improve location report 2016-12-08 18:29:57 -02:00
Marcelo Fabri 9f1294abfc Make it green 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
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 d113d3b091 help type inference in Legacy* rules 2016-12-08 02:05:10 -08:00
JP Simard 971873e730 speed up compilation of OperatorFunctionWhitespaceRule.validateFile(_:) 2016-12-08 01:58:40 -08:00
JP Simard a57526d639 omit 'self.' references when not ambiguous 2016-12-08 01:25:54 -08:00
JP Simard f056cc964b refactor and simplify EmojiReporter 2016-12-07 23:49:13 -08:00
JP Simard b409a056e5 refactor Array.unique and Array.group(by:) 2016-12-07 23:26:43 -08:00
Michał Kałużny d97632e52d Add human readable reporter that’s also funny because emoji. 2016-12-07 23:13:59 -08:00
JP Simard fa2628a702 Merge pull request #942 from realm/ignore-parameters-count-init
Ignore parameters count init
2016-12-07 23:01:09 -08:00
JP Simard f0804fa51c fix some false positives in detecting for initializers
in function_parameter_count
2016-12-07 16:24:54 -08:00
Marcelo Fabri 785d204397 Merge pull request #935 from marcelofabri/weak-delegate-in-protocol
Skip declarations in protocols in weak_delegate rule
2016-12-07 22:00:06 -02:00
Denis Lebedev 427a0c3b6f Replace contains with hasPrefix 2016-12-07 15:58:43 -08:00
Denis Lebedev 74ae00b1c7 Ignore initializers parameter count 2016-12-07 15:57:18 -08:00
Marcelo Fabri 7e4d30bf38 Skip declarations in protocols in weak_delegate rule 2016-12-07 00:42:44 -02:00
Marcelo Fabri 0fb4c6d691 Handling signals 2016-12-06 22:09:34 -02:00
Marcelo Fabri 2340056932 Handling exponentials 2016-12-06 22:00:19 -02:00
Marcelo Fabri 00a891ad29 Handle other formats than decimal 2016-12-06 21:52:24 -02:00
Marcelo Fabri 27456823e3 Add number_separator opt-in rule
Fixes #924
2016-12-06 00:17:28 -02:00
Philip Webster 340f78c6b3 omit trailing commas 2016-12-03 14:41:22 -08:00
Philip Webster 0c6674186c delegate suffix example 2016-12-02 11:13:53 -08:00
Philip Webster e08f6d6f54 match strong delegate suffix 2016-12-01 22:49:40 -08: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
JP Simard e3ed767584 Merge branch 'master' into swift3.0 2016-12-01 10:48:18 -08:00
JP Simard aa82da8443 0.13.2: Light Cycle 2016-12-01 10:34:05 -08:00
JP Simard c305f2b485 remove unnecessary swiftlint:disable command 2016-12-01 00:38:10 -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
JP Simard b238438381 Merge branch 'master' into swift3.0
* master:
  optimize MarkRule.violationRangesInFile() a tiny bit
  fix missing variable rename
  fix #778
2016-11-30 22:50:30 -08:00
JP Simard 4bb82285d6 optimize MarkRule.violationRangesInFile() a tiny bit
instead of allocating a SyntaxKind for all syntax tokens, we just
care about the first one.
2016-11-30 21:55:31 -08:00
JP Simard 98e8c87397 fix missing variable rename 2016-11-30 21:51:39 -08:00
JP Simard fc2e887315 fix #778 2016-11-30 21:38:14 -08:00
Norio Nomura 4aa4322991 Merge branch 'master' into swift3.0
* master:
  TrailingCommaRule only triggers when multi-line
2016-12-01 11:39:02 +09:00
Norio Nomura b672f27717 Fix build error on SPM 2016-12-01 10:42:01 +09:00
Marcelo Fabri 485518faef TrailingCommaRule only triggers when multi-line
Fixes #910 and #911
2016-11-30 19:02:12 -02:00
Norio Nomura 363bcf5c73 Merge branch 'master' into swift3.0
* master:
  add empty changelog section
  update Releasing.md with `brew bump-formula-pr`
  0.13.1: Heavy Cycle
  remove unused function dictFromKeyValuePairs
  add tests for reporterFromString(_:)
  small refactoring of SwitchCaseOnNewlineRule.swift

# Conflicts:
#	Source/SwiftLintFramework/Extensions/File+Cache.swift
#	Source/SwiftLintFramework/Rules/SwitchCaseOnNewlineRule.swift
2016-11-30 22:33:16 +09: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 48b25b6aab Merge commit '83830861d6c6b7fee3218461f699c7d3b457bf2a' into swift3.0
* commit '83830861d6c6b7fee3218461f699c7d3b457bf2a':
  refactor isPrivateLevel(identifier:)
  refactor nameStrippingLeadingUnderscoreIfPrivate
  combine changelog entries for #781 and #831
  Add support for filePrivate and open in rules

# Conflicts:
#	Source/SwiftLintFramework/Extensions/String+SwiftLint.swift
#	Source/SwiftLintFramework/Rules/MissingDocsRule.swift
2016-11-30 20:16:47 +09:00