File tree Expand file tree Collapse file tree 2 files changed +7
-19
lines changed Expand file tree Collapse file tree 2 files changed +7
-19
lines changed Original file line number Diff line number Diff line change @@ -67,14 +67,6 @@ export const DEFAULT_SECURITY_IGNORE_DIRS = [
6767 // Environment and configuration directories
6868 ".env/" ,
6969 "env/" ,
70- ".venv/" ,
71- "venv/" ,
72-
73- // IDE directories that may contain cached credentials
74- // For now excluding, reasons for this unclear
75- ".vscode/" ,
76- ".idea/" ,
77- ".vs/" ,
7870
7971 // Cloud provider credential directories
8072 ".aws/" ,
@@ -191,6 +183,13 @@ export const ADDITIONAL_INDEXING_IGNORE_DIRS = [
191183 ".cache/" ,
192184 "gems/" ,
193185 "vendor/" ,
186+
187+ ".venv/" ,
188+ "venv/" ,
189+
190+ ".vscode/" ,
191+ ".idea/" ,
192+ ".vs/" ,
194193] ;
195194
196195// Combined patterns: security + additional
Original file line number Diff line number Diff line change @@ -81,18 +81,7 @@ describe("isSecurityConcern", () => {
8181 it ( "should detect environment directories as security concerns" , ( ) => {
8282 expect ( isSecurityConcern ( ".env/" ) ) . toBe ( true ) ;
8383 expect ( isSecurityConcern ( "env/" ) ) . toBe ( true ) ;
84- expect ( isSecurityConcern ( ".venv/" ) ) . toBe ( true ) ;
85- expect ( isSecurityConcern ( "venv/" ) ) . toBe ( true ) ;
8684 expect ( isSecurityConcern ( ".env/config" ) ) . toBe ( true ) ;
87- expect ( isSecurityConcern ( "project/.venv/lib" ) ) . toBe ( true ) ;
88- } ) ;
89-
90- it ( "should detect IDE directories as security concerns" , ( ) => {
91- expect ( isSecurityConcern ( ".vscode/" ) ) . toBe ( true ) ;
92- expect ( isSecurityConcern ( ".idea/" ) ) . toBe ( true ) ;
93- expect ( isSecurityConcern ( ".vs/" ) ) . toBe ( true ) ;
94- expect ( isSecurityConcern ( ".vscode/settings.json" ) ) . toBe ( true ) ;
95- expect ( isSecurityConcern ( ".idea/workspace.xml" ) ) . toBe ( true ) ;
9685 } ) ;
9786
9887 it ( "should detect cloud provider directories as security concerns" , ( ) => {
You can’t perform that action at this time.
0 commit comments