Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function parseFile(
options: Options,
file: string,
fixable: boolean,
log: ILog,
): Promise {
const rootPath = ancesdir(file, options.rootMarker);
const fileRefLogger = new FileReferenceLogger(file, log);
const markers: Markers = {};
const addMarker = (
id: string,
checksum: string,
targets: Targets,
comment: string,
): void => {
for (const line of Object.keys(targets)) {
if (markers[id]) {
fileRefLogger.error(
`Sync-tag '${id}' declared multiple times`,
line,
);
}