Skip to content

Instantly share code, notes, and snippets.

View nzatsepilov's full-sized avatar

Nikita Zatsepilov nzatsepilov

View GitHub Profile
custom_rules:
equals_to_self:
name: "Equals to self"
regex: "(^|[\\h])([$.\\w]+)([\\h]*[=]{2,}[\\h]*)\\2([\\s]+)"
message: "Expression always returns true, please fix typo"
match_kinds:
- argument
- identifier
- keyword
- number
let factory = RequestFactory()
let request = factory.makeRequest(endpoint: AnyEndpoint.test)
request.errorHandlers = [GeneralErrorHandler()]
// Decodable
let decoder = JSONDecoder()
decoder.dataDecodingStrategy = .base64
request.responseDecodableObject(with: decoder, successHandler: { (user: User)
}, failureHandler: { error in
В исходном проекте. Можно сделать патч для комментов /* ..._OPTION_BEGIN */ /* OPTION_END */
/* Begin PBXBuildFile section */
...
066238161F879B4D00AA6B14 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 066238181F879B4D00AA6B14 /* Localizable.strings */; };/* SWIFTGEN_OPTION_BEGIN */
0679BEDF205A4DEC0058E8F3 /* Strings.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0679BEDE205A4DEC0058E8F3 /* Strings.swift */; };
C3D08F4F2101B9B600FDC15E /* Assets.swift in Sources */ = {isa = PBXBuildFile; fileRef = C3D08F4D2101B9B500FDC15E /* Assets.swift */; };/* OPTION_END */
...
6D3A04222170BE06007B6860 /* AppConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6D3A04212170BE03007B6860 /* AppConfiguration.swift */; };
6D717123216F926F00949350 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6D717122216F926F00949350 /* Main.storyboard */; };
/* End PBXBuildFile section */
diff --git a/PROJECTNAME/PROJECTNAME.xcodeproj/project.pbxproj b/PROJECTNAME/PROJECTNAME.xcodeproj/project.pbxproj
index ac6671a6926287b438691d887bccb447e1c0b0ce..0e277ccb66527d558b7edb03ac73ab084ad8e6f8 100644
--- a/PROJECTNAME/PROJECTNAME.xcodeproj/project.pbxproj
+++ b/PROJECTNAME/PROJECTNAME.xcodeproj/project.pbxproj
@@ -9,48 +9,47 @@
/* Begin PBXBuildFile section */
060F086D1E4D6C9200D9166F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 060F085B1E4D6C9200D9166F /* AppDelegate.swift */; };
060F08711E4D6C9200D9166F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 060F08651E4D6C9200D9166F /* Assets.xcassets */; };
- 060F08731E4D6C9200D9166F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 060F08691E4D6C9200D9166F /* LaunchScreen.storyboard */; };
063834571F6F62AC0057A831 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 063834561F6F62AC0057A831 /* ViewController.swift */; };
для replace $PROJECT_NAME_OPTION "{{ cookiecutter.name }}":
PROJECTNAME
{{ cookiecutter.name }}
для replace "\/* FABRIC_OPTION_BEGIN */" "{% if cookiecutter.fabric == "Yes" %}"
/Applications /Library /Network /System /Users /Volumes /bin /cores /dev /etc /home /installer.failurerequests /net /private /sbin /tmp /usr /var FABRIC_OPTION_BEGIN PROJECTNAME/ PROJECTNAME_bak/ hooks/ resources/

Changelog

Disclaimer

This file is generated automatically, please do not edit this file manually.

Build 1.1.1-145 (04.10.2018)

🎉 Features:

• [ISD-73] Make CI machine public;
• [ISD-71] Update CI machine;
• [ISD-69] Setup sample project with snapshot / UI testing integration guide;
• [ISD-49] Working with frameworks;

@nzatsepilov
nzatsepilov / Changelog.md
Last active September 28, 2018 09:57
Magic friday

Changelog

Build 1-#{5} (01.01.1970)\n

🎉 Features:

@nzatsepilov
nzatsepilov / Example.swift
Created September 28, 2018 08:47
Test gist
import Foundation
A0adJQAlRcEsSLcUsotU1C9SoRpGlWMqtUxVPRPKNChdQ5VtpPQNgnFUyjlUZR2pyEEUWgjFQyppIoR0kaSNCj6iYKRCnVSVmULcVMlOqH6qGEpVR0mF0lIUPSWmAldJ1VZFob6SCsaSCjlLKhRrFYX0VlF0F0Lslf5SqQaTSodBi0X1WJHJJFxW2ozKZyGNpuK0yGpFIV5DqNmq3CbFbsFvpOEQLUc8R2k65TqJtovyXajGK6rzitJ6VNV+KnHvgooCGswhYQsqO0cuSRumLahQkjYYtERDZXyY34weHDBGKrZzGyjRQKu46pkVZ1PUseI3rxJPCnOK87xYrUIWqTRoiYaCiu3cBhqswkgSfC66OCSExiu2cxso0UCruOqZvsp0ZapXJZ4U5hTHar2KsynqWPHfq2yA+dtiKpSkDQYt0VAZH+Y3owcHjJGK7dwk8W/x+6/Yzu0o7aWwlaMHkQ9Xa7XKpCRkgwGlUZLgK37fleiGJfAVVB6NpqBZloXRbV7haDBJ/Fv8xlaMIn0Y9jWvxKFNzkCgZseboo4VxyLEKpoUkgYiCyps4t/iv+dV0kQDW1DJodlbLu1TFFSQlE2WaKhgDgDniqgDqFUeF1Vnt6AyPxzHrhUfxbQVJGWTJRoqmAPAuSqzh+PYteIjXq0ywbdBAUlBZX44jl0rPsJWZg/HsWvFR1hsraKB6RVUkJRNlmioYA4A54qoA6jVahWDKViERptXOBqswkgSfC66OCSExis5NaMaH4Z9zSsZfMqd6KOkoEKKezp7fJVocU9n3h2r5MU9nd1uvlqFrCYFxZKCCkeDVRhJgs9FF4eE0HitYtRWwxZUNsD8bfNarZLDKFtQmagy2ECDSeLf4je2MlFlsIEGqzCSBJ+LLg4JofFKstVENts30GAVRpLgc9HFISE0Xkm2mshm+wYaTBL/Fr+xtYqTFAuURkmCr/hdmRxoBRWD+UCDHaW9FLZy9CDy4WrFkmbFoAY5UKKBVplhrNMMl04ziItuxWA+0GAV
❌ Decoding error:
The given data was not valid JSON.
📄 for JSON: {}<!DOCTYPE html>
<html>
<head>
<title>Асинхронной модуль или обработчик завершил работу, когда асинхронная операция была ещё в состоянии ожидания.</title>