You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The .alexrc.yml file should allow or deny words per selected file.
Problem
It is not possible to allow or deny some words per selected files. Sometimes is needed to allow some words in files but in other files not. For example license Apache 2.0 file contains executed and failure words.
LICENSE-2.0.txt
136:34-136:42 warning Be careful with `executed`, it’s profane in some cases executed retext-profanities
161:54-161:61 warning Be careful with `failure`, it’s profane in some cases failure retext-profanities
⚠ 2 warnings
Creating .alexignore file is not an option because of these issues:
Subject of the feature
The
.alexrc.yml
file shouldallow
ordeny
words per selected file.Problem
It is not possible to allow or deny some words per selected files. Sometimes is needed to allow some words in files but in other files not. For example license Apache 2.0 file contains
executed
andfailure
words.Download Apache 2.0 file:
Run
alex
:It returns status code
1
and prints:Creating
.alexignore
file is not an option because of these issues:Also it will entirely ignore content of whole file and this is also not desired.
Expected behaviour
Create
.alexrc.yml
with this content:It will be also nice if the
file:
entry will also support glob*.txt
,**/*.cpp
or regexp.*\.md$
patterns.Still it should be possible to have backward compatibility with this YAML schema:
Because it almost all YAML parser libraries it is possible to retrieve YAML type:
!!seq
is YAML list[]
!!map
is YAML object{}
Alternatives
Create
.alexrc.yml
with this content:But this allow these words in all files.
Other alternative is using
.alexignore
file but this will ignore content of whole file and there is also still this issue: #170The text was updated successfully, but these errors were encountered: