protected static void checkPattern(final String arg) throws IOException {
        var failBuild = new AtomicBoolean(false);
        Files.walk(Paths.get(arg))
            .filter(file -> Files.isRegularFile(file)
                && file.toFile().getName().equals("script.json"))
            .forEach(file -> {
//                print(file.toFile().getAbsolutePath());
                var text = readFile(file);
                var matcher = Pattern.compile("\"properties\": \\[(.+)\\]", Pattern.DOTALL).matcher(text);
                if (matcher.find()) {
                    var properties = Arrays.stream(matcher.group(1)
                        .trim().split("\",")).map(String::trim).collect(Collectors.toList());
                    var unique = new HashSet<>(properties);
                    if (unique.size() != properties.size()) {
                        print("%s contains duplicate configuration settings.", file);
                        print("Duplicate settings are:", file);
                        var dups = properties.stream()
                            .filter(e -> Collections.frequency(properties, e) > 1)
                            .distinct()
                            .map(e -> e + '"')
                            .collect(Collectors.toList());
                        print("\t- %s %n", dups);
                        failBuild.set(true);
                    }
                }
            });
        if (failBuild.get()) {
            System.exit(1);
        }
    }
This is {@link CheckPuppeteerScenarioScriptConfiguration}.

@author Misagh Moayyed
@since 6.6.0
ci/checks/CheckPuppeteerScenarioScriptConfiguration.java