Skip to content

Commit

Permalink
Correcting Project Scan Timeout Period.
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishrp-aws committed Apr 12, 2024
1 parent 804ac01 commit bf3df54
Showing 1 changed file with 3 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,12 @@ object CodeWhispererConstants {

// Code scan feature constants
val ISSUE_HIGHLIGHT_TEXT_ATTRIBUTES = TextAttributes(null, null, JBColor.YELLOW, EffectType.WAVE_UNDERSCORE, Font.PLAIN)
const val DEFAULT_CODE_SCAN_TIMEOUT_IN_SECONDS: Long = 60
const val DEFAULT_CODE_SCAN_TIMEOUT_IN_SECONDS: Long = 60 * 10 // 10 minutes
const val DEFAULT_PAYLOAD_LIMIT_IN_BYTES: Long = 5 * 1024 * 1024 * 1024 // 5 GB
const val CODE_SCAN_POLLING_INTERVAL_IN_SECONDS: Long = 1
const val CODE_SCAN_CREATE_PAYLOAD_TIMEOUT_IN_SECONDS: Long = 10
const val FILE_SCAN_PAYLOAD_SIZE_LIMIT_IN_BYTES = 1024 * 200 // 200KB
const val FILE_SCAN_TIMEOUT_IN_SECONDS: Long = 60 // 60 seconds
const val FILE_SCAN_PAYLOAD_SIZE_LIMIT_IN_BYTES: Long = 1024 * 200 // 200KB
const val AUTO_SCAN_DEBOUNCE_DELAY_IN_SECONDS: Long = 2
const val TOTAL_BYTES_IN_KB = 1024
const val TOTAL_BYTES_IN_MB = 1024 * 1024
Expand Down Expand Up @@ -102,30 +103,6 @@ object CodeWhispererConstants {
PROJECT
}

val ignorePatterns = listOf(
"\\.aws-sam",
"\\.svn",
"\\.hg/",
"\\.rvm",
"\\.git/",
"\\.gitignore",
"\\.project",
"\\.gem",
"/\\.idea/",
"\\.zip$",
"\\.bin$",
"\\.png$",
"\\.jpg$",
"\\.svg$",
"\\.pyc$",
"/license\\.txt$",
"/License\\.txt$",
"/LICENSE\\.txt$",
"/license\\.md$",
"/License\\.md$",
"/LICENSE\\.md$",
).map { Regex(it) }

object Config {
const val CODEWHISPERER_ENDPOINT = "https://codewhisperer.us-east-1.amazonaws.com/" // PROD
const val CODEWHISPERER_IDPOOL_ID = "us-east-1:70717e99-906f-4add-908c-bd9074a2f5b9"
Expand Down

0 comments on commit bf3df54

Please sign in to comment.