1. 11 Mar, 2019 2 commits
  2. 19 Dec, 2018 1 commit
  3. 27 Apr, 2018 1 commit
    • Antonio Nino Diaz's avatar
      checkpatch: Ignore SPDX_LICENSE_TAG · 90582e4d
      Antonio Nino Diaz authored
      
      
      The Linux kernel expects the SPDX license tag in the first line of each
      source code file in a comment.
      
      In the context of the Linux kernel repository this makes sense because
      they have many different license headers across their codebase. Moving
      the tag to the first line of the source code files makes it easier for
      analyzers to see the license of each file.
      
      In the Trusted Firmware, we control all headers and make sure that they
      follow the same pattern, so this is not needed.
      
      Change-Id: Ie19802c7b65b1bdd63da9ece64311aec1f8ad7fe
      Signed-off-by: default avatarAntonio Nino Diaz <antonio.ninodiaz@arm.com>
      90582e4d
  4. 29 Jan, 2018 1 commit
    • Antonio Nino Diaz's avatar
      Analyze coding style of patches individually · 51d28937
      Antonio Nino Diaz authored
      
      
      With the old system `checkpatch.pl` gets one sole input that consists of
      the commit message and commit diff of each commit between BASE_COMMIT
      and HEAD. It also filters out changes in some files, which makes `git
      format-patch` completely ignore that commit, even the commit message.
      
      With the new system the commit message and commit diff are analyzed
      separately. This means that, even if all the files modified by a commit
      are filtered out, the commit message will still be analyzed.
      
      Also, all commits are analyzed individually. This way it's easier to
      know which commit caused the problem, and there are no warnings about
      repeated "Signed-off-by" lines.
      
      Change-Id: Ic676a0b76801bb2607141a8d73dc3a942dc01c0e
      Signed-off-by: default avatarAntonio Nino Diaz <antonio.ninodiaz@arm.com>
      51d28937
  5. 24 Oct, 2016 1 commit
  6. 06 Jun, 2016 1 commit
    • Sandrine Bailleux's avatar
      Move checkpatch options in a configuration file · f607739c
      Sandrine Bailleux authored
      At the moment, the top Makefile specifies the options to pass to the
      checkpatch script in order to check the coding style. The checkpatch
      script also supports reading its options from a configuration file
      rather than from the command line.
      
      This patch makes use of this feature and moves the checkpatch options
      out of the Makefile. This simplifies the Makefile and makes things
      clearer.
      
      This patch also adds some more checkpatch options:
        --showfile
        --ignore FILE_PATH_CHANGES
        --ignore AVOID_EXTERNS
        --ignore NEW_TYPEDEFS
        --ignore VOLATILE
      The rationale behind each of these options has been documented
      in the configuration file.
      
      Change-Id: I423e1abe5670c0f57046cbf705f89a8463898676
      f607739c