Skip to content

Instantly share code, notes, and snippets.

View nikeee's full-sized avatar

Niklas Mollenhauer nikeee

View GitHub Profile
@nikeee
nikeee / preprocess.mjs
Last active October 3, 2024 09:37
replaces `#include filename` with the contents of the file
#!/usr/bin/env node
// @ts-check
import { createReadStream } from "node:fs";
import { realpath } from "node:fs/promises";
import * as rl from "node:readline/promises";
import * as path from "node:path";
const fileToProcess = process.argv[2];
if (!fileToProcess) {
<?php declare(strict_types = 1);
use Phan\Issue;
use Phan\PluginV3;
use Phan\CodeBase;
use Phan\IssueInstance;
use Phan\PluginV3\FinalizeProcessCapability;
use Phan\PluginV3\SubscribeEmitIssueCapability;
final class GitHubWorkflowCommandsPlugin extends PluginV3 implements FinalizeProcessCapability, SubscribeEmitIssueCapability {