Skip to content

Commit a89da3b

Browse files
authored
Merge pull request #2 from Igor-Palaguta/swiftlint
Disable all swiftlint warnings
2 parents 77d5aa0 + 24d2bdc commit a89da3b

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

Diff for: Changelog.md

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
## Next
2+
- Added `swiftlint:disable all` to the top of the file. [@Igor-Palaguta]
3+
- Added "Generated using Pouch" to the top of the file. [@Igor-Palaguta]
4+
- Fixed spacing in the generated file. [@Igor-Palaguta]
25

36
## 0.1.2 (2021-03-24)
4-
5-
- Resign from building fat binaries due to problems with brew & intel macs
7+
- Resigned from building fat binaries due to problems with brew & intel macs.
68

79
## 0.1.1 (2021-03-24)
8-
- Small updates to Makefile for brew support
10+
- Small updates to Makefile for brew support.
911

1012
## 0.1.0 (2021-03-24)
11-
1213
- No need for `filePath` keyword in the `.pouch.yml` output if there is a single path (with multiple config options you need to type parameter names, similar to how secret parsing works).
13-
- `pouch` will now by default run `pouch retrieve`
14-
- Fixed a bug where if you didn't provide output language it would print parser error
14+
- `pouch` will now by default run `pouch retrieve`.
15+
- Fixed a bug where if you didn't provide output language it would print parser error.
1516

1617
## 0.0.1 (2021-03-15)
17-
1818
- Initial release 🥳
19+
20+
[@Igor-Palaguta]: https://github.com/Igor-Palaguta

Diff for: Readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ Which should generate an output similar to this one (applied `xor` on a string (
2222
import Foundation
2323
2424
enum Secret {
25-
static let apiKey: String = Secret._xored([15, 26, 26, 243, 46, 124, 234, 140, 48, 169, 192], salt: [97, 115, 121, 150, 65, 18, 143, 225, 81, 221, 165, 134, 36, 222, 157, 20, 172, 203, 97, 8, 26, 81, 49, 144, 147, 1, 197, 21, 35, 32, 83, 156, 247, 108, 211, 108, 202, 174, 119, 134, 141, 176, 180, 38, 171, 110, 89, 21, 213, 32, 171, 146, 63, 245, 87, 139, 162, 194, 63, 57, 75, 0, 165, 122, 142])
26-
static let apiSecret: String = Secret._xored([153, 59, 35, 31, 242, 106, 45, 3, 19, 67, 207, 9, 190, 40, 55, 197, 218, 221, 1, 40, 170, 117, 103, 211, 204, 168, 44, 18, 39, 207, 44, 158, 217, 135, 163, 16, 145, 120, 158, 221, 212, 49, 229, 116, 188, 145, 91, 203, 174, 184, 158, 78, 146, 106, 100, 166, 93, 239, 8, 18, 38, 129, 97, 249, 218, 137, 48, 58, 80, 252, 102, 47, 7, 92, 90, 194, 64, 61, 151, 221, 39], salt: [252, 85, 73, 112, 139, 3, 67, 100, 51, 55, 167, 96, 205, 8, 68, 168, 187, 177, 109, 8, 222, 26, 8, 191, 243, 136, 101, 50, 80, 160, 89, 242, 189, 167, 207, 127, 231, 29, 190, 174, 187, 92, 128, 84, 212, 244, 55, 187, 142, 207, 247, 58, 250, 74, 13, 210, 124, 207, 88, 64, 85, 174, 8, 138, 169])
25+
static let apiKey: String = Secret._xored([15, 26, 26, 243, 46, 124, 234, 140, 48, 169, 192], salt: [97, 115, 121, 150, 65, 18, 143, 225, 81, 221, 165, 134, 36, 222, 157, 20, 172, 203, 97, 8, 26, 81, 49, 144, 147, 1, 197, 21, 35, 32, 83, 156, 247, 108, 211, 108, 202, 174, 119, 134, 141, 176, 180, 38, 171, 110, 89, 21, 213, 32, 171, 146, 63, 245, 87, 139, 162, 194, 63, 57, 75, 0, 165, 122, 142])
26+
static let apiSecret: String = Secret._xored([153, 59, 35, 31, 242, 106, 45, 3, 19, 67, 207, 9, 190, 40, 55, 197, 218, 221, 1, 40, 170, 117, 103, 211, 204, 168, 44, 18, 39, 207, 44, 158, 217, 135, 163, 16, 145, 120, 158, 221, 212, 49, 229, 116, 188, 145, 91, 203, 174, 184, 158, 78, 146, 106, 100, 166, 93, 239, 8, 18, 38, 129, 97, 249, 218, 137, 48, 58, 80, 252, 102, 47, 7, 92, 90, 194, 64, 61, 151, 221, 39], salt: [252, 85, 73, 112, 139, 3, 67, 100, 51, 55, 167, 96, 205, 8, 68, 168, 187, 177, 109, 8, 222, 26, 8, 191, 243, 136, 101, 50, 80, 160, 89, 242, 189, 167, 207, 127, 231, 29, 190, 174, 187, 92, 128, 84, 212, 244, 55, 187, 142, 207, 247, 58, 250, 74, 13, 210, 124, 207, 88, 64, 85, 174, 8, 138, 169])
2727
2828
private static func _xored(_ secret: [UInt8], salt: [UInt8]) -> String {
2929
return String(bytes: secret.enumerated().map { index, character in

Diff for: Sources/PouchFramework/Generators/Swift/SwiftGenerator.swift

+5-2
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,16 @@ public struct SwiftGenerator {
3232

3333
return
3434
"""
35+
// swiftlint:disable all
36+
// Generated using Pouch — https://github.com/sunshinejr/Pouch
37+
3538
\(imports.unique().map { "import \($0)" }.joined(separator: "\n"))
3639
3740
enum \(config.typeName) {
38-
\(variables.map { " " + $0.toFullDeclaration() }.joined(separator: "\n"))
41+
\(variables.map { " " + $0.toFullDeclaration() }.joined(separator: "\n"))
3942
4043
\(functions.unique().joined(separator: "\n\n"))
41-
}
44+
}\n
4245
"""
4346
}
4447

0 commit comments

Comments
 (0)