vim-vint: add module (#3604)
* vim-vint: add module * vim-vint: add tests * maintainers: add tomodachi94 * vim-vint: fix tests --------- Co-authored-by: Naïm Favier <n@monade.li>
This commit is contained in:
parent
e716961d78
commit
ffc022b6a7
8 changed files with 92 additions and 0 deletions
27
tests/modules/programs/vim-vint/basic-configuration.nix
Normal file
27
tests/modules/programs/vim-vint/basic-configuration.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ config, pkgs, lib, xdg, ... }:
|
||||
|
||||
{
|
||||
programs.vim-vint = {
|
||||
enable = true;
|
||||
settings = {
|
||||
cmdargs = {
|
||||
severity = "error";
|
||||
color = true;
|
||||
env = { neovim = true; };
|
||||
};
|
||||
policies = {
|
||||
ProhibitEqualTildeOperator.enabled = false;
|
||||
ProhibitUsingUndeclaredVariable.enabled = false;
|
||||
ProhibitAbbreviationOption.enabled = false;
|
||||
ProhibitImplicitScopeVariable.enabled = false;
|
||||
ProhibitSetNoCompatible.enabled = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent home-files/.config/.vintrc.yaml ${
|
||||
./basic-configuration.yaml
|
||||
}
|
||||
'';
|
||||
}
|
||||
16
tests/modules/programs/vim-vint/basic-configuration.yaml
Normal file
16
tests/modules/programs/vim-vint/basic-configuration.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
cmdargs:
|
||||
color: true
|
||||
env:
|
||||
neovim: true
|
||||
severity: error
|
||||
policies:
|
||||
ProhibitAbbreviationOption:
|
||||
enabled: false
|
||||
ProhibitEqualTildeOperator:
|
||||
enabled: false
|
||||
ProhibitImplicitScopeVariable:
|
||||
enabled: false
|
||||
ProhibitSetNoCompatible:
|
||||
enabled: false
|
||||
ProhibitUsingUndeclaredVariable:
|
||||
enabled: false
|
||||
1
tests/modules/programs/vim-vint/default.nix
Normal file
1
tests/modules/programs/vim-vint/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ vim-vint-basic-configuration = ./basic-configuration.nix; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue