Skip to contentSkip to conversation

.gitignore: ignore smatch generated files

PATCH Superseded Brandon Pollack 3 participants 4 messages May 8, 2023

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 .gitignore: ignore smatch generated files

ignore smatch generated files.

Change-Id I8ca4002128e53024ea8a3daef908ec5e49cec65c

---
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(+)
.gitignore +7 -0
index 47229f98b327..fd8572cb7db7 100644
@@ -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
Signature · 1 line
2.40.1.521.gf1e218fcd8-goog
#2 lore raw
In reply to Brandon Pollack
Quoted 2 lines · Brandon Pollack

ignore smatch generated files.

Sorry, I should have mentioned this in v1: this line just repeats the title -- please also give the rationale for the change in the commit message, not just what changed.

Quoted 1 line

Change-Id: I8ca4002128e53024ea8a3daef908ec5e49cec65c

Also, please avoid Change-Id (and run scripts/checkpatch.pl, which looks for this sort of things).

Thanks!

Cheers,
Miguel

#3 lore raw
Quoted 8 lines · Miguel Ojeda
Quoted 2 lines · Brandon Pollack

ignore smatch generated files.

Sorry, I should have mentioned this in v1: this line just repeats the title -- please also give the rationale for the change in the commit message, not just what changed.

I secretly wanted to say both things you said. Also please start the commit message with a Capital letter. Here is my proposed commit message:

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.

regards,
dan carpenter