scanoss 0.7.5 → 0.7.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (329) hide show
  1. package/.idea/workspace.xml +64 -47
  2. package/.nyc_output/3da9f448-90e4-4399-887b-e4fd1b8d7052.json +1 -0
  3. package/.nyc_output/processinfo/3da9f448-90e4-4399-887b-e4fd1b8d7052.json +1 -0
  4. package/.nyc_output/processinfo/index.json +1 -0
  5. package/build/main/cli/bin/cli-bin.d.ts +2 -1
  6. package/build/main/cli/bin/cli-bin.js +10 -2
  7. package/build/main/index.d.ts +2 -0
  8. package/build/main/index.js +3 -1
  9. package/build/main/package.json +120 -0
  10. package/build/main/sdk/Dependencies/LocalDependency/parsers/rubyParser.d.ts +1 -1
  11. package/build/main/sdk/Dependencies/LocalDependency/parsers/rubyParser.js +4 -4
  12. package/build/main/sdk/FileCount/FileCount.d.ts +6 -0
  13. package/build/main/sdk/FileCount/FileCount.js +88 -0
  14. package/build/main/sdk/FileCount/FileCountFilter.d.ts +2 -0
  15. package/build/main/sdk/FileCount/FileCountFilter.js +10 -0
  16. package/build/main/sdk/FileCount/Interfaces.d.ts +19 -0
  17. package/build/main/sdk/FileCount/Interfaces.js +8 -0
  18. package/build/main/sdk/Filtering/DefaultFilterForDependencies.d.ts +2 -0
  19. package/build/main/sdk/Filtering/DefaultFilterForDependencies.js +144 -0
  20. package/build/main/sdk/Filtering/DefaultFilterForScanning.d.ts +2 -0
  21. package/build/main/sdk/Filtering/DefaultFilterForScanning.js +193 -0
  22. package/build/main/sdk/Filtering/Filtering.d.ts +80 -0
  23. package/build/main/sdk/Filtering/Filtering.js +259 -0
  24. package/build/main/sdk/scanner/Dispatcher/Dispatcher.js +5 -2
  25. package/build/main/sdk/scanner/ScannerCfg.js +3 -3
  26. package/build/main/sdk/tree/Filters/DependencyFilter.js +4 -4
  27. package/build/main/sdk/tree/Filters/ScanFilter.js +4 -4
  28. package/build/main/src/cli/bin/cli-bin.d.ts +2 -0
  29. package/build/main/src/cli/bin/cli-bin.js +68 -0
  30. package/build/main/src/cli/commands/dep.d.ts +1 -0
  31. package/build/main/src/cli/commands/dep.js +38 -0
  32. package/build/main/src/cli/commands/helpers.d.ts +2 -0
  33. package/build/main/src/cli/commands/helpers.js +25 -0
  34. package/build/main/src/cli/commands/scan.d.ts +1 -0
  35. package/build/main/src/cli/commands/scan.js +138 -0
  36. package/build/main/src/cli/commands/wfp.d.ts +1 -0
  37. package/build/main/src/cli/commands/wfp.js +54 -0
  38. package/build/main/src/index.d.ts +14 -0
  39. package/build/main/src/index.js +30 -0
  40. package/build/main/src/sdk/DataLayer/DataLayerTypes.d.ts +108 -0
  41. package/build/main/src/sdk/DataLayer/DataLayerTypes.js +5 -0
  42. package/build/main/src/sdk/DataLayer/DataProviderManager.d.ts +7 -0
  43. package/build/main/src/sdk/DataLayer/DataProviderManager.js +24 -0
  44. package/build/main/src/sdk/DataLayer/DataProviders/ComponentDataProvider.d.ts +13 -0
  45. package/build/main/src/sdk/DataLayer/DataProviders/ComponentDataProvider.js +164 -0
  46. package/build/main/src/sdk/DataLayer/DataProviders/DependencyDataProvider.d.ts +9 -0
  47. package/build/main/src/sdk/DataLayer/DataProviders/DependencyDataProvider.js +37 -0
  48. package/build/main/src/sdk/DataLayer/DataProviders/LicenseDataProvider.d.ts +18 -0
  49. package/build/main/src/sdk/DataLayer/DataProviders/LicenseDataProvider.js +148 -0
  50. package/build/main/src/sdk/DataLayer/DataProviders/SummaryDataProvider.d.ts +11 -0
  51. package/build/main/src/sdk/DataLayer/DataProviders/SummaryDataProvider.js +33 -0
  52. package/build/main/src/sdk/Decompress/DecompressionManager.d.ts +12 -0
  53. package/build/main/src/sdk/Decompress/DecompressionManager.js +73 -0
  54. package/build/main/src/sdk/Decompress/Decompressor/DecompressTgz.d.ts +5 -0
  55. package/build/main/src/sdk/Decompress/Decompressor/DecompressTgz.js +22 -0
  56. package/build/main/src/sdk/Decompress/Decompressor/DecompressZips.d.ts +5 -0
  57. package/build/main/src/sdk/Decompress/Decompressor/DecompressZips.js +24 -0
  58. package/build/main/src/sdk/Decompress/Decompressor/Decompressor.d.ts +10 -0
  59. package/build/main/src/sdk/Decompress/Decompressor/Decompressor.js +18 -0
  60. package/build/main/src/sdk/Dependencies/DependencyScanner.d.ts +11 -0
  61. package/build/main/src/sdk/Dependencies/DependencyScanner.js +96 -0
  62. package/build/main/src/sdk/Dependencies/DependencyScannerCfg.d.ts +4 -0
  63. package/build/main/src/sdk/Dependencies/DependencyScannerCfg.js +10 -0
  64. package/build/main/src/sdk/Dependencies/DependencyTypes.d.ts +21 -0
  65. package/build/main/src/sdk/Dependencies/DependencyTypes.js +2 -0
  66. package/build/main/src/sdk/Dependencies/LocalDependency/DependencyTypes.d.ts +16 -0
  67. package/build/main/src/sdk/Dependencies/LocalDependency/DependencyTypes.js +2 -0
  68. package/build/main/src/sdk/Dependencies/LocalDependency/LocalDependency.d.ts +8 -0
  69. package/build/main/src/sdk/Dependencies/LocalDependency/LocalDependency.js +102 -0
  70. package/build/main/src/sdk/Dependencies/LocalDependency/parsers/buildGradleParser.d.ts +2 -0
  71. package/build/main/src/sdk/Dependencies/LocalDependency/parsers/buildGradleParser.js +95 -0
  72. package/build/main/src/sdk/Dependencies/LocalDependency/parsers/golangParser.d.ts +3 -0
  73. package/build/main/src/sdk/Dependencies/LocalDependency/parsers/golangParser.js +97 -0
  74. package/build/main/src/sdk/Dependencies/LocalDependency/parsers/mavenParser.d.ts +2 -0
  75. package/build/main/src/sdk/Dependencies/LocalDependency/parsers/mavenParser.js +183 -0
  76. package/build/main/src/sdk/Dependencies/LocalDependency/parsers/npmParser.d.ts +13 -0
  77. package/build/main/src/sdk/Dependencies/LocalDependency/parsers/npmParser.js +187 -0
  78. package/build/main/src/sdk/Dependencies/LocalDependency/parsers/nugetParser.d.ts +3 -0
  79. package/build/main/src/sdk/Dependencies/LocalDependency/parsers/nugetParser.js +58 -0
  80. package/build/main/src/sdk/Dependencies/LocalDependency/parsers/pyParser.d.ts +2 -0
  81. package/build/main/src/sdk/Dependencies/LocalDependency/parsers/pyParser.js +64 -0
  82. package/build/main/src/sdk/Dependencies/LocalDependency/parsers/rubyParser.d.ts +3 -0
  83. package/build/main/src/sdk/Dependencies/LocalDependency/parsers/rubyParser.js +132 -0
  84. package/build/main/src/sdk/Dependencies/LocalDependency/parsers/utils.d.ts +2 -0
  85. package/build/main/src/sdk/Dependencies/LocalDependency/parsers/utils.js +19 -0
  86. package/build/main/src/sdk/Report/Report.d.ts +8 -0
  87. package/build/main/src/sdk/Report/Report.js +26 -0
  88. package/build/main/src/sdk/filters/DefaultFilterForDependencies.d.ts +16 -0
  89. package/build/main/src/sdk/filters/DefaultFilterForDependencies.js +145 -0
  90. package/build/main/src/sdk/filters/DefaultFilterForScanning.d.ts +16 -0
  91. package/build/main/src/sdk/filters/DefaultFilterForScanning.js +194 -0
  92. package/build/main/src/sdk/filters/filtering.d.ts +32 -0
  93. package/build/main/src/sdk/filters/filtering.js +228 -0
  94. package/build/main/src/sdk/grpc/GrpcDependencyService.d.ts +11 -0
  95. package/build/main/src/sdk/grpc/GrpcDependencyService.js +86 -0
  96. package/build/main/src/sdk/grpc/scanoss/api/common/v2/scanoss-common_grpc_pb.d.ts +0 -0
  97. package/build/main/src/sdk/grpc/scanoss/api/common/v2/scanoss-common_grpc_pb.js +2 -0
  98. package/build/main/src/sdk/grpc/scanoss/api/common/v2/scanoss-common_pb.d.ts +1 -0
  99. package/build/main/src/sdk/grpc/scanoss/api/common/v2/scanoss-common_pb.js +404 -0
  100. package/build/main/src/sdk/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_grpc_pb.d.ts +39 -0
  101. package/build/main/src/sdk/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_grpc_pb.js +98 -0
  102. package/build/main/src/sdk/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_pb.d.ts +1 -0
  103. package/build/main/src/sdk/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_pb.js +1197 -0
  104. package/build/main/src/sdk/grpc/scanoss/api/scanning/v2/scanoss-scanning_grpc_pb.d.ts +19 -0
  105. package/build/main/src/sdk/grpc/scanoss/api/scanning/v2/scanoss-scanning_grpc_pb.js +66 -0
  106. package/build/main/src/sdk/grpc/scanoss/api/scanning/v2/scanoss-scanning_pb.d.ts +1 -0
  107. package/build/main/src/sdk/grpc/scanoss/api/scanning/v2/scanoss-scanning_pb.js +14 -0
  108. package/build/main/src/sdk/scanner/Dispatcher/DispatchableItem.d.ts +19 -0
  109. package/build/main/src/sdk/scanner/Dispatcher/DispatchableItem.js +43 -0
  110. package/build/main/src/sdk/scanner/Dispatcher/Dispatcher.d.ts +20 -0
  111. package/build/main/src/sdk/scanner/Dispatcher/Dispatcher.js +160 -0
  112. package/build/main/src/sdk/scanner/Dispatcher/DispatcherResponse.d.ts +12 -0
  113. package/build/main/src/sdk/scanner/Dispatcher/DispatcherResponse.js +33 -0
  114. package/build/main/src/sdk/scanner/Dispatcher/GlobalControllerAborter.d.ts +10 -0
  115. package/build/main/src/sdk/scanner/Dispatcher/GlobalControllerAborter.js +32 -0
  116. package/build/main/src/sdk/scanner/Fingerprint.d.ts +16 -0
  117. package/build/main/src/sdk/scanner/Fingerprint.js +78 -0
  118. package/build/main/src/sdk/scanner/Scannable/ScannableItem.d.ts +15 -0
  119. package/build/main/src/sdk/scanner/Scannable/ScannableItem.js +27 -0
  120. package/build/main/src/sdk/scanner/Scanner.d.ts +46 -0
  121. package/build/main/src/sdk/scanner/Scanner.js +283 -0
  122. package/build/main/src/sdk/scanner/ScannerCfg.d.ts +16 -0
  123. package/build/main/src/sdk/scanner/ScannerCfg.js +30 -0
  124. package/build/main/src/sdk/scanner/ScannerTypes.d.ts +121 -0
  125. package/build/main/src/sdk/scanner/ScannerTypes.js +48 -0
  126. package/build/main/src/sdk/scanner/WfpProvider/FingerprintPackage.d.ts +9 -0
  127. package/build/main/src/sdk/scanner/WfpProvider/FingerprintPackage.js +31 -0
  128. package/build/main/src/sdk/scanner/WfpProvider/WfpCalculator/WfpCalculator.d.ts +20 -0
  129. package/build/main/src/sdk/scanner/WfpProvider/WfpCalculator/WfpCalculator.js +492 -0
  130. package/build/main/src/sdk/scanner/WfpProvider/WfpProvider.d.ts +35 -0
  131. package/build/main/src/sdk/scanner/WfpProvider/WfpProvider.js +68 -0
  132. package/build/main/src/sdk/scanner/WfpProvider/WfpSplitter/WfpSplitter.d.ts +21 -0
  133. package/build/main/src/sdk/scanner/WfpProvider/WfpSplitter/WfpSplitter.js +139 -0
  134. package/build/main/src/sdk/tree/File.d.ts +7 -0
  135. package/build/main/src/sdk/tree/File.js +24 -0
  136. package/build/main/src/sdk/tree/Filters/DecompressionFilter.d.ts +7 -0
  137. package/build/main/src/sdk/tree/Filters/DecompressionFilter.js +21 -0
  138. package/build/main/src/sdk/tree/Filters/DependencyFilter.d.ts +7 -0
  139. package/build/main/src/sdk/tree/Filters/DependencyFilter.js +17 -0
  140. package/build/main/src/sdk/tree/Filters/Filter.d.ts +4 -0
  141. package/build/main/src/sdk/tree/Filters/Filter.js +6 -0
  142. package/build/main/src/sdk/tree/Filters/ScanFilter.d.ts +7 -0
  143. package/build/main/src/sdk/tree/Filters/ScanFilter.js +17 -0
  144. package/build/main/src/sdk/tree/Folder.d.ts +12 -0
  145. package/build/main/src/sdk/tree/Folder.js +58 -0
  146. package/build/main/src/sdk/tree/Node.d.ts +17 -0
  147. package/build/main/src/sdk/tree/Node.js +25 -0
  148. package/build/main/src/sdk/tree/Tree.d.ts +18 -0
  149. package/build/main/src/sdk/tree/Tree.js +70 -0
  150. package/build/main/tsconfig.tsbuildinfo +190 -144
  151. package/build/module/cli/bin/cli-bin.d.ts +2 -1
  152. package/build/module/cli/bin/cli-bin.js +6 -2
  153. package/build/module/index.d.ts +2 -0
  154. package/build/module/index.js +3 -1
  155. package/build/module/package.json +120 -0
  156. package/build/module/sdk/Dependencies/LocalDependency/parsers/rubyParser.d.ts +1 -1
  157. package/build/module/sdk/Dependencies/LocalDependency/parsers/rubyParser.js +4 -4
  158. package/build/module/sdk/FileCount/FileCount.d.ts +6 -0
  159. package/build/module/sdk/FileCount/FileCount.js +63 -0
  160. package/build/module/sdk/FileCount/FileCountFilter.d.ts +2 -0
  161. package/build/module/sdk/FileCount/FileCountFilter.js +8 -0
  162. package/build/module/sdk/FileCount/Interfaces.d.ts +19 -0
  163. package/build/module/sdk/FileCount/Interfaces.js +6 -0
  164. package/build/module/sdk/Filtering/DefaultFilterForDependencies.d.ts +2 -0
  165. package/build/module/sdk/Filtering/DefaultFilterForDependencies.js +142 -0
  166. package/build/module/sdk/Filtering/DefaultFilterForScanning.d.ts +2 -0
  167. package/build/module/sdk/Filtering/DefaultFilterForScanning.js +191 -0
  168. package/build/module/sdk/Filtering/Filtering.d.ts +80 -0
  169. package/build/module/sdk/Filtering/Filtering.js +229 -0
  170. package/build/module/sdk/scanner/Dispatcher/Dispatcher.js +5 -2
  171. package/build/module/sdk/scanner/ScannerCfg.js +3 -3
  172. package/build/module/sdk/tree/Filters/DependencyFilter.js +4 -4
  173. package/build/module/sdk/tree/Filters/ScanFilter.js +4 -4
  174. package/build/module/src/cli/bin/cli-bin.d.ts +2 -0
  175. package/build/module/src/cli/bin/cli-bin.js +67 -0
  176. package/build/module/src/cli/commands/dep.d.ts +1 -0
  177. package/build/module/src/cli/commands/dep.js +32 -0
  178. package/build/module/src/cli/commands/helpers.d.ts +2 -0
  179. package/build/module/src/cli/commands/helpers.js +19 -0
  180. package/build/module/src/cli/commands/scan.d.ts +1 -0
  181. package/build/module/src/cli/commands/scan.js +135 -0
  182. package/build/module/src/cli/commands/wfp.d.ts +1 -0
  183. package/build/module/src/cli/commands/wfp.js +48 -0
  184. package/build/module/src/index.d.ts +14 -0
  185. package/build/module/src/index.js +19 -0
  186. package/build/module/src/sdk/DataLayer/DataLayerTypes.d.ts +108 -0
  187. package/build/module/src/sdk/DataLayer/DataLayerTypes.js +5 -0
  188. package/build/module/src/sdk/DataLayer/DataProviderManager.d.ts +7 -0
  189. package/build/module/src/sdk/DataLayer/DataProviderManager.js +21 -0
  190. package/build/module/src/sdk/DataLayer/DataProviders/ComponentDataProvider.d.ts +13 -0
  191. package/build/module/src/sdk/DataLayer/DataProviders/ComponentDataProvider.js +159 -0
  192. package/build/module/src/sdk/DataLayer/DataProviders/DependencyDataProvider.d.ts +9 -0
  193. package/build/module/src/sdk/DataLayer/DataProviders/DependencyDataProvider.js +34 -0
  194. package/build/module/src/sdk/DataLayer/DataProviders/LicenseDataProvider.d.ts +18 -0
  195. package/build/module/src/sdk/DataLayer/DataProviders/LicenseDataProvider.js +145 -0
  196. package/build/module/src/sdk/DataLayer/DataProviders/SummaryDataProvider.d.ts +11 -0
  197. package/build/module/src/sdk/DataLayer/DataProviders/SummaryDataProvider.js +30 -0
  198. package/build/module/src/sdk/Decompress/DecompressionManager.d.ts +12 -0
  199. package/build/module/src/sdk/Decompress/DecompressionManager.js +67 -0
  200. package/build/module/src/sdk/Decompress/Decompressor/DecompressTgz.d.ts +5 -0
  201. package/build/module/src/sdk/Decompress/Decompressor/DecompressTgz.js +16 -0
  202. package/build/module/src/sdk/Decompress/Decompressor/DecompressZips.d.ts +5 -0
  203. package/build/module/src/sdk/Decompress/Decompressor/DecompressZips.js +18 -0
  204. package/build/module/src/sdk/Decompress/Decompressor/Decompressor.d.ts +10 -0
  205. package/build/module/src/sdk/Decompress/Decompressor/Decompressor.js +15 -0
  206. package/build/module/src/sdk/Dependencies/DependencyScanner.d.ts +11 -0
  207. package/build/module/src/sdk/Dependencies/DependencyScanner.js +93 -0
  208. package/build/module/src/sdk/Dependencies/DependencyScannerCfg.d.ts +4 -0
  209. package/build/module/src/sdk/Dependencies/DependencyScannerCfg.js +7 -0
  210. package/build/module/src/sdk/Dependencies/DependencyTypes.d.ts +21 -0
  211. package/build/module/src/sdk/Dependencies/DependencyTypes.js +2 -0
  212. package/build/module/src/sdk/Dependencies/LocalDependency/DependencyTypes.d.ts +16 -0
  213. package/build/module/src/sdk/Dependencies/LocalDependency/DependencyTypes.js +2 -0
  214. package/build/module/src/sdk/Dependencies/LocalDependency/LocalDependency.d.ts +8 -0
  215. package/build/module/src/sdk/Dependencies/LocalDependency/LocalDependency.js +96 -0
  216. package/build/module/src/sdk/Dependencies/LocalDependency/parsers/buildGradleParser.d.ts +2 -0
  217. package/build/module/src/sdk/Dependencies/LocalDependency/parsers/buildGradleParser.js +87 -0
  218. package/build/module/src/sdk/Dependencies/LocalDependency/parsers/golangParser.d.ts +3 -0
  219. package/build/module/src/sdk/Dependencies/LocalDependency/parsers/golangParser.js +88 -0
  220. package/build/module/src/sdk/Dependencies/LocalDependency/parsers/mavenParser.d.ts +2 -0
  221. package/build/module/src/sdk/Dependencies/LocalDependency/parsers/mavenParser.js +180 -0
  222. package/build/module/src/sdk/Dependencies/LocalDependency/parsers/npmParser.d.ts +13 -0
  223. package/build/module/src/sdk/Dependencies/LocalDependency/parsers/npmParser.js +175 -0
  224. package/build/module/src/sdk/Dependencies/LocalDependency/parsers/nugetParser.d.ts +3 -0
  225. package/build/module/src/sdk/Dependencies/LocalDependency/parsers/nugetParser.js +49 -0
  226. package/build/module/src/sdk/Dependencies/LocalDependency/parsers/pyParser.d.ts +2 -0
  227. package/build/module/src/sdk/Dependencies/LocalDependency/parsers/pyParser.js +57 -0
  228. package/build/module/src/sdk/Dependencies/LocalDependency/parsers/rubyParser.d.ts +3 -0
  229. package/build/module/src/sdk/Dependencies/LocalDependency/parsers/rubyParser.js +125 -0
  230. package/build/module/src/sdk/Dependencies/LocalDependency/parsers/utils.d.ts +2 -0
  231. package/build/module/src/sdk/Dependencies/LocalDependency/parsers/utils.js +15 -0
  232. package/build/module/src/sdk/Report/Report.d.ts +8 -0
  233. package/build/module/src/sdk/Report/Report.js +20 -0
  234. package/build/module/src/sdk/filters/DefaultFilterForDependencies.d.ts +16 -0
  235. package/build/module/src/sdk/filters/DefaultFilterForDependencies.js +143 -0
  236. package/build/module/src/sdk/filters/DefaultFilterForScanning.d.ts +16 -0
  237. package/build/module/src/sdk/filters/DefaultFilterForScanning.js +192 -0
  238. package/build/module/src/sdk/filters/filtering.d.ts +32 -0
  239. package/build/module/src/sdk/filters/filtering.js +203 -0
  240. package/build/module/src/sdk/grpc/GrpcDependencyService.d.ts +11 -0
  241. package/build/module/src/sdk/grpc/GrpcDependencyService.js +64 -0
  242. package/build/module/src/sdk/grpc/scanoss/api/common/v2/scanoss-common_grpc_pb.d.ts +0 -0
  243. package/build/module/src/sdk/grpc/scanoss/api/common/v2/scanoss-common_grpc_pb.js +2 -0
  244. package/build/module/src/sdk/grpc/scanoss/api/common/v2/scanoss-common_pb.d.ts +1 -0
  245. package/build/module/src/sdk/grpc/scanoss/api/common/v2/scanoss-common_pb.js +404 -0
  246. package/build/module/src/sdk/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_grpc_pb.d.ts +39 -0
  247. package/build/module/src/sdk/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_grpc_pb.js +98 -0
  248. package/build/module/src/sdk/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_pb.d.ts +1 -0
  249. package/build/module/src/sdk/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_pb.js +1197 -0
  250. package/build/module/src/sdk/grpc/scanoss/api/scanning/v2/scanoss-scanning_grpc_pb.d.ts +19 -0
  251. package/build/module/src/sdk/grpc/scanoss/api/scanning/v2/scanoss-scanning_grpc_pb.js +66 -0
  252. package/build/module/src/sdk/grpc/scanoss/api/scanning/v2/scanoss-scanning_pb.d.ts +1 -0
  253. package/build/module/src/sdk/grpc/scanoss/api/scanning/v2/scanoss-scanning_pb.js +14 -0
  254. package/build/module/src/sdk/scanner/Dispatcher/DispatchableItem.d.ts +19 -0
  255. package/build/module/src/sdk/scanner/Dispatcher/DispatchableItem.js +37 -0
  256. package/build/module/src/sdk/scanner/Dispatcher/Dispatcher.d.ts +20 -0
  257. package/build/module/src/sdk/scanner/Dispatcher/Dispatcher.js +135 -0
  258. package/build/module/src/sdk/scanner/Dispatcher/DispatcherResponse.d.ts +12 -0
  259. package/build/module/src/sdk/scanner/Dispatcher/DispatcherResponse.js +30 -0
  260. package/build/module/src/sdk/scanner/Dispatcher/GlobalControllerAborter.d.ts +10 -0
  261. package/build/module/src/sdk/scanner/Dispatcher/GlobalControllerAborter.js +26 -0
  262. package/build/module/src/sdk/scanner/Fingerprint.d.ts +16 -0
  263. package/build/module/src/sdk/scanner/Fingerprint.js +54 -0
  264. package/build/module/src/sdk/scanner/Scannable/ScannableItem.d.ts +15 -0
  265. package/build/module/src/sdk/scanner/Scannable/ScannableItem.js +24 -0
  266. package/build/module/src/sdk/scanner/Scanner.d.ts +46 -0
  267. package/build/module/src/sdk/scanner/Scanner.js +275 -0
  268. package/build/module/src/sdk/scanner/ScannerCfg.d.ts +16 -0
  269. package/build/module/src/sdk/scanner/ScannerCfg.js +27 -0
  270. package/build/module/src/sdk/scanner/ScannerTypes.d.ts +121 -0
  271. package/build/module/src/sdk/scanner/ScannerTypes.js +46 -0
  272. package/build/module/src/sdk/scanner/WfpProvider/FingerprintPackage.d.ts +9 -0
  273. package/build/module/src/sdk/scanner/WfpProvider/FingerprintPackage.js +28 -0
  274. package/build/module/src/sdk/scanner/WfpProvider/WfpCalculator/WfpCalculator.d.ts +20 -0
  275. package/build/module/src/sdk/scanner/WfpProvider/WfpCalculator/WfpCalculator.js +486 -0
  276. package/build/module/src/sdk/scanner/WfpProvider/WfpProvider.d.ts +35 -0
  277. package/build/module/src/sdk/scanner/WfpProvider/WfpProvider.js +65 -0
  278. package/build/module/src/sdk/scanner/WfpProvider/WfpSplitter/WfpSplitter.d.ts +21 -0
  279. package/build/module/src/sdk/scanner/WfpProvider/WfpSplitter/WfpSplitter.js +132 -0
  280. package/build/module/src/sdk/tree/File.d.ts +7 -0
  281. package/build/module/src/sdk/tree/File.js +19 -0
  282. package/build/module/src/sdk/tree/Filters/DecompressionFilter.d.ts +7 -0
  283. package/build/module/src/sdk/tree/Filters/DecompressionFilter.js +18 -0
  284. package/build/module/src/sdk/tree/Filters/DependencyFilter.d.ts +7 -0
  285. package/build/module/src/sdk/tree/Filters/DependencyFilter.js +14 -0
  286. package/build/module/src/sdk/tree/Filters/Filter.d.ts +4 -0
  287. package/build/module/src/sdk/tree/Filters/Filter.js +3 -0
  288. package/build/module/src/sdk/tree/Filters/ScanFilter.d.ts +7 -0
  289. package/build/module/src/sdk/tree/Filters/ScanFilter.js +14 -0
  290. package/build/module/src/sdk/tree/Folder.d.ts +12 -0
  291. package/build/module/src/sdk/tree/Folder.js +53 -0
  292. package/build/module/src/sdk/tree/Node.d.ts +17 -0
  293. package/build/module/src/sdk/tree/Node.js +22 -0
  294. package/build/module/src/sdk/tree/Tree.d.ts +18 -0
  295. package/build/module/src/sdk/tree/Tree.js +64 -0
  296. package/build/module/tsconfig.module.tsbuildinfo +190 -144
  297. package/package-lock.json +17116 -0
  298. package/package.json +3 -3
  299. package/src/cli/bin/cli-bin.ts +7 -4
  300. package/src/index.ts +5 -0
  301. package/src/sdk/Dependencies/LocalDependency/parsers/rubyParser.ts +10 -9
  302. package/src/sdk/FileCount/FileCount.ts +81 -0
  303. package/src/sdk/FileCount/FileCountFilter.ts +14 -0
  304. package/src/sdk/FileCount/Interfaces.ts +23 -0
  305. package/src/sdk/Filtering/DefaultFilterForDependencies.ts +148 -0
  306. package/src/sdk/Filtering/DefaultFilterForScanning.ts +206 -0
  307. package/src/sdk/Filtering/Filtering.ts +273 -0
  308. package/src/sdk/scanner/Dispatcher/Dispatcher.ts +5 -2
  309. package/src/sdk/scanner/ScannerCfg.ts +2 -2
  310. package/src/sdk/tree/Filters/DependencyFilter.ts +4 -4
  311. package/src/sdk/tree/Filters/ScanFilter.ts +4 -4
  312. package/src/sdk/tree/Node.ts +1 -1
  313. package/src/sdk/tree/Tree.ts +1 -1
  314. package/tests/sdk/FileCount/FileCount.spec.ts +35 -0
  315. package/tests/sdk/FileCount/samples/16557/.y.ts +27 -0
  316. package/tests/sdk/FileCount/samples/16557/.z.ts +129 -0
  317. package/tests/sdk/FileCount/samples/16557/files/a.ts +195 -0
  318. package/tests/sdk/FileCount/samples/16557/files/b.ts +184 -0
  319. package/tests/sdk/FileCount/samples/16557/files/c.ts +47 -0
  320. package/tests/sdk/FileCount/samples/22036/files/a.ts +195 -0
  321. package/tests/sdk/FileCount/samples/22036/files/b.ts +184 -0
  322. package/tests/sdk/FileCount/samples/22036/files/c.ts +47 -0
  323. package/tests/sdk/FileCount/samples/22036/files/d.ts +48 -0
  324. package/tests/sdk/FileCount/samples/22036/y.ts +27 -0
  325. package/tests/sdk/FileCount/samples/22036/z.ts +129 -0
  326. package/yarn.lock +316 -203
  327. package/src/sdk/filters/DefaultFilterForDependencies.ts +0 -149
  328. package/src/sdk/filters/DefaultFilterForScanning.ts +0 -207
  329. package/src/sdk/filters/filtering.ts +0 -235
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scanoss",
3
- "version": "0.7.5",
3
+ "version": "0.7.9",
4
4
  "description": "The SCANOSS JS package provides a simple, easy to consume module for interacting with SCANOSS APIs/Engine.",
5
5
  "main": "build/main/index.js",
6
6
  "typings": "build/main/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "fix": "run-s fix:*",
19
19
  "fix:prettier": "prettier \"src/**/*.ts\" --write",
20
20
  "fix:lint": "eslint src --ext .ts --fix",
21
- "test": "mocha -r ts-node/register 'tests/**/*.ts'",
21
+ "test": "nyc mocha -r ts-node/register 'tests/**/*.ts'",
22
22
  "test:lint": "eslint src --ext .ts",
23
23
  "test:prettier": "prettier \"src/**/*.ts\" --list-different",
24
24
  "test:spelling": "cspell \"{README.md,.github/*.md,src/**/*.ts}\"",
@@ -114,7 +114,7 @@
114
114
  "nyc": {
115
115
  "extends": "@istanbuljs/nyc-config-typescript",
116
116
  "exclude": [
117
- "**/*.spec.js"
117
+ "**/*.spec.ts"
118
118
  ]
119
119
  }
120
120
  }
@@ -4,6 +4,12 @@ import { program } from 'commander';
4
4
  import { depHandler } from '../commands/dep';
5
5
  import { wfpHandler } from '../commands/wfp';
6
6
  import { scanHandler } from '../commands/scan';
7
+ import path from 'path';
8
+ import fs from 'fs';
9
+
10
+
11
+ export const PackageJSONPath = path.join(__dirname,"../../../../package.json");
12
+ export const PackageJSON = JSON.parse(fs.readFileSync(PackageJSONPath, 'utf-8'));
7
13
 
8
14
  function CLIErrorHandler(e: Error) {
9
15
  console.error(' ');
@@ -11,12 +17,9 @@ function CLIErrorHandler(e: Error) {
11
17
  process.exit(1);
12
18
  }
13
19
 
14
-
15
-
16
-
17
20
  async function main() {
18
21
  program
19
- .version("0.7.5")
22
+ .version(PackageJSON.version)
20
23
  .description('The SCANOSS JS package provides a simple, easy to consume module for interacting with SCANOSS APIs/Engine.')
21
24
 
22
25
  program
package/src/index.ts CHANGED
@@ -24,3 +24,8 @@ export * from './sdk/DataLayer/DataProviders/ComponentDataProvider';
24
24
 
25
25
  // *** Unzip *** //
26
26
  export * from './sdk/Decompress/DecompressionManager';
27
+
28
+
29
+ // *** FileCount *** //
30
+ export * from './sdk/FileCount/FileCount';
31
+ export {IDirSummary} from './sdk/FileCount/Interfaces';
@@ -1,6 +1,6 @@
1
1
  import path from "path";
2
2
  import { PackageURL } from "packageurl-js";
3
- import { ILocalDependency } from "../DependencyTypes";
3
+ import { ILocalDependency, ILocalPurl } from '../DependencyTypes';
4
4
 
5
5
 
6
6
  const PURL_TYPE = 'gem';
@@ -49,8 +49,9 @@ export function gemfilelockParser(fileContent: string, filePath: string): Promis
49
49
  const gemlockParser = new GemfileLockParser();
50
50
  const purls = gemlockParser.getDependencies(fileContent);
51
51
  for (const purl of purls) {
52
- results.purls.push({purl});
52
+ results.purls.push(purl);
53
53
  }
54
+
54
55
  return Promise.resolve(results);
55
56
  }
56
57
 
@@ -86,7 +87,7 @@ class GemfileLockParser {
86
87
 
87
88
  private current_gem;
88
89
 
89
- private purlList;
90
+ private purlList: Array<ILocalPurl>;
90
91
 
91
92
  constructor () {
92
93
 
@@ -103,7 +104,7 @@ class GemfileLockParser {
103
104
  this.statesMap[SPECS] = this.parseSpec;
104
105
  }
105
106
 
106
- public getDependencies(filecontent: string) {
107
+ public getDependencies(filecontent: string): Array<ILocalPurl> {
107
108
  this.resetState();
108
109
  let file = filecontent.split('\n');
109
110
  for (let line of file) {
@@ -153,12 +154,12 @@ class GemfileLockParser {
153
154
  const match = line.match(specRegex);
154
155
 
155
156
  const purl = new PackageURL( PURL_TYPE,
156
- undefined,
157
+ null,
157
158
  match.groups.name,
158
- match.groups.version,
159
- undefined,
160
- undefined ).toString();
161
- this.purlList.push(purl);
159
+ null,
160
+ null,
161
+ null ).toString();
162
+ this.purlList.push({purl: purl, requirement: match.groups.version});
162
163
 
163
164
  } else { // Second level of dependence
164
165
 
@@ -0,0 +1,81 @@
1
+ import fs from "fs";
2
+ import path from "path";
3
+ import {FileCountOptions, Format, IDirSummary, IFileSummary} from "./Interfaces";
4
+ import { FilterList } from '../Filtering/Filtering';
5
+ import { FileCountFilter } from './FileCountFilter';
6
+
7
+
8
+ export class FileCount {
9
+
10
+ public static async walk(rootPath: string, option?: FileCountOptions) {
11
+
12
+ //By default hidden folders and files are ignored
13
+ const filters = new FilterList(FileCountFilter);
14
+ if(option?.filters?.countHidden) filters.unload();
15
+
16
+ const data = await this.exploreBFS(rootPath,filters);
17
+
18
+ if (option?.output == Format.CSV) return this.produceCsv(data.fileSummary);
19
+ return data;
20
+ }
21
+
22
+
23
+
24
+ private static async exploreBFS(rootPath: string, filters: FilterList): Promise<IDirSummary> {
25
+
26
+ const results: IDirSummary = {fileSummary: new Map(), totalFileSize: 0};
27
+ const queue: Array<string> = [];
28
+
29
+ //TODO: Improve the queue implementation for a linked list
30
+ queue.push(rootPath)
31
+
32
+ while(queue.length) {
33
+ const currentPath = queue.shift() as string;
34
+ const entries = await fs.promises.readdir( currentPath , {withFileTypes: true});
35
+
36
+ for await (const entry of entries) {
37
+ const newPath = path.join(currentPath, entry.name);
38
+ if (filters.include(newPath)) {
39
+ if (entry.isDirectory()) queue.push(newPath);
40
+ else if (entry.isFile() && !entry.isSymbolicLink()) {
41
+ const currentExt = path.extname(entry.name);
42
+ const currentFileSize = (await fs.promises.stat(path.join(currentPath, entry.name))).size;
43
+ if (results.fileSummary.has(currentExt) ) {
44
+ const fileSum = results.fileSummary.get(currentExt)
45
+ fileSum.count++
46
+ fileSum.size += currentFileSize;
47
+ } else {
48
+ results.fileSummary.set(currentExt, {count: 1, size: currentFileSize, percentage: 0});
49
+ }
50
+ results.totalFileSize+= currentFileSize;
51
+ }
52
+ }
53
+ }
54
+ }
55
+
56
+ //Update percentage
57
+ for (const ext of results.fileSummary.keys()) {
58
+ const entry = results.fileSummary.get(ext);
59
+ entry.percentage = Number((entry.size / results.totalFileSize).toFixed(2));
60
+ }
61
+ return results;
62
+ }
63
+
64
+
65
+ private static produceCsv(data: Map<string,IFileSummary>): string {
66
+ let csv = '';
67
+ for (const key of data.keys()) {
68
+ const value = data.get(key);
69
+ const newLine = `${key},${value?.count},${value?.percentage}\n`
70
+ csv+=newLine;
71
+ }
72
+ return csv;
73
+ }
74
+
75
+
76
+ }
77
+
78
+
79
+
80
+
81
+
@@ -0,0 +1,14 @@
1
+ import {
2
+ FilterScope,
3
+ FilterType,
4
+ FilterListType,
5
+ NameFilter, IFilter
6
+ } from '../Filtering/Filtering';
7
+
8
+ export const FileCountFilter: IFilter = {
9
+ type: FilterListType.BANNED,
10
+ filters: [
11
+ { ftype: FilterType.NAME, condition: NameFilter.STARTS, value: '.', scope: FilterScope.ALL },
12
+ ],
13
+ };
14
+
@@ -0,0 +1,23 @@
1
+ export interface IDirSummary {
2
+ fileSummary: Map<string,IFileSummary>;
3
+ totalFileSize: number;
4
+ }
5
+
6
+ export interface IFileSummary {
7
+ count: number;
8
+ size: number;
9
+ percentage: number;
10
+ }
11
+
12
+
13
+ export enum Format {
14
+ RAW,
15
+ CSV
16
+ }
17
+ export interface FileCountOptions {
18
+ filters?: {
19
+ countHidden: boolean
20
+ }
21
+ output: Format;
22
+ }
23
+
@@ -0,0 +1,148 @@
1
+ // ------ FILTERS SYNC WITH PYTHON CLIENT 06/10/2021 ------ //
2
+ import { FilterListType, FilterScope, FilterType, IFilter } from './Filtering';
3
+
4
+
5
+ export const defaultFilterForDependencies: IFilter = {
6
+ type: FilterListType.BANNED,
7
+ filters: [
8
+ { condition: '=', value: '0', ftype: FilterType.SIZE, scope: FilterScope.FILE },
9
+
10
+ //Folders and files filters
11
+ { condition: 'starts', value: '.', ftype: FilterType.NAME, scope: FilterScope.ALL },
12
+
13
+ //Folder filters
14
+ { condition: 'ends', value: '.egg-info', ftype: FilterType.NAME, scope: FilterScope.FOLDER },
15
+
16
+ { condition: 'fullmatch', value: 'nbproject', ftype: FilterType.NAME, scope: FilterScope.FOLDER },
17
+ { condition: 'fullmatch', value: 'nbbuild', ftype: FilterType.NAME, scope: FilterScope.FOLDER },
18
+ { condition: 'fullmatch', value: 'nbdist', ftype: FilterType.NAME, scope: FilterScope.FOLDER },
19
+ { condition: 'fullmatch', value: '__pycache__', ftype: FilterType.NAME, scope: FilterScope.FOLDER },
20
+ { condition: 'fullmatch', value: 'venv', ftype: FilterType.NAME, scope: FilterScope.FOLDER },
21
+ { condition: 'fullmatch', value: '_yardoc', ftype: FilterType.NAME, scope: FilterScope.FOLDER },
22
+ { condition: 'fullmatch', value: 'eggs', ftype: FilterType.NAME, scope: FilterScope.FOLDER },
23
+ { condition: 'fullmatch', value: 'wheels', ftype: FilterType.NAME, scope: FilterScope.FOLDER },
24
+ { condition: 'fullmatch', value: 'node_modules', ftype: FilterType.NAME, scope: FilterScope.FOLDER },
25
+ { condition: 'fullmatch', value: '__pypackages__', ftype: FilterType.NAME, scope: FilterScope.FOLDER },
26
+
27
+ { condition: '=', value: '.1', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
28
+ { condition: '=', value: '.2', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
29
+ { condition: '=', value: '.3', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
30
+ { condition: '=', value: '.4', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
31
+ { condition: '=', value: '.5', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
32
+ { condition: '=', value: '.6', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
33
+ { condition: '=', value: '.7', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
34
+ { condition: '=', value: '.8', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
35
+ { condition: '=', value: '.9', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
36
+ { condition: '=', value: '.ac', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
37
+ { condition: '=', value: '.adoc', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
38
+ { condition: '=', value: '.am', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
39
+ { condition: '=', value: '.asciidoc', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
40
+ { condition: '=', value: '.bmp', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
41
+ { condition: '=', value: '.build', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
42
+ { condition: '=', value: '.cfg', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
43
+ { condition: '=', value: '.chm', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
44
+ { condition: '=', value: '.class', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
45
+ { condition: '=', value: '.cmake', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
46
+ { condition: '=', value: '.cnf', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
47
+ { condition: '=', value: '.conf', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
48
+ { condition: '=', value: '.contributors', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
49
+ { condition: '=', value: '.copying', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
50
+ { condition: '=', value: '.crt', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
51
+ { condition: '=', value: '.css', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
52
+ { condition: '=', value: '.csv', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
53
+ { condition: '=', value: '.dat', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
54
+ { condition: '=', value: '.data', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
55
+ { condition: '=', value: '.doc', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
56
+ { condition: '=', value: '.docx', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
57
+ { condition: '=', value: '.dtd', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
58
+ { condition: '=', value: '.dts', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
59
+ { condition: '=', value: '.iws', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
60
+ { condition: '=', value: '.c9', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
61
+ { condition: '=', value: '.c9revisions', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
62
+ { condition: '=', value: '.dtsi', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
63
+ { condition: '=', value: '.dump', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
64
+ { condition: '=', value: '.eot', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
65
+ { condition: '=', value: '.eps', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
66
+ { condition: '=', value: '.geojson', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
67
+ { condition: '=', value: '.gdoc', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
68
+ { condition: '=', value: '.gif', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
69
+ { condition: '=', value: '.glif', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
70
+ { condition: '=', value: '.gmo', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
71
+ { condition: '=', value: '.guess', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
72
+ { condition: '=', value: '.htm', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
73
+ { condition: '=', value: '.html', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
74
+ { condition: '=', value: '.ico', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
75
+ { condition: '=', value: '.iml', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
76
+ { condition: '=', value: '.in', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
77
+ { condition: '=', value: '.inc', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
78
+ { condition: '=', value: '.info', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
79
+ { condition: '=', value: '.ini', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
80
+ { condition: '=', value: '.jpeg', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
81
+ { condition: '=', value: '.jpg', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
82
+ { condition: '=', value: '.m4', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
83
+ { condition: '=', value: '.map', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
84
+ { condition: '=', value: '.markdown', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
85
+ { condition: '=', value: '.md', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
86
+ { condition: '=', value: '.md5', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
87
+ { condition: '=', value: '.meta', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
88
+ { condition: '=', value: '.mk', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
89
+ { condition: '=', value: '.mxml', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
90
+ { condition: '=', value: '.o', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
91
+ { condition: '=', value: '.otf', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
92
+ { condition: '=', value: '.out', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
93
+ { condition: '=', value: '.pbtxt', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
94
+ { condition: '=', value: '.pdf', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
95
+ { condition: '=', value: '.phtml', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
96
+ { condition: '=', value: '.plist', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
97
+ { condition: '=', value: '.png', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
98
+ { condition: '=', value: '.po', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
99
+ { condition: '=', value: '.ppt', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
100
+ { condition: '=', value: '.prefs', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
101
+ { condition: '=', value: '.properties', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
102
+ { condition: '=', value: '.qdoc', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
103
+ { condition: '=', value: '.result', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
104
+ { condition: '=', value: '.rgb', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
105
+ { condition: '=', value: '.rst', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
106
+ { condition: '=', value: '.scss', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
107
+ { condition: '=', value: '.sha', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
108
+ { condition: '=', value: '.sha1', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
109
+ { condition: '=', value: '.sha2', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
110
+ { condition: '=', value: '.sha256', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
111
+ { condition: '=', value: '.sln', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
112
+ { condition: '=', value: '.spec', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
113
+ { condition: '=', value: '.sql', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
114
+ { condition: '=', value: '.sub', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
115
+ { condition: '=', value: '.svg', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
116
+ { condition: '=', value: '.svn-base', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
117
+ { condition: '=', value: '.tab', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
118
+ { condition: '=', value: '.template', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
119
+ { condition: '=', value: '.test', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
120
+ { condition: '=', value: '.tex', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
121
+ { condition: '=', value: '.tiff', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
122
+ { condition: '=', value: '.ttf', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
123
+ { condition: '=', value: '.utf-8', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
124
+ { condition: '=', value: '.vim', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
125
+ { condition: '=', value: '.wav', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
126
+ { condition: '=', value: '.whl', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
127
+ { condition: '=', value: '.woff', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
128
+ { condition: '=', value: '.xht', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
129
+ { condition: '=', value: '.xhtml', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
130
+ { condition: '=', value: '.xls', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
131
+ { condition: '=', value: '.xlsx', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
132
+ { condition: '=', value: '.xpm', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
133
+ { condition: '=', value: '.xsd', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
134
+ { condition: '=', value: '.xul', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
135
+ { condition: '=', value: '.wfp', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
136
+ { condition: '=', value: '.editorconfig', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
137
+ { condition: '=', value: '.dotcover', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
138
+ { condition: '=', value: '.pid', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
139
+ { condition: '=', value: '.lcov', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
140
+ { condition: '=', value: '.egg', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
141
+ { condition: '=', value: '.manifest', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
142
+ { condition: '=', value: '.cache', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
143
+ { condition: '=', value: '.coverage', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
144
+ { condition: '=', value: '.cover', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
145
+ { condition: '=', value: '.lst', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
146
+ ],
147
+ };
148
+
@@ -0,0 +1,206 @@
1
+ // ------ FILTERS SYNC WITH PYTHON CLIENT 06/10/2021 ------ //
2
+ import { FilterListType, FilterScope, FilterType, IFilter } from './Filtering';
3
+
4
+
5
+ export const defaultFilterForScanning: IFilter = {
6
+ type: FilterListType.BANNED,
7
+ filters: [
8
+ { condition: '=', value: '0', ftype: FilterType.SIZE, scope: FilterScope.FILE },
9
+
10
+ //Folders and files filters
11
+ { condition: 'starts', value: '.', ftype: FilterType.NAME, scope: FilterScope.ALL },
12
+
13
+ //Folder filters
14
+ { condition: 'ends', value: '.egg-info', ftype: FilterType.NAME, scope: FilterScope.FOLDER },
15
+
16
+ { condition: 'fullmatch', value: 'nbproject', ftype: FilterType.NAME, scope: FilterScope.FOLDER },
17
+ { condition: 'fullmatch', value: 'nbbuild', ftype: FilterType.NAME, scope: FilterScope.FOLDER },
18
+ { condition: 'fullmatch', value: 'nbdist', ftype: FilterType.NAME, scope: FilterScope.FOLDER },
19
+ { condition: 'fullmatch', value: '__pycache__', ftype: FilterType.NAME, scope: FilterScope.FOLDER },
20
+ { condition: 'fullmatch', value: 'venv', ftype: FilterType.NAME, scope: FilterScope.FOLDER },
21
+ { condition: 'fullmatch', value: '_yardoc', ftype: FilterType.NAME, scope: FilterScope.FOLDER },
22
+ { condition: 'fullmatch', value: 'eggs', ftype: FilterType.NAME, scope: FilterScope.FOLDER },
23
+ { condition: 'fullmatch', value: 'wheels', ftype: FilterType.NAME, scope: FilterScope.FOLDER },
24
+ { condition: 'fullmatch', value: 'htmlcov', ftype: FilterType.NAME, scope: FilterScope.FOLDER },
25
+ { condition: 'fullmatch', value: '__pypackages__', ftype: FilterType.NAME, scope: FilterScope.FOLDER },
26
+
27
+
28
+ //Files filters
29
+
30
+ { condition: 'fullmatch', value: 'gradlew', ftype: FilterType.NAME, scope: FilterScope.FILE },
31
+ { condition: 'fullmatch', value: 'gradlew.bat', ftype: FilterType.NAME, scope: FilterScope.FILE },
32
+ { condition: 'fullmatch', value: 'mvnw', ftype: FilterType.NAME, scope: FilterScope.FILE },
33
+ { condition: 'fullmatch', value: 'mvnw.cmd', ftype: FilterType.NAME, scope: FilterScope.FILE },
34
+ { condition: 'fullmatch', value: 'gradle-wrapper.jar', ftype: FilterType.NAME, scope: FilterScope.FILE },
35
+ { condition: 'fullmatch', value: 'maven-wrapper.jar', ftype: FilterType.NAME, scope: FilterScope.FILE },
36
+ { condition: 'fullmatch', value: 'thumbs.db', ftype: FilterType.NAME, scope: FilterScope.FILE },
37
+ { condition: 'fullmatch', value: 'babel.config.js', ftype: FilterType.NAME, scope: FilterScope.FILE },
38
+ { condition: 'fullmatch', value: 'license.txt', ftype: FilterType.NAME, scope: FilterScope.FILE },
39
+ { condition: 'fullmatch', value: 'license.md', ftype: FilterType.NAME, scope: FilterScope.FILE },
40
+ { condition: 'fullmatch', value: 'copying.lib', ftype: FilterType.NAME, scope: FilterScope.FILE },
41
+ { condition: 'fullmatch', value: 'makefile', ftype: FilterType.NAME, scope: FilterScope.FILE },
42
+
43
+
44
+ { condition: 'starts', value: '.asar', ftype: FilterType.NAME, scope: FilterScope.FILE },
45
+
46
+
47
+ { condition: 'ends', value: 'news', ftype: FilterType.NAME, scope: FilterScope.FILE },
48
+ { condition: 'ends', value: 'authors', ftype: FilterType.NAME, scope: FilterScope.FILE },
49
+
50
+
51
+ { condition: 'ends', value: '-doc', ftype: FilterType.NAME, scope: FilterScope.FILE },
52
+ { condition: 'ends', value: 'changelog', ftype: FilterType.NAME, scope: FilterScope.FILE },
53
+ { condition: 'ends', value: 'config', ftype: FilterType.NAME, scope: FilterScope.FILE },
54
+ { condition: 'ends', value: 'copying', ftype: FilterType.NAME, scope: FilterScope.FILE },
55
+ { condition: 'ends', value: 'license', ftype: FilterType.NAME, scope: FilterScope.FILE },
56
+ { condition: 'ends', value: 'licenses', ftype: FilterType.NAME, scope: FilterScope.FILE },
57
+ { condition: 'ends', value: 'notice', ftype: FilterType.NAME, scope: FilterScope.FILE },
58
+ { condition: 'ends', value: 'readme', ftype: FilterType.NAME, scope: FilterScope.FILE },
59
+ { condition: 'ends', value: 'swiftdoc', ftype: FilterType.NAME, scope: FilterScope.FILE },
60
+ { condition: 'ends', value: 'texidoc', ftype: FilterType.NAME, scope: FilterScope.FILE },
61
+ { condition: 'ends', value: 'todo', ftype: FilterType.NAME, scope: FilterScope.FILE },
62
+ { condition: 'ends', value: 'version', ftype: FilterType.NAME, scope: FilterScope.FILE },
63
+ { condition: 'ends', value: 'ignore', ftype: FilterType.NAME, scope: FilterScope.FILE },
64
+ { condition: 'ends', value: 'manifest', ftype: FilterType.NAME, scope: FilterScope.FILE },
65
+ { condition: 'ends', value: 'sqlite', ftype: FilterType.NAME, scope: FilterScope.FILE },
66
+ { condition: 'ends', value: 'sqlite3', ftype: FilterType.NAME, scope: FilterScope.FILE },
67
+
68
+ { condition: '=', value: '.1', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
69
+ { condition: '=', value: '.2', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
70
+ { condition: '=', value: '.3', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
71
+ { condition: '=', value: '.4', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
72
+ { condition: '=', value: '.5', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
73
+ { condition: '=', value: '.6', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
74
+ { condition: '=', value: '.7', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
75
+ { condition: '=', value: '.8', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
76
+ { condition: '=', value: '.9', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
77
+ { condition: '=', value: '.ac', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
78
+ { condition: '=', value: '.adoc', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
79
+ { condition: '=', value: '.am', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
80
+ { condition: '=', value: '.asciidoc', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
81
+ { condition: '=', value: '.bmp', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
82
+ { condition: '=', value: '.build', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
83
+ { condition: '=', value: '.cfg', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
84
+ { condition: '=', value: '.chm', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
85
+ { condition: '=', value: '.class', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
86
+ { condition: '=', value: '.cmake', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
87
+ { condition: '=', value: '.cnf', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
88
+ { condition: '=', value: '.conf', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
89
+ { condition: '=', value: '.config', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
90
+ { condition: '=', value: '.contributors', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
91
+ { condition: '=', value: '.copying', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
92
+ { condition: '=', value: '.crt', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
93
+ { condition: '=', value: '.csproj', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
94
+ { condition: '=', value: '.css', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
95
+ { condition: '=', value: '.csv', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
96
+ { condition: '=', value: '.dat', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
97
+ { condition: '=', value: '.data', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
98
+ { condition: '=', value: '.doc', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
99
+ { condition: '=', value: '.docx', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
100
+ { condition: '=', value: '.dtd', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
101
+ { condition: '=', value: '.dts', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
102
+ { condition: '=', value: '.iws', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
103
+ { condition: '=', value: '.c9', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
104
+ { condition: '=', value: '.c9revisions', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
105
+ { condition: '=', value: '.dtsi', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
106
+ { condition: '=', value: '.dump', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
107
+ { condition: '=', value: '.eot', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
108
+ { condition: '=', value: '.eps', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
109
+ { condition: '=', value: '.geojson', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
110
+ { condition: '=', value: '.gdoc', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
111
+ { condition: '=', value: '.gif', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
112
+ { condition: '=', value: '.glif', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
113
+ { condition: '=', value: '.gmo', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
114
+ { condition: '=', value: '.gradle', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
115
+ { condition: '=', value: '.guess', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
116
+ { condition: '=', value: '.hex', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
117
+ { condition: '=', value: '.htm', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
118
+ { condition: '=', value: '.html', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
119
+ { condition: '=', value: '.ico', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
120
+ { condition: '=', value: '.iml', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
121
+ { condition: '=', value: '.in', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
122
+ { condition: '=', value: '.inc', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
123
+ { condition: '=', value: '.info', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
124
+ { condition: '=', value: '.ini', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
125
+ { condition: '=', value: '.ipynb', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
126
+ { condition: '=', value: '.jpeg', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
127
+ { condition: '=', value: '.jpg', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
128
+ { condition: '=', value: '.json', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
129
+ { condition: '=', value: '.jsonld', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
130
+ { condition: '=', value: '.lock', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
131
+ { condition: '=', value: '.log', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
132
+ { condition: '=', value: '.m4', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
133
+ { condition: '=', value: '.map', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
134
+ { condition: '=', value: '.markdown', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
135
+ { condition: '=', value: '.md', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
136
+ { condition: '=', value: '.md5', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
137
+ { condition: '=', value: '.meta', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
138
+ { condition: '=', value: '.mk', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
139
+ { condition: '=', value: '.mxml', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
140
+ { condition: '=', value: '.o', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
141
+ { condition: '=', value: '.otf', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
142
+ { condition: '=', value: '.out', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
143
+ { condition: '=', value: '.pbtxt', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
144
+ { condition: '=', value: '.pdf', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
145
+ { condition: '=', value: '.pem', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
146
+ { condition: '=', value: '.phtml', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
147
+ { condition: '=', value: '.plist', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
148
+ { condition: '=', value: '.png', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
149
+ { condition: '=', value: '.po', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
150
+ { condition: '=', value: '.ppt', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
151
+ { condition: '=', value: '.prefs', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
152
+ { condition: '=', value: '.properties', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
153
+ { condition: '=', value: '.pyc', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
154
+ { condition: '=', value: '.qdoc', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
155
+ { condition: '=', value: '.result', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
156
+ { condition: '=', value: '.rgb', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
157
+ { condition: '=', value: '.rst', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
158
+ { condition: '=', value: '.scss', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
159
+ { condition: '=', value: '.sha', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
160
+ { condition: '=', value: '.sha1', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
161
+ { condition: '=', value: '.sha2', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
162
+ { condition: '=', value: '.sha256', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
163
+ { condition: '=', value: '.sln', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
164
+ { condition: '=', value: '.spec', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
165
+ { condition: '=', value: '.sql', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
166
+ { condition: '=', value: '.sub', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
167
+ { condition: '=', value: '.svg', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
168
+ { condition: '=', value: '.svn-base', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
169
+ { condition: '=', value: '.tab', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
170
+ { condition: '=', value: '.template', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
171
+ { condition: '=', value: '.test', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
172
+ { condition: '=', value: '.tex', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
173
+ { condition: '=', value: '.tiff', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
174
+ { condition: '=', value: '.toml', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
175
+ { condition: '=', value: '.ttf', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
176
+ { condition: '=', value: '.txt', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
177
+ { condition: '=', value: '.utf-8', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
178
+ { condition: '=', value: '.vim', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
179
+ { condition: '=', value: '.wav', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
180
+ { condition: '=', value: '.whl', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
181
+ { condition: '=', value: '.woff', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
182
+ { condition: '=', value: '.xht', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
183
+ { condition: '=', value: '.xhtml', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
184
+ { condition: '=', value: '.xls', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
185
+ { condition: '=', value: '.xlsx', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
186
+ { condition: '=', value: '.xml', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
187
+ { condition: '=', value: '.xpm', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
188
+ { condition: '=', value: '.xsd', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
189
+ { condition: '=', value: '.xul', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
190
+ { condition: '=', value: '.yaml', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
191
+ { condition: '=', value: '.yml', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
192
+ { condition: '=', value: '.wfp', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
193
+ { condition: '=', value: '.editorconfig', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
194
+ { condition: '=', value: '.dotcover', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
195
+ { condition: '=', value: '.pid', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
196
+ { condition: '=', value: '.lcov', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
197
+ { condition: '=', value: '.egg', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
198
+ { condition: '=', value: '.manifest', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
199
+ { condition: '=', value: '.cache', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
200
+ { condition: '=', value: '.coverage', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
201
+ { condition: '=', value: '.cover', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
202
+ { condition: '=', value: '.gem', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
203
+ { condition: '=', value: '.lst', ftype: FilterType.EXTENSION, scope: FilterScope.FILE },
204
+ ],
205
+ };
206
+