From c37349fe3e1d0f1bd4c8d88e4645ac9bbe5d4d0d Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Fri, 25 Jan 2019 16:27:34 +0700 Subject: [PATCH] Update SwiftLint rules --- .swiftlint.yml | 21 +++++++++++++++++++ Touch Bar Simulator.xcodeproj/project.pbxproj | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.swiftlint.yml b/.swiftlint.yml index aecc304..9b0d783 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -55,9 +55,30 @@ opt_in_rules: - anyobject_protocol - redundant_type_annotation - no_extension_access_modifier + - legacy_random + - toggle_bool + - identical_operands + - collection_alignment + - static_operator + - multiline_literal_brackets + - multiline_parameters_brackets + - vertical_whitespace_opening_braces + - vertical_whitespace_closing_braces + - legacy_hashing + - object_literal + - last_where + - unused_control_flow_label + - strong_iboutlet +analyzer_rules: + - unused_import + - unused_private_declaration force_cast: warning force_unwrapping: warning number_separator: minimum_length: 5 +object_literal: + image_literal: false +discouraged_object_literal: + color_literal: false excluded: - Carthage diff --git a/Touch Bar Simulator.xcodeproj/project.pbxproj b/Touch Bar Simulator.xcodeproj/project.pbxproj index 37cff15..99af865 100644 --- a/Touch Bar Simulator.xcodeproj/project.pbxproj +++ b/Touch Bar Simulator.xcodeproj/project.pbxproj @@ -132,11 +132,11 @@ isa = PBXNativeTarget; buildConfigurationList = E3FE2CCC1E726CE800C6713A /* Build configuration list for PBXNativeTarget "Touch Bar Simulator" */; buildPhases = ( + E3679C9A215A1ECA0080270F /* SwiftLint */, E3FE2CBB1E726CE800C6713A /* Sources */, E3FE2CBC1E726CE800C6713A /* Frameworks */, E3FE2CBD1E726CE800C6713A /* Resources */, E3FA3A901E784C5F00A7F2EA /* Embed Frameworks */, - E3679C9A215A1ECA0080270F /* SwiftLint */, ); buildRules = ( );