[PATCH v3] .gitignore: Ignore smatch generated files

Brandon Pollack posted 1 patch 2 years, 9 months ago
.gitignore | 7 +++++++
1 file changed, 7 insertions(+)
[PATCH v3] .gitignore: Ignore smatch generated files
Posted by Brandon Pollack 2 years, 9 months ago
The Smatch static checker creates some data files in the kernel root
directory.  Add them to the .gitignore file so that no one accidentally
commits them.

Signed-off-by: Brandon Pollack <brpol@chromium.org>

---
v3: Rewrote a more descriptive commit message and removed "change-id" junk
v2: Removed trinity stuff

New to development and looking for tasks to work on to get familiar with
code, I noticed smatch generates some files at the root.  Since this
tool seems frequent for newbies like myself I thought it would be worth
getting rid of the chance of accidentally committing these files.
---
 .gitignore | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/.gitignore b/.gitignore
index 47229f98b327..fd8572cb7db7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -171,3 +171,10 @@ sphinx_*/
 
 # Rust analyzer configuration
 /rust-project.json
+
+# Smatch tree outputs
+smatch_compile.warns
+smatch_db.sqlite
+smatch_warns.txt
+smatch_warns.txt.caller_info
+smatch_warns.txt.sql
-- 
2.40.1.521.gf1e218fcd8-goog
Re: [PATCH v3] .gitignore: Ignore smatch generated files
Posted by Brandon Ross Pollack 2 years, 5 months ago
On Tue, May 9, 2023 at 9:47 AM Brandon Pollack <brpol@chromium.org> wrote:
>
> The Smatch static checker creates some data files in the kernel root
> directory.  Add them to the .gitignore file so that no one accidentally
> commits them.
>
> Signed-off-by: Brandon Pollack <brpol@chromium.org>
>
> ---
> v3: Rewrote a more descriptive commit message and removed "change-id" junk
> v2: Removed trinity stuff
>
> New to development and looking for tasks to work on to get familiar with
> code, I noticed smatch generates some files at the root.  Since this
> tool seems frequent for newbies like myself I thought it would be worth
> getting rid of the chance of accidentally committing these files.
> ---
>  .gitignore | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/.gitignore b/.gitignore
> index 47229f98b327..fd8572cb7db7 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -171,3 +171,10 @@ sphinx_*/
>
>  # Rust analyzer configuration
>  /rust-project.json
> +
> +# Smatch tree outputs
> +smatch_compile.warns
> +smatch_db.sqlite
> +smatch_warns.txt
> +smatch_warns.txt.caller_info
> +smatch_warns.txt.sql
> --
> 2.40.1.521.gf1e218fcd8-goog
>