diff --git a/.swiftlint.yml b/.swiftlint.yml new file mode 100644 index 0000000..a1f7797 --- /dev/null +++ b/.swiftlint.yml @@ -0,0 +1,8 @@ +disabled_rules: # rule identifiers to exclude from running + - line_length +variable_name: + min_length: + warning: 2 +excluded: # paths to ignore during linting. Takes precedence over `included`. + - Carthage + - Pods \ No newline at end of file diff --git a/BaseMVC.xcodeproj/project.pbxproj b/BaseMVC.xcodeproj/project.pbxproj index b4a932e..174e906 100644 --- a/BaseMVC.xcodeproj/project.pbxproj +++ b/BaseMVC.xcodeproj/project.pbxproj @@ -260,6 +260,7 @@ 8234BE0B1EF987C4009A5DE5 /* Resources */, 82CFF1F22C619A66AB2BD605 /* [CP] Embed Pods Frameworks */, 8453F4E3F802CF6A851561F5 /* [CP] Copy Pods Resources */, + 8286E5541EFA13060065CDBD /* SwiftLint */, ); buildRules = ( ); @@ -319,6 +320,20 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ + 8286E5541EFA13060065CDBD /* SwiftLint */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = SwiftLint; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "if which swiftlint >/dev/null; then\nswiftlint\nelse\necho \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi"; + }; 82CFF1F22C619A66AB2BD605 /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647;