Skip to content

Commit 5fa1cea

Browse files
code auto reformat
1 parent cb9b8ba commit 5fa1cea

File tree

89 files changed

+1382
-1171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1382
-1171
lines changed

.babelrc

+17-18
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
{
2-
"presets": [
3-
"@babel/preset-env"
4-
],
5-
"plugins": [
6-
"@babel/plugin-proposal-class-properties",
7-
"@babel/plugin-transform-async-to-generator",
8-
"@babel/plugin-proposal-object-rest-spread"
9-
],
10-
11-
"ignore": [
12-
"./node_modules",
13-
"./assets",
14-
"./view",
15-
"./tests",
16-
"./logs",
17-
"./dist",
18-
"./build"
19-
]
2+
"presets": [
3+
"@babel/preset-env"
4+
],
5+
"plugins": [
6+
"@babel/plugin-proposal-class-properties",
7+
"@babel/plugin-transform-async-to-generator",
8+
"@babel/plugin-proposal-object-rest-spread"
9+
],
10+
"ignore": [
11+
"./node_modules",
12+
"./assets",
13+
"./view",
14+
"./tests",
15+
"./logs",
16+
"./dist",
17+
"./build"
18+
]
2019
}

.eslintrc.json

+17-17
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
2-
"parser": "babel-eslint",
3-
"ecmaFeatures": {
4-
"modules": true,
5-
"spread" : true,
6-
"restParams" : true
7-
},
8-
"env" : {
9-
"browser" : false,
10-
"node" : true,
11-
"es6" : true,
12-
"mocha": true
13-
},
14-
"parserOptions": {
15-
"ecmaVersion": 6,
16-
"sourceType": "module",
2+
"parser": "babel-eslint",
173
"ecmaFeatures": {
18-
"jsx": true
4+
"modules": true,
5+
"spread": true,
6+
"restParams": true
7+
},
8+
"env": {
9+
"browser": false,
10+
"node": true,
11+
"es6": true,
12+
"mocha": true
13+
},
14+
"parserOptions": {
15+
"ecmaVersion": 6,
16+
"sourceType": "module",
17+
"ecmaFeatures": {
18+
"jsx": true
19+
}
1920
}
20-
}
2121
}

.github/ISSUE_TEMPLATE/bug_report.md

-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@ A clear and concise description of what you expected to happen.
1818

1919
**Are you using the binary or the source code?**
2020

21-
2221
**Your information**
2322
Provide your name and your AS/company (see Bert Hubert's post https://berthub.eu/articles/posts/anonymous-help/).

.github/ISSUE_TEMPLATE/feature_request.md

-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,5 @@ A clear and concise description.
1616
**Provide an example**
1717
Provide an example in terms of prefixes and BGP messages. Possibly provide a snippet of config.yml and prefixes.yml.
1818

19-
2019
**Your information**
2120
Provide your name and your AS/company (see Bert Hubert's post https://berthub.eu/articles/posts/anonymous-help/).

.github/ISSUE_TEMPLATE/support_request.md

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ assignees: ''
1414
**Did you read the documentation? Then ask the community for help.**
1515

1616
### In your request, provide an answer to all the following questions:
17+
1718
* A clear and concise description of what the issue is.
1819
* Point to the part of the documentation you tried to use to address the issue.
1920
* Provide the steps to reproduce the issue

.github/workflows/main.yml

+78-78
Original file line numberDiff line numberDiff line change
@@ -12,87 +12,87 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414

15-
- name: Set up Javascript/Node
16-
uses: actions/setup-node@v4
17-
with:
18-
node-version: 18.19.0
19-
20-
- name: Check out code
21-
uses: actions/checkout@v4
22-
with:
23-
fetch-depth: '0'
24-
25-
- name: Cache multiple paths
26-
uses: actions/cache@v4
27-
with:
28-
path: ~/.npm
29-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
30-
restore-keys: |
31-
${{ runner.os }}-node-
32-
33-
- name: Build
34-
run: |
35-
npm install
36-
npm run compile
15+
- name: Set up Javascript/Node
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 18.19.0
19+
20+
- name: Check out code
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: '0'
24+
25+
- name: Cache multiple paths
26+
uses: actions/cache@v4
27+
with:
28+
path: ~/.npm
29+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
30+
restore-keys: |
31+
${{ runner.os }}-node-
32+
33+
- name: Build
34+
run: |
35+
npm install
36+
npm run compile
3737
3838
test:
3939
name: Test
4040
runs-on: ubuntu-latest
4141
steps:
4242

43-
- name: Set up nodejs
44-
uses: actions/setup-node@v4
45-
with:
46-
node-version: 18.19.0
47-
48-
- name: Check out code
49-
uses: actions/checkout@v4
50-
with:
51-
fetch-depth: '0'
52-
53-
- name: Cache multiple paths
54-
uses: actions/cache@v4
55-
with:
56-
path: ~/.npm
57-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
58-
restore-keys: |
59-
${{ runner.os }}-node-
60-
61-
- name: Install
62-
run: |
63-
npm install
64-
65-
- name: Tests
66-
run: |
67-
npm run test-core
68-
npm run test-generate
69-
npm run test-reports
70-
npm run test-neighbor
71-
npm run test-dump
72-
73-
- name: Tests RPKI
74-
run: |
75-
npm run test-rpki
76-
77-
- name: Tests Proxy
78-
run: |
79-
npm install -g anyproxy
80-
nohup anyproxy --port 8001 &
81-
ANYPROXY_PID=$!
82-
npm run test-proxy
83-
kill $ANYPROXY_PID
84-
85-
- name: Tests NPM
86-
run: |
87-
npm run test-npm
88-
89-
- name: Tests Kafka
90-
run: |
91-
sudo apt-get -y install tar
92-
sudo apt-get -y install wget
93-
wget -O kafka.tgz https://archive.apache.org/dist/kafka/3.5.0/kafka_2.12-3.5.0.tgz
94-
mkdir kafka && tar -xzf kafka.tgz -C kafka --strip-components=1
95-
nohup ./kafka/bin/zookeeper-server-start.sh ./kafka/config/zookeeper.properties &
96-
nohup ./kafka/bin/kafka-server-start.sh ./kafka/config/server.properties &
97-
nohup ./kafka/bin/kafka-topics.sh --create --topic bgpalerter --bootstrap-server 0.0.0.0:9092 --replication-factor 1 --partitions 1 &
98-
sleep 30 && npm run test-kafka
43+
- name: Set up nodejs
44+
uses: actions/setup-node@v4
45+
with:
46+
node-version: 18.19.0
47+
48+
- name: Check out code
49+
uses: actions/checkout@v4
50+
with:
51+
fetch-depth: '0'
52+
53+
- name: Cache multiple paths
54+
uses: actions/cache@v4
55+
with:
56+
path: ~/.npm
57+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
58+
restore-keys: |
59+
${{ runner.os }}-node-
60+
61+
- name: Install
62+
run: |
63+
npm install
64+
65+
- name: Tests
66+
run: |
67+
npm run test-core
68+
npm run test-generate
69+
npm run test-reports
70+
npm run test-neighbor
71+
npm run test-dump
72+
73+
- name: Tests RPKI
74+
run: |
75+
npm run test-rpki
76+
77+
- name: Tests Proxy
78+
run: |
79+
npm install -g anyproxy
80+
nohup anyproxy --port 8001 &
81+
ANYPROXY_PID=$!
82+
npm run test-proxy
83+
kill $ANYPROXY_PID
84+
85+
- name: Tests NPM
86+
run: |
87+
npm run test-npm
88+
89+
- name: Tests Kafka
90+
run: |
91+
sudo apt-get -y install tar
92+
sudo apt-get -y install wget
93+
wget -O kafka.tgz https://archive.apache.org/dist/kafka/3.5.0/kafka_2.12-3.5.0.tgz
94+
mkdir kafka && tar -xzf kafka.tgz -C kafka --strip-components=1
95+
nohup ./kafka/bin/zookeeper-server-start.sh ./kafka/config/zookeeper.properties &
96+
nohup ./kafka/bin/kafka-server-start.sh ./kafka/config/server.properties &
97+
nohup ./kafka/bin/kafka-topics.sh --create --topic bgpalerter --bootstrap-server 0.0.0.0:9092 --replication-factor 1 --partitions 1 &
98+
sleep 30 && npm run test-kafka

.hound.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
jshint:
22
enabled: false
3-
3+
44
eslint:
55
enabled: true
66
config_file: .eslintrc.json

0 commit comments

Comments
 (0)