Skip to content

Commit

Permalink
Merge pull request #8 from ZupIT/refactor/hacktoberfest
Browse files Browse the repository at this point in the history
Hacktoberfest
  • Loading branch information
nathannascimentozup authored Sep 24, 2020
2 parents e919892 + 458b448 commit f25df68
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Not doing so may result in your bug not being addressed in a timely manner. Than
**Anything else we need to know?**:

**Environment**:
- Horusec version (use `horus version`):
- Horusec version (use `horusec version`):
- Operating System:
- Network plugin / Tool and version (if this is a network-related / tool bug):
- Others:
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/support_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ assignees: ''
**Anything else we need to know?**:

**Environment**:
- Horusec version (use `horus version`):
- Horusec version (use `horusec version`):
- Operating System:
- Network plugin / Tool and version (if this is a network-related / tool bug):
- Others:
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Customized from the template (https://github.com/docker/cli/blob/master/.github/PULL_REQUEST_TEMPLATE.md)
Please make sure you've read and understood our contributing guidelines;
https://github.com/ZupIT/horus-engine/blob/master/CONTRIBUTING.md
https://github.com/ZupIT/horusec-engine/blob/master/CONTRIBUTING.md
Please provide the following information:
-->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: HorusEnginePipeline
name: HorusecEnginePipeline

on: [push]

Expand All @@ -25,7 +25,7 @@ jobs:
echo "You can use the command: \`gofmt -w \$(gofmt -l \'find . -name \'*.go\' | grep -v vendor)\` to reformat code."
exit 1
fi
echo "=) The project horus-cli it's OK!"
echo "=) The project horusec-cli it's OK!"
- name: lint
run: make lint
- name: test
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/security-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ name: SecurityPipeline
on: [push]

jobs:
horus-security:
name: horus-security
horusec-security:
name: horusec-security
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Running Horus Security
- name: Running Horusec Security
shell: bash
run: |
curl -fsSL https://horus-assets.s3.amazonaws.com/install.sh | bash
horus start -p="./"
curl -fsSL https://horusec-cli.s3.amazonaws.com/install.sh | bash
horusec start -p="./"
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ tmp/
.aws/
*.pem
*.srl
.horus/
.horusec/
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ A simple analysis of a inmemory string:
var exampleGoFile = `package version
import (
"github.com/ZupIT/horus/development-kit/pkg/utils/logger"
"github.com/ZupIT/horusec/development-kit/pkg/utils/logger"
"github.com/spf13/cobra"
)
Expand All @@ -74,8 +74,8 @@ func NewVersionCommand() IVersion {
func (v *Version) CreateCobraCmd() *cobra.Command {
return &cobra.Command{
Use: "version",
Short: "Actual version installed of the horus",
Example: "horus version",
Short: "Actual version installed of the horusec",
Example: "horusec version",
RunE: func(cmd *cobra.Command, args []string) error {
logger.LogPrint(cmd.Short + " is: ")
return nil
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/ZupIT/horus-engine
module github.com/ZupIT/horusec-engine

go 1.14

Expand Down
15 changes: 8 additions & 7 deletions text/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
package text

import (
"github.com/stretchr/testify/assert"
"path/filepath"
"regexp"
"testing"

"github.com/stretchr/testify/assert"
)

func TestFindLineAndColumnWithAKotlinController(t *testing.T) {
Expand Down Expand Up @@ -73,7 +74,7 @@ func TestFindLineAndColumnWithAGoFile(t *testing.T) {
var exampleGoFile = `package version
import (
"github.com/ZupIT/horus/development-kit/pkg/utils/logger"
"github.com/ZupIT/horusec/development-kit/pkg/utils/logger"
"github.com/spf13/cobra"
)
Expand All @@ -91,8 +92,8 @@ func NewVersionCommand() IVersion {
func (v *Version) CreateCobraCmd() *cobra.Command {
return &cobra.Command{
Use: "version",
Short: "Actual version installed of the horus",
Example: "horus version",
Short: "Actual version installed of the horusec",
Example: "horusec version",
RunE: func(cmd *cobra.Command, args []string) error {
logger.LogPrint(cmd.Short + " is: ")
return nil
Expand Down Expand Up @@ -128,7 +129,7 @@ func TestExtractSampleWithAGoFile(t *testing.T) {
var exampleGoFile = `package version
import (
"github.com/ZupIT/horus/development-kit/pkg/utils/logger"
"github.com/ZupIT/horusec/development-kit/pkg/utils/logger"
"github.com/spf13/cobra"
)
Expand All @@ -146,8 +147,8 @@ func NewVersionCommand() IVersion {
func (v *Version) CreateCobraCmd() *cobra.Command {
return &cobra.Command{
Use: "version",
Short: "Actual version installed of the horus",
Example: "horus version",
Short: "Actual version installed of the horusec",
Example: "horusec version",
RunE: func(cmd *cobra.Command, args []string) error {
logger.LogPrint(cmd.Short + " is: ")
return nil
Expand Down
2 changes: 1 addition & 1 deletion text/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package text
import (
"regexp"

"github.com/ZupIT/horus-engine"
engine "github.com/ZupIT/horusec-engine"
)

type MatchType int
Expand Down
4 changes: 1 addition & 3 deletions text/unit.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@

package text

import (
"github.com/ZupIT/horus-engine"
)
import engine "github.com/ZupIT/horusec-engine"

type TextUnit struct {
Files []TextFile
Expand Down
14 changes: 7 additions & 7 deletions text/unit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ import (
"regexp"
"testing"

"github.com/ZupIT/horus-engine"
engine "github.com/ZupIT/horusec-engine"
)

func TestTextUnitEvalWithRegularMatch(t *testing.T) {
var exampleGoFile = `package version
import (
"github.com/ZupIT/horus/development-kit/pkg/utils/logger"
"github.com/ZupIT/horusec/development-kit/pkg/utils/logger"
"github.com/spf13/cobra"
)
Expand All @@ -44,8 +44,8 @@ func NewVersionCommand() IVersion {
func (v *Version) CreateCobraCmd() *cobra.Command {
return &cobra.Command{
Use: "version",
Short: "Actual version installed of the horus",
Example: "horus version",
Short: "Actual version installed of the horusec",
Example: "horusec version",
RunE: func(cmd *cobra.Command, args []string) error {
logger.LogPrint(cmd.Short + " is: ")
return nil
Expand Down Expand Up @@ -121,7 +121,7 @@ func TestTextUnitEvalWithRegularMatchWithMultipleFiles(t *testing.T) {
var examplePositiveGoFile = `package version
import (
"github.com/ZupIT/horus/development-kit/pkg/utils/logger"
"github.com/ZupIT/horusec/development-kit/pkg/utils/logger"
"github.com/spf13/cobra"
)
Expand All @@ -139,8 +139,8 @@ func NewVersionCommand() IVersion {
func (v *Version) CreateCobraCmd() *cobra.Command {
return &cobra.Command{
Use: "version",
Short: "Actual version installed of the horus",
Example: "horus version",
Short: "Actual version installed of the horusec",
Example: "horusec version",
RunE: func(cmd *cobra.Command, args []string) error {
logger.LogPrint(cmd.Short + " is: ")
return nil
Expand Down

0 comments on commit f25df68

Please sign in to comment.