Skip to content

Commit d244d0f

Browse files
m-iwanickiDaniilKl
authored andcommitted
.oelint-adv: pass custom overrides to oelint
Signed-off-by: Michał Iwanicki <[email protected]>
1 parent c03e88a commit d244d0f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.oelint-custom-overrides.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"replacements": {
3+
"distros": [
4+
"dbg"
5+
]
6+
}
7+
}

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ repos:
4545
rev: 5.7.2
4646
hooks:
4747
- id: oelint-adv
48-
args: [--rulefile=.oelint-ruleset.json, --hide=info, --quiet, --fix]
48+
args: [--rulefile=.oelint-ruleset.json, --constantmods=+.oelint-custom-overrides.json, --hide=info, --quiet, --fix]
4949
name: Advanced oelint
5050
description: Based on the OpenEmbedded Styleguide and work done by oe-stylize-tool this module offers a (nearly) complete linter for bitbake-recipes.
5151
entry: oelint-adv

0 commit comments

Comments
 (0)