Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is --ignore-syntax broken? #941

Open
1 task done
cpkio opened this issue Dec 28, 2024 · 0 comments
Open
1 task done

Is --ignore-syntax broken? #941

cpkio opened this issue Dec 28, 2024 · 0 comments

Comments

@cpkio
Copy link

cpkio commented Dec 28, 2024

Check for existing issues

  • Completed

Environment

Windows 10 x64; manual installation to path; vale 3.9.2

Describe the bug / provide steps to reproduce it

Asciidoc syntax. I prefer linting with --ignore-syntax.

Without --ignore-syntax vale misses word on line 31 ('данная').
With --ignore-syntax vale erroneously detects 'Возможно' as partly erroneous with 'можно' (should not, because rule implies \b word boundaries) and misses 'можно' on line 109.

user@DESKTOP R:\tmp
28.12.2024  6:53:39 $ vale test.adoc

 test.adoc
 3:43    warning  Избыточный текст 'несколько'    lexic.Remove
 15:54   warning  Избыточный текст 'можно'        lexic.Remove
 25:27   warning  Избыточный текст 'функционал'   lexic.Remove
 27:3    warning  Избыточный текст 'данная'       lexic.Remove
 30:27   warning  Избыточный текст 'функционала'  lexic.Remove
 48:59   warning  Избыточный текст 'можно'        lexic.Remove
 51:54   warning  Избыточный текст 'позволяет'    lexic.Remove
 85:21   warning  Избыточный текст 'данные'       lexic.Remove
 90:21   warning  Избыточный текст 'данные'       lexic.Remove
 95:21   warning  Избыточный текст 'данные'       lexic.Remove
 109:60  warning  Избыточный текст 'можно'        lexic.Remove

✖ 0 errors, 11 warnings and 0 suggestions in 1 file.

user@DESKTOP R:\tmp
28.12.2024  6:58:32 $ vale --ignore-syntax test.adoc

 test.adoc
 3:43   warning  Избыточный текст 'несколько'    lexic.Remove
 15:54  warning  Избыточный текст 'можно'        lexic.Remove
 25:27  warning  Избыточный текст 'функционал'   lexic.Remove
 27:3   warning  Избыточный текст 'данная'       lexic.Remove
 30:27  warning  Избыточный текст 'функционала'  lexic.Remove
 31:29  warning  Избыточный текст 'данная'       lexic.Remove
 48:59  warning  Избыточный текст 'можно'        lexic.Remove
 51:54  warning  Избыточный текст 'позволяет'    lexic.Remove
 73:6   warning  Избыточный текст 'можно'        lexic.Remove
 85:21  warning  Избыточный текст 'данные'       lexic.Remove
 90:21  warning  Избыточный текст 'данные'       lexic.Remove
 95:21  warning  Избыточный текст 'данные'       lexic.Remove

✖ 0 errors, 12 warnings and 0 suggestions in 1 file.

vale-test.zip
Edit .vale.ini StylesPath to your extraction location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant