Skip to content

Commit

Permalink
Treat all files as source
Browse files Browse the repository at this point in the history
  • Loading branch information
varunsh-coder committed Apr 1, 2024
1 parent 7eb4a36 commit 2894e2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion eventhandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func isSourceCodeFile(fileName string) bool {
return true
}

return false
return true
}

func (eventHandler *EventHandler) handleProcessEvent(event *Event) {
Expand Down
4 changes: 2 additions & 2 deletions procmon_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ func (p *ProcessMonitor) MonitorProcesses(errc chan error) {
if len(workingDirectory) == 0 {
workingDirectory = "/home/runner"
}
//r, _ := flags.Parse(fmt.Sprintf("-a exit,always -F dir=%s -F perm=wa -S open -S openat -S rename -S renameat -k %s", workingDirectory, fileMonitorTag))
r, _ := flags.Parse(fmt.Sprintf("-w %s -p w -k %s", workingDirectory, fileMonitorTag))
r, _ := flags.Parse(fmt.Sprintf("-a exit,always -F dir=%s -F perm=wa -S open -S openat -S rename -S renameat -k %s", workingDirectory, fileMonitorTag))
//r, _ := flags.Parse(fmt.Sprintf("-w %s -p w -k %s", workingDirectory, fileMonitorTag))

actualBytes, _ := rule.Build(r)

Expand Down

0 comments on commit 2894e2e

Please sign in to comment.