<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13206</bug_id>
          
          <creation_ts>2019-02-26 21:38:07 +0000</creation_ts>
          <short_desc>Bitbake needs a lint-like tool</short_desc>
          <delta_ts>2026-08-13 15:28:08 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard> </status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>6.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Evadeflow">evadeflow</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>duy.dang.yw</cc>
    
    <cc>pavel</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>83128</commentid>
    <comment_count>0</comment_count>
    <who name="Evadeflow">evadeflow</who>
    <bug_when>2019-02-26 21:38:07 +0000</bug_when>
    <thetext>I feel it would benefit the Yocto project *tremendously* to have a linter for Bitbake builds. Bitbake is quite liberal in terms of what it will permit recipe/layer authors to do. However, a set of best practices have emerged over the past several years, many of which take the form: &quot;Avoid X.&quot; Here are a few such rules I encountered this week:

- In general, avoid override-style removal (i.e., `FOO_remove = ...`), because it&apos;s extremely difficult to undo in append recipes. If you must use this syntax, prefer the idiom`FOO_remove = ${FOO_REMOVALS}` so that appends can override the removal.

- Avoid adding extra whitespace when using += and =+
   BAD: FOO += &quot; bar&quot;
  OKAY: FOO += &quot;bar&quot;

- Avoid forgetting to add whitespace when appending via override syntax.
   BAD: FOO_append = &quot;bar&quot;
  OKAY: FOO_append = &quot; bar&quot;

My guess is that core Yocto project contributors can rattle off a few dozen rules like this off the top of their head. And I&apos;m betting that automated checks could be written for many/most of them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96824</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-24 14:24:25 +0000</bug_when>
    <thetext>Bulk move from 4.99 or 0.00 to 5.99</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98513</commentid>
    <comment_count>2</comment_count>
    <who name="Duy Dang">duy.dang.yw</who>
    <bug_when>2024-03-18 03:48:13 +0000</bug_when>
    <thetext>There is a python library for this purpose: https://pypi.org/project/oelint-adv/

But can we use it in bitbake or create a contrib script in poky?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>