Skip to content

Commit 33cb71d

Browse files
authored
Adds in proper .gitignore support (#451)
* start move to proper git support * start to hook it all up * first attempt at proper git ignore logic * refactor out redundant code * remove non required import * move to go code walker 1.3.0 for multi dir * tweak to use parallel file walker when possible * continue to tweak * resolve noop operation with new import * ready for merge
1 parent c4900ef commit 33cb71d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+3776
-785
lines changed

LANGUAGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ Monkey C (mc)
169169
MQL Header (mqh)
170170
MQL4 (mq4)
171171
MQL5 (mq5)
172-
MSBuild (csproj,vbproj,fsproj,vcproj,vcxproj,vcxproj.filters,myapp,props,rdlc,resx,settings,sln,targets)
172+
MSBuild (csproj,vbproj,fsproj,vcproj,vcxproj,vcxproj.filters,ilproj,myapp,props,rdlc,resx,settings,sln,targets)
173173
MUMPS (mps)
174174
Mustache (mustache)
175175
Nial (ndf)

SCC-OUTPUT-REPORT.html

Lines changed: 80 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
<tbody><tr>
1313
<th>Go</th>
1414
<th>40</th>
15-
<th>9829</th>
16-
<th>1554</th>
17-
<th>465</th>
18-
<th>7810</th>
19-
<th>1593</th>
20-
<th>400883</th>
15+
<th>9572</th>
16+
<th>1509</th>
17+
<th>451</th>
18+
<th>7612</th>
19+
<th>1546</th>
20+
<th>397903</th>
2121
</tr><tr>
2222
<th>Java</th>
2323
<th>24</th>
@@ -39,12 +39,12 @@
3939
</tr><tr>
4040
<th>Markdown</th>
4141
<th>11</th>
42-
<th>1492</th>
42+
<th>1497</th>
4343
<th>362</th>
4444
<th>0</th>
45-
<th>1130</th>
45+
<th>1135</th>
4646
<th>0</th>
47-
<th>60283</th>
47+
<th>60393</th>
4848
</tr><tr>
4949
<th>Python</th>
5050
<th>11</th>
@@ -56,13 +56,13 @@
5656
<th>18844</th>
5757
</tr><tr>
5858
<th>YAML</th>
59-
<th>9</th>
60-
<th>906</th>
59+
<th>8</th>
60+
<th>394</th>
6161
<th>66</th>
62-
<th>62</th>
63-
<th>778</th>
62+
<th>61</th>
63+
<th>267</th>
6464
<th>0</th>
65-
<th>18672</th>
65+
<th>12132</th>
6666
</tr><tr>
6767
<th>CSS</th>
6868
<th>5</th>
@@ -102,12 +102,12 @@
102102
</tr><tr>
103103
<th>Shell</th>
104104
<th>3</th>
105-
<th>1176</th>
106-
<th>156</th>
105+
<th>1158</th>
106+
<th>154</th>
107107
<th>92</th>
108-
<th>928</th>
109-
<th>106</th>
110-
<th>41877</th>
108+
<th>912</th>
109+
<th>104</th>
110+
<th>41219</th>
111111
</tr><tr>
112112
<th>C#</th>
113113
<th>2</th>
@@ -126,24 +126,6 @@
126126
<th>12</th>
127127
<th>0</th>
128128
<th>268</th>
129-
</tr><tr>
130-
<th>HTML</th>
131-
<th>2</th>
132-
<th>1540</th>
133-
<th>0</th>
134-
<th>0</th>
135-
<th>1540</th>
136-
<th>0</th>
137-
<th>22334</th>
138-
</tr><tr>
139-
<th>JSON</th>
140-
<th>2</th>
141-
<th>8877</th>
142-
<th>8</th>
143-
<th>0</th>
144-
<th>8869</th>
145-
<th>0</th>
146-
<th>136751</th>
147129
</tr><tr>
148130
<th>JavaServer Pages</th>
149131
<th>2</th>
@@ -207,6 +189,15 @@
207189
<th>4</th>
208190
<th>0</th>
209191
<th>1238</th>
192+
</tr><tr>
193+
<th>Arturo</th>
194+
<th>1</th>
195+
<th>417</th>
196+
<th>66</th>
197+
<th>89</th>
198+
<th>262</th>
199+
<th>20</th>
200+
<th>9981</th>
210201
</tr><tr>
211202
<th>BASH</th>
212203
<th>1</th>
@@ -288,15 +279,6 @@
288279
<th>3</th>
289280
<th>0</th>
290281
<th>76</th>
291-
</tr><tr>
292-
<th>CSV</th>
293-
<th>1</th>
294-
<th>84</th>
295-
<th>0</th>
296-
<th>0</th>
297-
<th>84</th>
298-
<th>0</th>
299-
<th>2224</th>
300282
</tr><tr>
301283
<th>Cairo</th>
302284
<th>1</th>
@@ -495,6 +477,15 @@
495477
<th>10</th>
496478
<th>0</th>
497479
<th>245</th>
480+
</tr><tr>
481+
<th>HTML</th>
482+
<th>1</th>
483+
<th>824</th>
484+
<th>0</th>
485+
<th>0</th>
486+
<th>824</th>
487+
<th>0</th>
488+
<th>11947</th>
498489
</tr><tr>
499490
<th>Hare</th>
500491
<th>1</th>
@@ -513,6 +504,33 @@
513504
<th>7</th>
514505
<th>0</th>
515506
<th>226</th>
507+
</tr><tr>
508+
<th>JSON</th>
509+
<th>1</th>
510+
<th>9024</th>
511+
<th>8</th>
512+
<th>0</th>
513+
<th>9016</th>
514+
<th>0</th>
515+
<th>126488</th>
516+
</tr><tr>
517+
<th>JSONC</th>
518+
<th>1</th>
519+
<th>9</th>
520+
<th>0</th>
521+
<th>6</th>
522+
<th>3</th>
523+
<th>0</th>
524+
<th>96</th>
525+
</tr><tr>
526+
<th>Jsonnet</th>
527+
<th>1</th>
528+
<th>40</th>
529+
<th>6</th>
530+
<th>5</th>
531+
<th>29</th>
532+
<th>3</th>
533+
<th>559</th>
516534
</tr><tr>
517535
<th>Korn Shell</th>
518536
<th>1</th>
@@ -639,15 +657,6 @@
639657
<th>0</th>
640658
<th>0</th>
641659
<th>0</th>
642-
</tr><tr>
643-
<th>SQL</th>
644-
<th>1</th>
645-
<th>225</th>
646-
<th>0</th>
647-
<th>0</th>
648-
<th>225</th>
649-
<th>0</th>
650-
<th>26445</th>
651660
</tr><tr>
652661
<th>Sieve</th>
653662
<th>1</th>
@@ -657,15 +666,6 @@
657666
<th>164</th>
658667
<th>47</th>
659668
<th>5941</th>
660-
</tr><tr>
661-
<th>TOML</th>
662-
<th>1</th>
663-
<th>8</th>
664-
<th>2</th>
665-
<th>0</th>
666-
<th>6</th>
667-
<th>0</th>
668-
<th>126</th>
669669
</tr><tr>
670670
<th>Teal</th>
671671
<th>1</th>
@@ -738,6 +738,15 @@
738738
<th>1</th>
739739
<th>0</th>
740740
<th>19</th>
741+
</tr><tr>
742+
<th>Windows Resource-Definition Script</th>
743+
<th>1</th>
744+
<th>51</th>
745+
<th>6</th>
746+
<th>6</th>
747+
<th>39</th>
748+
<th>0</th>
749+
<th>1888</th>
741750
</tr><tr>
742751
<th>Wren</th>
743752
<th>1</th>
@@ -786,12 +795,12 @@
786795
</tr></tbody>
787796
<tfoot><tr>
788797
<th>Total</th>
789-
<th>211</th>
790-
<th>95558</th>
791-
<th>4610</th>
792-
<th>5860</th>
793-
<th>85088</th>
794-
<th>2958</th>
795-
<th>3191023</th>
798+
<th>209</th>
799+
<th>94407</th>
800+
<th>4639</th>
801+
<th>5951</th>
802+
<th>83817</th>
803+
<th>2932</th>
804+
<th>3144034</th>
796805
</tr></tfoot>
797806
</table></body></html>

go.mod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/boyter/scc/v3
33
go 1.20
44

55
require (
6-
github.com/dbaggerman/cuba v0.3.2
6+
github.com/boyter/gocodewalker v1.3.1
77
github.com/json-iterator/go v1.1.12
88
github.com/mattn/go-runewidth v0.0.14
99
github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1
@@ -14,12 +14,14 @@ require (
1414
)
1515

1616
require (
17+
github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964 // indirect
1718
github.com/inconshreveable/mousetrap v1.1.0 // indirect
1819
github.com/mattn/go-colorable v0.1.13 // indirect
1920
github.com/mattn/go-isatty v0.0.19 // indirect
2021
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
2122
github.com/modern-go/reflect2 v1.0.2 // indirect
2223
github.com/rivo/uniseg v0.4.4 // indirect
2324
github.com/spf13/pflag v1.0.5 // indirect
25+
golang.org/x/sync v0.7.0 // indirect
2426
golang.org/x/sys v0.10.0 // indirect
2527
)

go.sum

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1+
github.com/boyter/gocodewalker v1.2.1 h1:9hrgoPjJgM1D9rDtoJpYtD1vyUShibZ88jvSGv+OZl4=
2+
github.com/boyter/gocodewalker v1.2.1/go.mod h1:5k2pF0g2D5U2D7DMhnHvKKf/76c1WfW38AEImdM1BQk=
3+
github.com/boyter/gocodewalker v1.3.0 h1:s1m4C4M0CIWudTm0U3Tp9ruA/SAL2snN9ZgyURdjXXA=
4+
github.com/boyter/gocodewalker v1.3.0/go.mod h1:hXG8xzR1uURS+99P5/3xh3uWHjaV2XfoMMmvPyhrCDg=
5+
github.com/boyter/gocodewalker v1.3.1 h1:rMKM5OCdTdEbNwOTUyZcoaxkY6Menr+IUMuQhKZRFZU=
6+
github.com/boyter/gocodewalker v1.3.1/go.mod h1:hXG8xzR1uURS+99P5/3xh3uWHjaV2XfoMMmvPyhrCDg=
17
github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
28
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
9+
github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964 h1:y5HC9v93H5EPKqaS1UYVg1uYah5Xf51mBfIoWehClUQ=
10+
github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964/go.mod h1:Xd9hchkHSWYkEqJwUGisez3G1QY8Ryz0sdWrLPMGjLk=
311
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
412
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
513
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
@@ -47,6 +55,8 @@ github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An
4755
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
4856
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
4957
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
58+
golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
59+
golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
5060
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
5161
golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
5262
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=

processor/constants.go

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)