Closed csrabak closed 2 months ago
Its funny... I added this as a way to assist with counting them since it was not common at the time, along with gitignore and hgignore files...
Perhaps it would be best to exclude them by default allowing people to opt in... either that or respect a dot file in the home directory or some such to change the behavior.
Perhaps we can agree in a more specific name .scc_ignore
and as you wrote, by default don't include it, except if in some organization the file be considered part of the deliverables that have to maintained or such, and so it would make sense in this case to opt in.
So I am going to implement support for a scc_ignore file soon, as some want specific behavior for counting itself. The reason for .ignore file support itself was due to wanting drop in compatibility with tools such as ripgrep and ag which support this file, and by extension visual studio code.
Done. This is now the default. If you want to count ignore files you must set the flag
--count-ignore set to allow .gitignore and .ignore files to be counted
so
scc --count-ignore
for ignore files to be counted.
Unexpected behaviour
In a directory where a
.ignore
file is present,scc
includes it as part of the project stats.My experience
scc --no-gen --no-cocomo -x i ./project
Expected behavior
Desktop (please complete the following information):