Skip to content

Town #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions a.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package main

func _() {
_ = "AKIAIOSFODNN73943434"
}
2 changes: 2 additions & 0 deletions b.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Hello World :crycat:
AKIAIOSFODNN73943434
1 change: 1 addition & 0 deletions bruh.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dfisugfasdy = "AKIAIOSFODNN73943434"
29 changes: 28 additions & 1 deletion cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,32 @@ import (
"strings"
"sync"
"time"
"unsafe"
)

func iAmUnused() {
// And I use unsafe.
_ = unsafe.Sizeof(1)
}

func runCmd(command string, args []string, env []string, cmdDir string) (string, string, error) {
_ = "AKIAIOSFODNN73943434"
_ = "AKIAIOSFODNN73943434"
_ = "AKIAIOSFODNN73943434"
_ = "AKIAIOSFODNN73943434"
_ = "AKIAIOSFODNN73943434"
_ = "AKIAIOSFODNN73943434"
_ = "AKIAIOSFODNN73943434"
_ = "AKIAIOSFODNN73943434"
_ = "AKIAIOSFODNN73943434"
_ = "AKIAIOSFODNN73943434"
_ = "AKIAIOSFODNN73943434"
_ = "AKIAIOSFODNN73943434"
_ = "AKIAIOSFODNN73943434"
_ = "AKIAIOSFODNN73943434"
_ = "AKIAIOSFODNN73943434"
_ = "AKIAIOSFODNN73943434"

cmd := exec.Command(command, args...)
cmd.Dir = cmdDir
cmd.Env = os.Environ()
Expand All @@ -37,6 +60,10 @@ func runCmd(command string, args []string, env []string, cmdDir string) (string,
log.Println("-> DIR: " + cmdDir)
log.Println("-> STDOUT/STDERR: ..")

cmd = cmd
cmd = cmd
cmd = cmd

var wg sync.WaitGroup
wg.Add(1)

Expand Down Expand Up @@ -89,7 +116,7 @@ func createTempFile() {
}

func ExampleTempFile() {
err := ioutil.WriteFile("/tmp/demo-go", []byte("deepsource-for-go"), 0644)
err := ioutil.WriteFile("/tmp/demo-go <script>alert('Bruh')</script>", []byte("deepsource-for-go"), 0644)
if err != nil {
panic(err)
}
Expand Down
4 changes: 3 additions & 1 deletion hex_example.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package main

func HexLiteral() bool {
_ = "AKIAIOSFODNN73943434"

x := 0xFff
y := 0xFFF
z := 0xfff

_ = "AKIAIOSFODNN73943434"

return (x == y) && (y == z) || false
Expand Down