cyw0ng / enigma Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
avoid magic numbers like '1', create a named constant for it
Code: 1,
function GetCWElist has cyclomatic complexity 6
redundant if ...; err != nil check, just return error instead.
if err = os.Mkdir(path.Path, 0700); err != nil {
function insertCWElistToDB has cyclomatic complexity 6
Strings must use doublequote.
.replace(/";/gi, '"');
exported var G should have comment or be unexported
var G defs.Global
don't use an underscore in package name
package capec_analyze
if block ends with a return statement, so drop this else and outdent its block
} else {
Path Traversal: '..filedir'
Directory traversal vulnerability in servlet allows remote attackers to execute arbitrary commands via ".." sequences in an HTTP request.Directory traversal vulnerability in servlet allows remote attackers to execute arbitrary commands via ".." sequences in an HTTP request.
Expected '===' and instead saw '=='.
name: "Serverity: " + (level.length == 0 ? "Unspecified" : level),
Empty block statement.
} else {
function getCapecXMLFromHTTPS has cyclomatic complexity 7
Generic Object Injection Sink
component = runtimeConfig.menu[componentIdx].component;
/private/var/folders/vn/5jkgc7t132s8tg44316nwg9m0000gn/T/___go_build_main_go #gosetup
{"level":"info","ts":1593964918.8244932,"caller":"entry/entry.go:31","msg":"init stage 1: G.Log ready"}
{"level":"info","ts":1593964918.824856,"caller":"entry/entry.go:41","msg":"init stage 2: G.Config ready"}
{"level":"info","ts":1593964918.8249118,"caller":"entry/entry.go:51","msg":"init stage 2: G.DBConn ready"}
{"level":"info","ts":1593964918.824963,"caller":"entry/entry.go:63","msg":"init stage 2: G.Echo ready"}
{"level":"fatal","ts":1593964918.908637,"caller":"entry/entry.go:84","msg":"error: cannot init main bucket","stacktrace":"enigma/server/src/module/entry.initOBS\n\t/Users/cyw0ng/projects/enigma/server/src/module/entry/entry.go:84\nenigma/server/src/module/entry.InitServer\n\t/Users/cyw0ng/projects/enigma/server/src/module/entry/entry.go:19\nmain.main\n\t/Users/cyw0ng/projects/enigma/server/main.go:13\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:203"}
Process finished with exit code 1
function getVendorsPartialHandler has cyclomatic complexity 10
func getVendorsPartialHandler(c echo.Context) error {
if block ends with call to log.Fatal function, so drop this else and outdent its block (move short variable declaration to its own line if necessary)
} else {
function initOBS has cyclomatic complexity 9
func initOBS(G *defs.Global) {
parameter 'G' seems to be unused, consider removing or renaming it as _
func (path *TmpPath) Init(G *Global) error {
Generic Object Injection Sink
capecGraphObj.children[severityIndex].children[likelyIndex].children.push(
Unexpected console statement.
console.log(this.state.searchId);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.