Modify vale configuration
This commit is contained in:
parent
91ccf5d19c
commit
900beccb05
21 changed files with 7 additions and 294 deletions
|
@ -4,7 +4,8 @@ MinAlertLevel = suggestion
|
|||
|
||||
Vocab = General
|
||||
|
||||
Packages = RedHat, proselint, write-good, alex, Joblint
|
||||
# https://vale.sh/explorer
|
||||
Packages = RedHat, proselint, write-good, alex
|
||||
|
||||
[*.{md}]
|
||||
BasedOnStyles = Vale, RedHat, proselint, write-good, alex, Joblint
|
||||
BasedOnStyles = Vale, RedHat, proselint, write-good, alex
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
extends: substitution
|
||||
message: Use '%s' instead of '%s'
|
||||
description: "Tech people know their acronyms; you come across as not very tech-savvy if you expand them."
|
||||
ignorecase: true
|
||||
level: warning
|
||||
action:
|
||||
name: replace
|
||||
swap:
|
||||
'cascading[ -]?style[ -]?sheets': CSS
|
||||
'hyper[ -]?text(?:[ -]?mark[ -]?up(?:[ -]?language)?)?': HTML
|
|
@ -1,26 +0,0 @@
|
|||
extends: existence
|
||||
message: "Avoid using '%s'"
|
||||
description: "Benefits such as '%s' are not bad in themselves, but their appearance in a job post often disguises the fact that there are few real benefits to working for a company."
|
||||
ignorecase: true
|
||||
level: warning
|
||||
tokens:
|
||||
- 'ales?'
|
||||
- 'beers?'
|
||||
- 'brewskis?'
|
||||
- 'coffee'
|
||||
- '(?:foos|fuss)[ -]*ball'
|
||||
- 'happy[ -]*hours?'
|
||||
- 'keg(erator)?s?'
|
||||
- 'lagers?'
|
||||
- 'nerf[ -]*guns?'
|
||||
- 'ping[ -]*pong?'
|
||||
- 'pints?'
|
||||
- 'pizzas?'
|
||||
- 'play\\s*stations?'
|
||||
- 'pool[ -]*table|pool'
|
||||
- 'rock[ -]*walls?'
|
||||
- 'table[ -]*football'
|
||||
- 'table[ -]*tennis'
|
||||
- 'wiis?'
|
||||
- 'xbox(?:es|s)?'
|
||||
- 'massages?'
|
|
@ -1,13 +0,0 @@
|
|||
extends: existence
|
||||
message: "Avoid using '%s'"
|
||||
description: "Bro culture terminology can really reduce the number of people likely to show interest."
|
||||
ignorecase: true
|
||||
level: error
|
||||
tokens:
|
||||
- 'brogramm(?:er|ers|ing)'
|
||||
- 'crank'
|
||||
- 'crush'
|
||||
- 'hard[ -]*core'
|
||||
- 'hella'
|
||||
- 'mak(?:e|ing) it rain'
|
||||
- 'skillz'
|
|
@ -1,17 +0,0 @@
|
|||
extends: existence
|
||||
message: "Avoid using '%s'"
|
||||
description: "Competition can be healthy, but for a lot of people a heavily competitive environment can be a strain."
|
||||
ignorecase: true
|
||||
level: suggestion
|
||||
tokens:
|
||||
- 'compete'
|
||||
- 'competition'
|
||||
- 'competitive'
|
||||
- 'cutting[ -]edge'
|
||||
- 'fail'
|
||||
- 'fore[ -]*front'
|
||||
- 'super[ -]*stars?'
|
||||
- 'the best'
|
||||
- 'reach the top'
|
||||
- 'top of .{2,8} (?:game|class)'
|
||||
- 'win'
|
|
@ -1,15 +0,0 @@
|
|||
extends: existence
|
||||
message: "Avoid using '%s'"
|
||||
description: "When you use '%s,' you're being discriminatory."
|
||||
ignorecase: true
|
||||
level: error
|
||||
tokens:
|
||||
- 'bia?tch(?:es)?'
|
||||
- 'bimbos?'
|
||||
- 'hoes?'
|
||||
- 'hunks?'
|
||||
- 'milfs?'
|
||||
- 'slags?'
|
||||
- 'sluts?'
|
||||
- 'stallions?'
|
||||
- 'studs?'
|
|
@ -1,17 +0,0 @@
|
|||
extends: existence
|
||||
message: "Don't specify a development environment unless absolutely necessary."
|
||||
ignorecase: true
|
||||
level: suggestion
|
||||
tokens:
|
||||
- 'atom'
|
||||
- 'bb[ -]*edit'
|
||||
- 'dream[ -]*weaver'
|
||||
- 'eclipse'
|
||||
- 'emacs'
|
||||
- 'net[ -]*beans'
|
||||
- 'note[ -]*pad'
|
||||
- 'sublime[ -]*text'
|
||||
- 'text[ -]*wrangler'
|
||||
- 'text[ -]*mate'
|
||||
- 'vim?'
|
||||
- 'visual[ -]*studio'
|
|
@ -1,13 +0,0 @@
|
|||
extends: existence
|
||||
message: "Avoid using '%s'"
|
||||
description: "Referring to tech people as '%s' devalues the work that they do and shows a lack of respect and professionalism."
|
||||
ignorecase: true
|
||||
level: warning
|
||||
tokens:
|
||||
- 'gurus?'
|
||||
- 'hero(?:es|ic)?'
|
||||
- 'ninjas?'
|
||||
- 'rock[ -]*stars?'
|
||||
- 'super[ -]*stars?'
|
||||
- 'badass(?:es)?'
|
||||
- 'BAMF'
|
|
@ -1,40 +0,0 @@
|
|||
extends: existence
|
||||
message: "Avoid using '%s'"
|
||||
description: "Use of '%s' could indicate that you're discriminating in favour of a certain gender."
|
||||
ignorecase: true
|
||||
level: error
|
||||
tokens:
|
||||
- 'boys?'
|
||||
- 'bros?'
|
||||
- 'broth(?:a|er)s?'
|
||||
- 'chicks?'
|
||||
- 'dads?'
|
||||
- 'dudes?'
|
||||
- 'fathers?'
|
||||
- 'females?'
|
||||
- 'gentlem[ae]n'
|
||||
- 'girls?'
|
||||
- 'grandfathers?'
|
||||
- 'grandmas?'
|
||||
- 'grandmothers?'
|
||||
- 'grandpas?'
|
||||
- 'gran'
|
||||
- 'grann(?:y|ies)'
|
||||
- 'guys?'
|
||||
- 'husbands?'
|
||||
- 'lad(y|ies)?'
|
||||
- 'm[ae]n'
|
||||
- 'm[ou]ms?'
|
||||
- 'males?'
|
||||
- 'momm(?:y|ies)'
|
||||
- 'mommas?'
|
||||
- 'mothers?'
|
||||
- 'papas?'
|
||||
- 'sist(?:a|er)s?'
|
||||
- 'wi(?:fe|ves)'
|
||||
- 'wom[ae]n'
|
||||
- he
|
||||
- her
|
||||
- him
|
||||
- his
|
||||
- she
|
|
@ -1,8 +0,0 @@
|
|||
extends: existence
|
||||
message: "Avoid using '%s'"
|
||||
description: "The use of '%s' indicates that you're only looking for male developers."
|
||||
ignorecase: true
|
||||
level: error
|
||||
tokens:
|
||||
- 'beard(?:ed|s|y)?'
|
||||
- 'grizzl(?:ed|y)'
|
|
@ -1,15 +0,0 @@
|
|||
extends: existence
|
||||
message: "Avoid using '%s'"
|
||||
description: "Legacy technologies can reduce the number of people interested in a job."
|
||||
ignorecase: true
|
||||
level: suggestion
|
||||
tokens:
|
||||
- 'cobol'
|
||||
- 'cvs'
|
||||
- 'front[ -]*page'
|
||||
- 'rcs'
|
||||
- 'sccs'
|
||||
- 'source[ -]*safe'
|
||||
- 'vb\\s*6'
|
||||
- 'visual[ -]*basic\\s*6'
|
||||
- 'vbscript'
|
|
@ -1,6 +0,0 @@
|
|||
extends: existence
|
||||
message: "Reevaluate the use of '%s'"
|
||||
ignorecase: true
|
||||
level: suggestion
|
||||
tokens:
|
||||
- 'meritocra(?:cy|cies|tic)'
|
|
@ -1,13 +0,0 @@
|
|||
extends: existence
|
||||
message: "Remove '%s'"
|
||||
ignorecase: true
|
||||
level: warning
|
||||
tokens:
|
||||
- 'bloody'
|
||||
- 'bugger'
|
||||
- 'cunt'
|
||||
- 'damn'
|
||||
- 'fuck(?:er|ing)?'
|
||||
- 'piss(?:ing)?'
|
||||
- 'shit'
|
||||
- 'motherfuck(?:ers?|ing)'
|
|
@ -1,25 +0,0 @@
|
|||
Based on [Joblint](https://github.com/rowanmanning/joblint).
|
||||
|
||||
> Test tech job posts for issues with sexism, culture, expectations, and recruiter fails.
|
||||
|
||||
```
|
||||
Copyright (c) 2015, Rowan Manning
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
```
|
|
@ -1,8 +0,0 @@
|
|||
extends: existence
|
||||
message: "Avoid using '%s'"
|
||||
description: "Something feels off when you need to reassure someone of something that should definitely not be an issue in any workplace."
|
||||
ignorecase: true
|
||||
level: suggestion
|
||||
tokens:
|
||||
- 'drama[ -]*free'
|
||||
- 'stress[ -]*free'
|
|
@ -1,10 +0,0 @@
|
|||
extends: existence
|
||||
message: "Avoid using '%s'"
|
||||
description: "Terms like '%s' are often used if the person writing a post doesn't know what they are talking about."
|
||||
ignorecase: true
|
||||
level: warning
|
||||
tokens:
|
||||
- gay for
|
||||
- sexy
|
||||
- hawt
|
||||
- phat
|
|
@ -1,9 +0,0 @@
|
|||
extends: existence
|
||||
message: "Avoid using '%s'"
|
||||
description: "Terms like '%s' and others can indicate that the person writing a job post is unaware of the time and effort involved in preparing a new starter for work."
|
||||
ignorecase: true
|
||||
level: suggestion
|
||||
tokens:
|
||||
- 'hit[ -]the[ -]ground[ -]running'
|
||||
- 'juggle'
|
||||
- 'tight deadlines?'
|
|
@ -1,9 +0,0 @@
|
|||
extends: substitution
|
||||
message: Use '%s' instead of '%s'
|
||||
ignorecase: true
|
||||
level: error
|
||||
action:
|
||||
name: replace
|
||||
swap:
|
||||
'java[ -]?scripts?': JavaScript
|
||||
ruby on rail: Ruby on Rails
|
|
@ -1,15 +0,0 @@
|
|||
extends: existence
|
||||
message: "Avoid using '%s'"
|
||||
description: "Terms like '%s' often indicate that a non technical person (perhaps a CEO or stakeholder) has been involved in writing the post."
|
||||
ignorecase: true
|
||||
level: warning
|
||||
tokens:
|
||||
- 'blue[ -]*sk(?:y|ies)'
|
||||
- 'enlighten(?:ed|ing)?'
|
||||
- 'green[ -]*fields?'
|
||||
- 'incentivi[sz]e'
|
||||
- 'paradigm'
|
||||
- 'producti[sz]e'
|
||||
- 'reach(?:ed|ing)? out'
|
||||
- 'synerg(?:y|ize|ise)'
|
||||
- 'visionar(?:y|ies)'
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"feed": "https://github.com/errata-ai/Joblint/releases.atom",
|
||||
"vale_version": ">=1.0.0"
|
||||
}
|
23
flake.nix
23
flake.nix
|
@ -180,70 +180,55 @@
|
|||
help = "`home-manager switch` for asahi";
|
||||
name = "switch-asahi";
|
||||
command = "${pkgs.home-manager}/bin/home-manager switch --flake .#asahi";
|
||||
package = pkgs.home-manager;
|
||||
}
|
||||
{
|
||||
help = "`home-manager switch` for asahi with backup";
|
||||
name = "switch-asahi-backup";
|
||||
command = "${pkgs.home-manager}/bin/home-manager switch --flake .#asahi -b backup";
|
||||
package = pkgs.home-manager;
|
||||
}
|
||||
{
|
||||
help = "update dependencies";
|
||||
name = "update";
|
||||
command = "${pkgs.lix}/bin/nix flake update";
|
||||
package = pkgs.lix;
|
||||
}
|
||||
{
|
||||
help = "show home-manager documentation";
|
||||
name = "man-home";
|
||||
command = "${pkgs.man}/bin/man home-configuration.nix";
|
||||
package = pkgs.man;
|
||||
}
|
||||
{
|
||||
help = "generate Helix grammars";
|
||||
name = "_helix-grammars";
|
||||
command = "${pkgs.helix}/bin/hx --grammar fetch && hx --grammar build";
|
||||
package = pkgs.helix;
|
||||
}
|
||||
{
|
||||
help = "sync vale configuration";
|
||||
name = "vale-sync";
|
||||
command = "${pkgs.vale}/bin/vale sync";
|
||||
package = pkgs.vale;
|
||||
}
|
||||
{
|
||||
help = "generate age key";
|
||||
name = "_age-generate-key";
|
||||
command = "${pkgs.uutils-coreutils-noprefix}/bin/mkdir -p ~/.config/sops/age && ${pkgs.age}/bin/age-keygen -o ~/.config/sops/age/keys.txt && ${pkgs.uutils-coreutils-noprefix}/bin/cat ~/.config/sops/age/keys.txt";
|
||||
package = pkgs.age;
|
||||
}
|
||||
{
|
||||
help = "edit secrets.yaml";
|
||||
name = "sops-edit";
|
||||
command = "${pkgs.sops}/bin/sops edit ./home/secrets/secrets.yaml";
|
||||
package = pkgs.sops;
|
||||
}
|
||||
];
|
||||
packages = [
|
||||
# pkgs.age
|
||||
pkgs.age
|
||||
pkgs.forgejo-cli
|
||||
pkgs.git
|
||||
# pkgs.harper
|
||||
pkgs.helix
|
||||
# pkgs.home-manager
|
||||
pkgs.home-manager
|
||||
pkgs.jujutsu
|
||||
pkgs.lix
|
||||
# pkgs.ltex-ls-plus
|
||||
pkgs.man
|
||||
# pkgs.marksman
|
||||
# pkgs.nil
|
||||
# pkgs.sops
|
||||
# pkgs.taplo
|
||||
pkgs.sops
|
||||
pkgs.uutils-coreutils-noprefix
|
||||
# pkgs.vale
|
||||
# pkgs.vale-ls
|
||||
# pkgs.yaml-language-server
|
||||
pkgs.vale
|
||||
];
|
||||
devshell = {
|
||||
motd = ''
|
||||
|
|
Loading…
Add table
Reference in a new issue