fix(config): Don't correct PN for bitbake

Fixes #1392
This commit is contained in:
Ed Page committed 2025-10-06 13:00:39 -05:00
1 parent 06b99d1d14
commit 544f5bc304
2 files changed
+10 -13

No files matched your search

@@ -7,6 +7,15 @@
pub(crate) const NO_CHECK_TYPES: &[&str] = &["cert", "lock"];
pub(crate) const TYPE_SPECIFIC_DICTS: &[(&str, StaticDictConfig)] = &[
(
"bitbake",
StaticDictConfig {
ignore_idents: &[],
ignore_words: &[
"PN", // Package Name variable
],
},
),
(
"cpp",
StaticDictConfig {
@@ -1,16 +1,4 @@
bin.name = "typos"
status.code = 2
stdin = ""
stdout = """
error: `PN` should be `ON`
╭▸ ./foo.bb:1:11
│
1 │ LICENSE:${PN} = "GPL-2.0.only"; FOO:pn-myrecipe = "myrecipe-specific value"
╰╴ ━━
error: `pn` should be `on`
╭▸ ./foo.bb:1:37
│
1 │ LICENSE:${PN} = "GPL-2.0.only"; FOO:pn-myrecipe = "myrecipe-specific value"
╰╴ ━━
"""
stdout = ""
stderr = ""