override fun visitEntry()

in src/main/kotlin/mobi/hsz/idea/gitignore/codeInspection/IgnoreIncorrectEntryInspection.kt [19:30]


        override fun visitEntry(entry: IgnoreEntry) {
            var regex = entry.text
            if (IgnoreBundle.Syntax.GLOB == entry.syntax) {
                regex = Glob.createRegex(regex, false)
            }

            try {
                Pattern.compile(regex)
            } catch (e: PatternSyntaxException) {
                holder.registerProblem(entry, IgnoreBundle.message("codeInspection.incorrectEntry.message", e.description))
            }
        }