File tree Expand file tree Collapse file tree
binary-analysis/scancode-compiledcode/src
scancode-fingerprint/src/plugin_fingerprint
scancode-ignore-binaries/src/scanignobin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131from textcode import analysis
3232from plugincode .scan import ScanPlugin
3333from plugincode .scan import scan_impl
34- from scancode import CommandLineOption
35- from scancode import SCAN_GROUP
34+ from commoncode . cliutils import PluggableCommandLineOption
35+ from commoncode . cliutils import SCAN_GROUP
3636from typecode import contenttype
3737
3838
@@ -46,7 +46,7 @@ class CPPIncludesScanner(ScanPlugin):
4646 )
4747
4848 options = [
49- CommandLineOption (('--cpp-includes' ,),
49+ PluggableCommandLineOption (('--cpp-includes' ,),
5050 is_flag = True , default = False ,
5151 help = 'Collect the #includes statements in a C/C++ file.' ,
5252 help_group = SCAN_GROUP ,
Original file line number Diff line number Diff line change 3535from commoncode import fileutils
3636from plugincode .scan import ScanPlugin
3737from plugincode .scan import scan_impl
38- from scancode import CommandLineOption
39- from scancode import SCAN_GROUP
38+ from commoncode . cliutils import PluggableCommandLineOption
39+ from commoncode . cliutils import SCAN_GROUP
4040from typecode import contenttype
4141
4242from dwarf import dwarf
@@ -52,7 +52,7 @@ class DwarfScanner(ScanPlugin):
5252 dwarf_source_path = attr .ib (default = attr .Factory (list ), repr = False ))
5353
5454 options = [
55- CommandLineOption (('--dwarf' ,),
55+ PluggableCommandLineOption (('--dwarf' ,),
5656 is_flag = True , default = False ,
5757 help = 'Collect source code path from compilation units found in '
5858 'ELF DWARFs.' ,
Original file line number Diff line number Diff line change 3333from commoncode import fileutils
3434from plugincode .scan import ScanPlugin
3535from plugincode .scan import scan_impl
36- from scancode import CommandLineOption
37- from scancode import SCAN_GROUP
36+ from commoncode . cliutils import PluggableCommandLineOption
37+ from commoncode . cliutils import SCAN_GROUP
3838from typecode import contenttype
3939
4040from elf .elf import Elf
@@ -50,7 +50,7 @@ class ELFScanner(ScanPlugin):
5050 )
5151
5252 options = [
53- CommandLineOption (('--elf' ,),
53+ PluggableCommandLineOption (('--elf' ,),
5454 is_flag = True , default = False ,
5555 help = 'Collect the names of shared objects/libraries needed by an Elf binary file.' ,
5656 help_group = SCAN_GROUP ,
Original file line number Diff line number Diff line change 3838
3939from plugincode .scan import ScanPlugin
4040from plugincode .scan import scan_impl
41- from scancode import CommandLineOption
42- from scancode import SCAN_GROUP
41+ from commoncode . cliutils import PluggableCommandLineOption
42+ from commoncode . cliutils import SCAN_GROUP
4343from textcode import analysis
4444from typecode import contenttype
4545
@@ -54,7 +54,7 @@ class GeneratedCodeScanner(ScanPlugin):
5454 )
5555
5656 options = [
57- CommandLineOption (('--generatedcode' ,),
57+ PluggableCommandLineOption (('--generatedcode' ,),
5858 is_flag = True , default = False ,
5959 help = 'Get the snippet that is possibly generated code.' ,
6060 help_group = SCAN_GROUP ,
Original file line number Diff line number Diff line change 3434
3535from plugincode .scan import ScanPlugin
3636from plugincode .scan import scan_impl
37- from scancode import CommandLineOption
38- from scancode import SCAN_GROUP
37+ from commoncode . cliutils import PluggableCommandLineOption
38+ from commoncode . cliutils import SCAN_GROUP
3939from textcode import analysis
4040from typecode import contenttype
4141
@@ -52,7 +52,7 @@ class GWTScanner(ScanPlugin):
5252 )
5353
5454 options = [
55- CommandLineOption (('--gwt' ,),
55+ PluggableCommandLineOption (('--gwt' ,),
5656 is_flag = True , default = False ,
5757 help = 'Parse GWT (Google Web Toolkit) ".symbolMap" files to extract compilation/debug symbols. Used to infer the relationship between the compiled JavaScript and the original Java Source code.' ,
5858 help_group = SCAN_GROUP ,
Original file line number Diff line number Diff line change 3030from commoncode import fileutils
3131from plugincode .scan import ScanPlugin
3232from plugincode .scan import scan_impl
33- from scancode import CommandLineOption
34- from scancode import SCAN_GROUP
33+ from commoncode . cliutils import PluggableCommandLineOption
34+ from commoncode . cliutils import SCAN_GROUP
3535from typecode import contenttype
3636
3737from sourcecode import kernel
@@ -47,7 +47,7 @@ class LKMClueScanner(ScanPlugin):
4747 )
4848
4949 options = [
50- CommandLineOption (('--lkmclue' ,),
50+ PluggableCommandLineOption (('--lkmclue' ,),
5151 is_flag = True , default = False ,
5252 help = 'Collect LKM module clues and type indicating a possible Linux Kernel Module. (formerly lkm_hint and lkm_line).' ,
5353 help_group = SCAN_GROUP ,
Original file line number Diff line number Diff line change 3434from commoncode import fileutils
3535from plugincode .scan import ScanPlugin
3636from plugincode .scan import scan_impl
37- from scancode import CommandLineOption
38- from scancode import SCAN_GROUP
37+ from commoncode . cliutils import PluggableCommandLineOption
38+ from commoncode . cliutils import SCAN_GROUP
3939from typecode import contenttype
4040
4141
@@ -49,7 +49,7 @@ class MakeDependScanner(ScanPlugin):
4949 )
5050
5151 options = [
52- CommandLineOption (('--makedepend' ,),
52+ PluggableCommandLineOption (('--makedepend' ,),
5353 is_flag = True , default = False ,
5454 help = 'Parse generated make depend files to find sources corresponding binaries.' ,
5555 help_group = SCAN_GROUP ,
Original file line number Diff line number Diff line change 3333from commoncode import fileutils
3434from plugincode .scan import ScanPlugin
3535from plugincode .scan import scan_impl
36- from scancode import CommandLineOption
37- from scancode import SCAN_GROUP
36+ from commoncode . cliutils import PluggableCommandLineOption
37+ from commoncode . cliutils import SCAN_GROUP
3838from typecode import contenttype
3939
4040from sourcecode import kernel
@@ -53,7 +53,7 @@ class CodeCommentLinesScanner(ScanPlugin):
5353 )
5454
5555 options = [
56- CommandLineOption (('--codecommentlines' ,),
56+ PluggableCommandLineOption (('--codecommentlines' ,),
5757 is_flag = True , default = False ,
5858 help = ' Scan the number of lines of code and lines of the comments.' ,
5959 help_group = SCAN_GROUP ,
Original file line number Diff line number Diff line change 3131
3232from plugincode .scan import ScanPlugin
3333from plugincode .scan import scan_impl
34- from scancode import CommandLineOption
35- from scancode import OTHER_SCAN_GROUP
36- from scancode import SCAN_OPTIONS_GROUP
34+ from commoncode . cliutils import PluggableCommandLineOption
35+ from commoncode . cliutils import OTHER_SCAN_GROUP
36+ from commoncode . cliutils import SCAN_OPTIONS_GROUP
3737from plugin_fingerprint .fingerprint import Simhash
3838
3939@scan_impl
@@ -46,7 +46,7 @@ class FingerprintScanner(ScanPlugin):
4646 sort_order = 1
4747
4848 options = [
49- CommandLineOption (('-f' , '--fingerprint' ),
49+ PluggableCommandLineOption (('-f' , '--fingerprint' ),
5050 is_flag = True , default = False ,
5151 help = 'Scan <input> to generate simhash fingerprints for similarity matching.' ,
5252 help_group = OTHER_SCAN_GROUP )
Original file line number Diff line number Diff line change 2929
3030from plugincode .pre_scan import PreScanPlugin
3131from plugincode .pre_scan import pre_scan_impl
32- from scancode import CommandLineOption
33- from scancode import PRE_SCAN_GROUP
32+ from commoncode . cliutils import PluggableCommandLineOption
33+ from commoncode . cliutils import PRE_SCAN_GROUP
3434from typecode .contenttype import get_type
3535
3636
@@ -41,7 +41,7 @@ class IgnoreBinaries(PreScanPlugin):
4141 """
4242
4343 options = [
44- CommandLineOption (('--ignore-binaries' ,),
44+ PluggableCommandLineOption (('--ignore-binaries' ,),
4545 is_flag = True ,
4646 help = 'Ignore binary files.' ,
4747 sort_order = 10 ,
You can’t perform that action at this time.
0 commit comments