You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @Percivalll
Judging by the lack of questions and reactions, this functionality is not in demand among users.
Therefore, we probably will not implement this (at least now the maintainers have a large number of more priority tasks).
Description
Add
--max-file-size
flag to skip files greater than a particular size.See #7151 for more context
requirements:
1.1. Add
Description() string
function into analyzer and PostAnalyzer interfaces. (see Add an option to skip the files greater than a particular size #7151 (reply in thread))1.2. Add
AllAnalyzersTypes() map[Type]string
(type
->description
(see 1.1)) function to show all analyzers ( see Add an option to skip the files greater than a particular size #7151 (reply in thread))--max-file-size
flag.2.1. flag format is
<analyzer_type>:<max_size>
(e.g.--max-file-size jar:200mb
--max-file-size secret:5mb
)2.2. flag should support size with prefix (i mean
mb
,kb
, etc.). I saw that https://github.com/docker/go-units supports that (https://github.com/docker/go-units/blob/16e18b2861ca6fd622e7042ffeb9a3ebe8a9dff9/size.go#L78-L80)2.3. ??? i am not sure about this - cli error is supposed to show list of all analyzers when unsupported analyzer is used.
Discussed in #7151
The text was updated successfully, but these errors were encountered: