mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
preserve Sourcery comment header in make sourcery
This commit is contained in:
@@ -30,11 +30,13 @@ all: bootstrap
|
||||
|
||||
sourcery:
|
||||
sourcery --sources Tests --templates .sourcery/LinuxMain.stencil --output .sourcery
|
||||
tail -n +4 .sourcery/LinuxMain.generated.swift > Tests/LinuxMain.swift
|
||||
rm .sourcery/LinuxMain.generated.swift
|
||||
sed -e 4,11d .sourcery/LinuxMain.generated.swift > .sourcery/LinuxMain.swift
|
||||
sed -n 4,10p .sourcery/LinuxMain.generated.swift | cat - .sourcery/LinuxMain.swift > Tests/LinuxMain.swift
|
||||
rm .sourcery/LinuxMain.swift .sourcery/LinuxMain.generated.swift
|
||||
sourcery --sources Source/SwiftLintFramework/Rules --templates .sourcery/MasterRuleList.stencil --output .sourcery
|
||||
tail -n +4 .sourcery/MasterRuleList.generated.swift > Source/SwiftLintFramework/Models/MasterRuleList.swift
|
||||
rm .sourcery/MasterRuleList.generated.swift
|
||||
sed -e 4,11d .sourcery/MasterRuleList.generated.swift > .sourcery/MasterRuleList.swift
|
||||
sed -n 4,10p .sourcery/MasterRuleList.generated.swift | cat - .sourcery/MasterRuleList.swift > Source/SwiftLintFramework/Models/MasterRuleList.swift
|
||||
rm .sourcery/MasterRuleList.swift .sourcery/MasterRuleList.generated.swift
|
||||
|
||||
bootstrap:
|
||||
script/bootstrap
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
// Created by Scott Hoyt on 12/28/15.
|
||||
// Copyright © 2015 Realm. All rights reserved.
|
||||
//
|
||||
// Generated using Sourcery 0.6.1 — https://github.com/krzysztofzablocki/Sourcery
|
||||
// DO NOT EDIT
|
||||
|
||||
public let masterRuleList = RuleList(rules:
|
||||
AttributesRule.self,
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
// Created by JP Simard on 12/11/16.
|
||||
// Copyright © 2016 Realm. All rights reserved.
|
||||
//
|
||||
// Generated using Sourcery 0.6.1 — https://github.com/krzysztofzablocki/Sourcery
|
||||
// DO NOT EDIT
|
||||
|
||||
@testable import SwiftLintFrameworkTests
|
||||
import XCTest
|
||||
|
||||
Reference in New Issue
Block a user