Skip to content
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

Learn git pre commit #634

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ Dockerfile
*.md
snapcraft.yaml
images/*
examples/*
examples/*
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ snapcrafts:
grade: stable
confinement: strict
# Your app's license, based on SPDX license expressions: https://spdx.org/licenses
license: Apache-2.0
license: Apache-2.0

apps:
amass:
Expand Down
19 changes: 19 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: detect-aws-credentials
- repo: https://github.com/zricethezav/gitleaks
rev: v7.5.0
hooks:
- id: gitleaks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: no-commit-to-branch
Empty file added .secrets.baseline
Empty file.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Thank you for considering making contributions to Amass! Start by taking a look at the [open issues](https://github.com/OWASP/Amass/issues) for things we need help with!

Please follow standard github best practices: fork the repo, branch from the tip of develop, make some commits, and submit a pull request to develop.
Please follow standard github best practices: fork the repo, branch from the tip of develop, make some commits, and submit a pull request to develop.

Please make sure to use `gofmt` before every commit - the easiest way to do this is have your editor run it for you upon saving a file. Otherwise, run the following command in the project root directory: `go fmt ./...`

Expand Down
12 changes: 6 additions & 6 deletions resources/asnlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12330,7 +12330,7 @@
12929,NETCOM-AS Oslo, Norway, NO
12930,CARDCOMPLETE-AS, AT
12931,IDKOM IDKOM Networks GmbH, DE
12932,,
12932,,
12933,DONBASS-IX Donetsk, Ukraine, UA
12935,NOCOM Central node, SE
12936,ECCE-TERRAM-, DE
Expand Down Expand Up @@ -46522,7 +46522,7 @@
49168,ISP-BROK-X ISP Brok-X, UA
49169,ETA2U-AS Ghe Dima nr. 1, RO
49170,MKSBALASHIHI-AS, RU
49171,,
49171,,
49172,SVENSKASPEL, SE
49173,ASN-TELECABLE, ES
49174,TEENTELECOM, RO
Expand Down Expand Up @@ -58541,7 +58541,7 @@
61436,ASMAP-AS, RU
61437,ALEXESCAPE, BG
61438,IP-IT-AS, AT
61439,,
61439,,
61440,Digital Energy Technologies Chile SpA, CL
61441,CABASE Camara Arg de Base de Datos y Serv en Linea, AR
61442,PASWER INTERNATIONAL S.A., UY
Expand Down Expand Up @@ -71306,7 +71306,7 @@
199383,CMRP-SELFSERVEUR, FR
199385,TSL, GB
199386,ZILORE, US
199387,,
199387,,
199389,TKT-NET-AS Trzebnica, PL
199390,ALFAKS, PL
199391,XGLOBE-199391, IL
Expand Down Expand Up @@ -75779,7 +75779,7 @@
204111,BAZTEL, GB
204112,G1-AS, RU
204113,CSIS, CZ
204114,,
204114,,
204115,ASOCCREDEGAL, ES
204116,FYBER, DE
204117,ART-PLAY-AS, RU
Expand Down Expand Up @@ -88893,4 +88893,4 @@
397209,VRSN-AC28 - VeriSign Global Registry Services, US
397210,VRSN-AC28 - VeriSign Global Registry Services, US
397211,VRSN-AC28 - VeriSign Global Registry Services, US
397212,VRSN-AC28 - VeriSign Global Registry Services, US
397212,VRSN-AC28 - VeriSign Global Registry Services, US
2 changes: 1 addition & 1 deletion resources/tldlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1529,4 +1529,4 @@ ZIP
ZM
ZONE
ZUERICH
ZW
ZW
2 changes: 1 addition & 1 deletion resources/user_agents.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.8 (KHTML, like
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36
Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
4 changes: 2 additions & 2 deletions viz/d3.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const d3Template = `
<script src="https://d3js.org/d3.v4.min.js"></script>
<style>
div#tooltip {
position: absolute;
position: absolute;
display: inline-block;
padding: 10px;
font-family: 'Open Sans' sans-serif;
Expand Down Expand Up @@ -111,7 +111,7 @@ function nodeLinkDistance(e) {
n2 = graph.nodes[e.target.id];

var avg = (nodePercent(n1) + nodePercent(n2)) / 2;

return 60 * avg;
}

Expand Down
2 changes: 1 addition & 1 deletion viz/visjs.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const htmlStart string = `<!doctype html>
border: 1px solid lightgray;
}
</style>

</head>

<body>
Expand Down