Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .oelint.cfg
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
# oelint-adv defaults for this layer. Auto-loaded when oelint-adv runs with this
# directory as the working directory (see contrib/oelint/run-oelint.sh).
#
# The only layer-wide suppression is oelint.var.bbclassextend: every recipe in
# this layer is target-only, so the "add BBCLASSEXTEND" suggestion never applies
# and would otherwise need a redundant inline comment on every single recipe.
# Layer-wide suppressions:
# * oelint.var.bbclassextend: every recipe in this layer is target-only, so the
# "add BBCLASSEXTEND" suggestion never applies and would otherwise need a
# redundant inline comment on every single recipe.
# * oelint.var.licenseremotefile: recipes whose only sources are files from
# this layer have no upstream license file to check, so they point
# LIC_FILES_CHKSUM at ${COMMON_LICENSE_DIR}, as OE-Core does for its own
# such recipes. Recipes that fetch a source must still checksum its license.
# All other exceptions stay inline as '# nooelint: <rule.id>' comments next to
# the finding, so new recipes are always fully linted and each exception is
# documented in place.
[oelint]
release = blacksail
suppress = oelint.var.bbclassextend
suppress =
oelint.var.bbclassextend
oelint.var.licenseremotefile
15 changes: 8 additions & 7 deletions contrib/oelint/run-oelint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@
# All linter configuration is declarative and lives at the layer root, so this
# script only has to enumerate the files (oelint-adv does not recurse into
# directories):
# * .oelint.cfg - sets '--release' and the single layer-wide
# suppression (oelint.var.bbclassextend); auto-loaded
# from the working directory
# * .oelint.cfg - sets '--release' and the layer-wide suppressions
# (oelint.var.bbclassextend,
# oelint.var.licenseremotefile); auto-loaded from the
# working directory
# * oelint.constants.json - the layer constant-DB additions, auto-loaded by
# oelint-adv from the layer root (no --constantmods)
#
# Aside from oelint.var.bbclassextend (which never applies to a target-only
# layer), exceptions stay inline as '# nooelint: <rule.id>' comments next to the
# finding, so new recipes are always fully linted and each exception is
# documented in place (and flagged by oelint.file.inlinesuppress_na once stale).
# Aside from the layer-wide suppressions in .oelint.cfg, exceptions stay inline
# as '# nooelint: <rule.id>' comments next to the finding, so new recipes are
# always fully linted and each exception is documented in place (and flagged by
# oelint.file.inlinesuppress_na once stale).
set -eu

# Neutralise CDPATH so 'cd' below can't print or jump to an unexpected dir.
Expand Down
Loading