Skip to content

Commit 7735a9c

Browse files
author
Wes Smith
committed
warn on specta focus
1 parent 7a8e385 commit 7735a9c

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

DeepLinkKit.xcodeproj/project.pbxproj

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
DE3E61091A3B4485008D6DFC /* NSString+DPLJSON.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "NSString+DPLJSON.m"; sourceTree = "<group>"; };
131131
DE3E610D1A3B4492008D6DFC /* NSString_DPLJSONSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NSString_DPLJSONSpec.m; sourceTree = "<group>"; };
132132
DE4128901A8BBE500089DAA2 /* AppLinks.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppLinks.h; sourceTree = "<group>"; };
133+
DE56F9AD1BD6B0B70090BF8C /* specta-focus-check.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; name = "specta-focus-check.sh"; path = "BuildScripts/specta-focus-check.sh"; sourceTree = "<group>"; };
133134
DE87B1EC1A5DEFD400204A35 /* DPLProductRouteHandler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DPLProductRouteHandler.h; sourceTree = "<group>"; };
134135
DE87B1ED1A5DEFD400204A35 /* DPLProductRouteHandler.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DPLProductRouteHandler.m; sourceTree = "<group>"; };
135136
DE87B1EF1A5DF49F00204A35 /* DPLProduct.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DPLProduct.h; sourceTree = "<group>"; };
@@ -482,6 +483,14 @@
482483
path = Categories;
483484
sourceTree = "<group>";
484485
};
486+
DE56F9AC1BD6B04E0090BF8C /* BuildScripts */ = {
487+
isa = PBXGroup;
488+
children = (
489+
DE56F9AD1BD6B0B70090BF8C /* specta-focus-check.sh */,
490+
);
491+
name = BuildScripts;
492+
sourceTree = "<group>";
493+
};
485494
DE5DD32C19E0643F007FD439 /* DeepLinkKit */ = {
486495
isa = PBXGroup;
487496
children = (
@@ -565,6 +574,7 @@
565574
DEAD328119E079D3003C8D65 /* Tests */ = {
566575
isa = PBXGroup;
567576
children = (
577+
DE56F9AC1BD6B04E0090BF8C /* BuildScripts */,
568578
2F4988DC1AE71A930069EF2B /* IntegrationTests */,
569579
DEEBD4A61AAB7928000BCA84 /* Fixtures */,
570580
4D4F41291B02A95800B710DB /* Regex */,
@@ -683,6 +693,7 @@
683693
6003F5AC195388D20070C39A /* Resources */,
684694
0D3359342B62D92CA67C2E04 /* Copy Pods Resources */,
685695
A891777DE50BB01821DC55E8 /* Embed Pods Frameworks */,
696+
DE56F9AB1BD6B0140090BF8C /* Specta Focus Check */,
686697
);
687698
buildRules = (
688699
);
@@ -997,6 +1008,20 @@
9971008
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ReceiverDemoSwift/Pods-ReceiverDemoSwift-frameworks.sh\"\n";
9981009
showEnvVarsInLog = 0;
9991010
};
1011+
DE56F9AB1BD6B0140090BF8C /* Specta Focus Check */ = {
1012+
isa = PBXShellScriptBuildPhase;
1013+
buildActionMask = 2147483647;
1014+
files = (
1015+
);
1016+
inputPaths = (
1017+
);
1018+
name = "Specta Focus Check";
1019+
outputPaths = (
1020+
);
1021+
runOnlyForDeploymentPostprocessing = 0;
1022+
shellPath = /bin/sh;
1023+
shellScript = "\"${SRCROOT}/Tests/BuildScripts/specta-focus-check.sh\"";
1024+
};
10001025
/* End PBXShellScriptBuildPhase section */
10011026

10021027
/* Begin PBXSourcesBuildPhase section */
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
FOCUS="fit\(|fdescribe\(|fcontext\("
4+
find "${SRCROOT}/Tests" \( -name "*.m" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($FOCUS).*\$" | perl -p -e "s/($FOCUS)/ warning: \$1/"

0 commit comments

Comments
 (0)