function parseCodePaths(code) {
	const retv = [];

	linter.verify(code, {
		plugins: {
			"test-plugin": {
				rules: {
					"test-rule": {
						create: () => ({
							onCodePathStart(codePath) {
								retv.push(codePath);
							},
						}),
					},
				},
			},
		},
		rules: { "test-plugin/test-rule": 2 },
	});

	return retv;
}
Gets the code path of a given source code.
@param {string} code A source code.
@returns {CodePath[]} A list of created code paths.