Projects STRLCPY bearer Commits e047f567
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    docs/_data/curio_scan.yaml
    skipped 12 lines
    13 13   - name: disable-domain-resolution
    14 14   default_value: "true"
    15 15   usage: |
    16  - Do not attempt to resolve detected domains during classification (default false), e.g. --disable-domain-resolution=true
     16 + Do not attempt to resolve detected domains during classification
    17 17   - name: domain-resolution-timeout
    18 18   default_value: 3s
    19 19   usage: |
    20  - Set timeout when attempting to resolve detected domains during classification (default 3 seconds), e.g. --domain-resolution-timeout=3s
     20 + Set timeout when attempting to resolve detected domains during classification, e.g. --domain-resolution-timeout=3s
    21 21   - name: existing-worker
    22 22   usage: Specify the URL of an existing worker.
    23 23   - name: file-size-max
    24  - default_value: "100000"
     24 + default_value: "2000000"
    25 25   usage: Ignore files larger than the specified value.
    26 26   - name: files-to-batch
    27 27   default_value: "1"
    skipped 8 lines
    36 36   - name: internal-domains
    37 37   default_value: '[]'
    38 38   usage: |
    39  - Define regular expressions for better classification of private or unreachable domains e.g. --internal-domains="*.my-company.com,private.sh"
     39 + Define regular expressions for better classification of private or unreachable domains e.g. --internal-domains=".*.my-company.com,private.sh"
    40 40   - name: memory-max
    41 41   default_value: "800000000"
    42 42   usage: |
    skipped 50 lines
  • ■ ■ ■ ■ ■ ■
    integration/flags/.snapshots/TestMetadataFlags-help-scan
    skipped 20 lines
    21 21  Scan Flags
    22 22   --context string Expand context of schema classification e.g., --context=health, to include data types particular to health
    23 23   --debug Enable debug logs
    24  - --disable-domain-resolution Do not attempt to resolve detected domains during classification (default false), e.g. --disable-domain-resolution=true (default true)
    25  - --domain-resolution-timeout duration Set timeout when attempting to resolve detected domains during classification (default 3 seconds), e.g. --domain-resolution-timeout=3s (default 3s)
     24 + --disable-domain-resolution Do not attempt to resolve detected domains during classification (default true)
     25 + --domain-resolution-timeout duration Set timeout when attempting to resolve detected domains during classification, e.g. --domain-resolution-timeout=3s (default 3s)
    26 26   --force Disable the cache and runs the detections again
    27  - --internal-domains strings Define regular expressions for better classification of private or unreachable domains e.g. --internal-domains="*.my-company.com,private.sh"
     27 + --internal-domains strings Define regular expressions for better classification of private or unreachable domains e.g. --internal-domains=".*.my-company.com,private.sh"
    28 28   --quiet Suppress non-essential messages
    29 29   --skip-path strings Specify the comma separated files and directories to skip. Supports * syntax, e.g. --skip-path users/*.go,users/admin.sql
    30 30   
    skipped 19 lines
  • ■ ■ ■ ■ ■ ■
    integration/flags/.snapshots/TestMetadataFlags-scan-help
    skipped 20 lines
    21 21  Scan Flags
    22 22   --context string Expand context of schema classification e.g., --context=health, to include data types particular to health
    23 23   --debug Enable debug logs
    24  - --disable-domain-resolution Do not attempt to resolve detected domains during classification (default false), e.g. --disable-domain-resolution=true (default true)
    25  - --domain-resolution-timeout duration Set timeout when attempting to resolve detected domains during classification (default 3 seconds), e.g. --domain-resolution-timeout=3s (default 3s)
     24 + --disable-domain-resolution Do not attempt to resolve detected domains during classification (default true)
     25 + --domain-resolution-timeout duration Set timeout when attempting to resolve detected domains during classification, e.g. --domain-resolution-timeout=3s (default 3s)
    26 26   --force Disable the cache and runs the detections again
    27  - --internal-domains strings Define regular expressions for better classification of private or unreachable domains e.g. --internal-domains="*.my-company.com,private.sh"
     27 + --internal-domains strings Define regular expressions for better classification of private or unreachable domains e.g. --internal-domains=".*.my-company.com,private.sh"
    28 28   --quiet Suppress non-essential messages
    29 29   --skip-path strings Specify the comma separated files and directories to skip. Supports * syntax, e.g. --skip-path users/*.go,users/admin.sql
    30 30   
    skipped 19 lines
  • ■ ■ ■ ■
    integration/flags/metadata_flags_test.go
    skipped 6 lines
    7 7  )
    8 8   
    9 9  func newMetadataTest(name string, arguments []string) testhelper.TestCase {
    10  - return testhelper.NewTestCase(name, arguments, testhelper.TestCaseOptions{DisplayStdErr: true})
     10 + return testhelper.NewTestCase(name, arguments, testhelper.TestCaseOptions{DisplayStdErr: true, IgnoreForce: true})
    11 11  }
    12 12   
    13 13  func TestMetadataFlags(t *testing.T) {
    skipped 10 lines
  • ■ ■ ■ ■ ■
    integration/internal/testhelper/testhelper.go
    skipped 14 lines
    15 15   shouldSucceed bool
    16 16   options TestCaseOptions
    17 17   displayStdErr bool
     18 + ignoreForce bool
    18 19  }
    19 20   
    20 21  type TestCaseOptions struct {
    21 22   DisplayStdErr bool
     23 + IgnoreForce bool
    22 24  }
    23 25   
    24 26  func NewTestCase(name string, arguments []string, options TestCaseOptions) TestCase {
    skipped 3 lines
    28 30   shouldSucceed: true,
    29 31   options: options,
    30 32   displayStdErr: options.DisplayStdErr,
     33 + ignoreForce: options.IgnoreForce,
    31 34   }
    32 35  }
    33 36   
    skipped 45 lines
    79 82   arguments := test.arguments
    80 83   
    81 84   if !test.displayStdErr {
    82  - arguments = append(arguments, "--quiet", "--force")
    83  - } else {
     85 + arguments = append(arguments, "--quiet")
     86 + }
     87 + 
     88 + if !test.ignoreForce {
    84 89   arguments = append(arguments, "--force")
    85 90   }
    86 91   
    skipped 15 lines
  • ■ ■ ■ ■ ■ ■
    pkg/flag/scan_flags.go
    skipped 27 lines
    28 28   Name: "disable-domain-resolution",
    29 29   ConfigName: "scan.disable-domain-resolution",
    30 30   Value: true,
    31  - Usage: "Do not attempt to resolve detected domains during classification (default false), e.g. --disable-domain-resolution=true",
     31 + Usage: "Do not attempt to resolve detected domains during classification",
    32 32   }
    33 33   DomainResolutionTimeoutFlag = Flag{
    34 34   Name: "domain-resolution-timeout",
    35 35   ConfigName: "scan.domain-resolution-timeout",
    36 36   Value: 3 * time.Second,
    37  - Usage: "Set timeout when attempting to resolve detected domains during classification (default 3 seconds), e.g. --domain-resolution-timeout=3s",
     37 + Usage: "Set timeout when attempting to resolve detected domains during classification, e.g. --domain-resolution-timeout=3s",
    38 38   }
    39 39   InternalDomainsFlag = Flag{
    40 40   Name: "internal-domains",
    41 41   ConfigName: "scan.internal-domains",
    42 42   Value: []string{},
    43  - Usage: "Define regular expressions for better classification of private or unreachable domains e.g. --internal-domains=\"*.my-company.com,private.sh\"",
     43 + Usage: "Define regular expressions for better classification of private or unreachable domains e.g. --internal-domains=\".*.my-company.com,private.sh\"",
    44 44   }
    45 45   ContextFlag = Flag{
    46 46   Name: "context",
    skipped 99 lines
Please wait...
Page is in error, reload to recover