forked from seladb/PcapPlusPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
592 changed files
with
197,506 additions
and
55,583 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
--- | ||
BasedOnStyle: Microsoft | ||
UseTab: Always | ||
AllowShortFunctionsOnASingleLine: All | ||
NamespaceIndentation: All | ||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# -------------------------- | ||
# General Formatting Options | ||
# -------------------------- | ||
# How wide to allow formatted cmake files | ||
line_width = 120 | ||
|
||
# How many spaces to tab for indent | ||
tab_size = 2 | ||
|
||
# If an argument group contains more than this many sub-groups (parg or kwarg | ||
# groups), then force it to a vertical layout. | ||
max_subgroups_hwrap = 2 | ||
|
||
# If a positional argument group contains more than this many arguments, then | ||
# force it to a vertical layout. | ||
max_pargs_hwrap = 3 | ||
|
||
# If true, separate flow control names from their parentheses with a space | ||
separate_ctrl_name_with_space = False | ||
|
||
# If true, separate function names from parentheses with a space | ||
separate_fn_name_with_space = False | ||
|
||
# If a statement is wrapped to more than one line, than dangle the closing | ||
# parenthesis on it's own line. | ||
dangle_parens = False | ||
|
||
# If the trailing parenthesis must be 'dangled' on it's on line, then align it | ||
# to this reference: `prefix`: the start of the statement, `prefix-indent`: the | ||
# start of the statement, plus one indentation level, `child`: align to the | ||
# column of the arguments | ||
dangle_align = 'prefix' | ||
|
||
min_prefix_chars = 4 | ||
|
||
# If the statement spelling length (including space and parenthesis) is larger | ||
# than the tab width by more than this amount, then force reject un-nested | ||
# layouts. | ||
max_prefix_chars = 10 | ||
|
||
# If a candidate layout is wrapped horizontally but it exceeds this many lines, | ||
# then reject the layout. | ||
max_lines_hwrap = 2 | ||
|
||
# What style line endings to use in the output. | ||
line_ending = 'unix' | ||
|
||
# Format command names consistently as 'lower' or 'upper' case | ||
command_case = 'lower' | ||
|
||
# Format keywords consistently as 'lower' or 'upper' case | ||
keyword_case = 'unchanged' | ||
|
||
# If true, the argument lists which are known to be sortable will be sorted | ||
# lexicographicall | ||
enable_sort = True | ||
|
||
# If true, the parsers may infer whether or not an argument list is sortable | ||
# (without annotation). | ||
autosort = True | ||
|
||
# By default, if cmake-format cannot successfully fit everything into the | ||
# desired linewidth it will apply the last, most aggressive attempt that it | ||
# made. If this flag is True, however, cmake-format will print error, exit | ||
# with non-zero status code, and write-out nothing | ||
require_valid_layout = False | ||
|
||
# Specify structure for custom cmake functions | ||
additional_commands = { | ||
"pkg_find": { | ||
"kwargs": { | ||
"PKG": "*" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[codespell] | ||
skip = *.dat,typos-config.toml,.git,./ci,./Dist,./mk,./Tests/ExamplesTest/expected_output,./Tests/ExamplesTest/pcap_examples,./Tests/Packet++Test/PacketExamples,./Tests/Pcap++Test/PcapExamples | ||
skip = *.dat,typos-config.toml,.git,./ci,./Dist,./mk,./Tests/ExamplesTest/expected_output,./Tests/ExamplesTest/pcap_examples,./Tests/Packet++Test/PacketExamples,./Tests/Pcap++Test/PcapExamples,./3rdParty/json,./3rdParty/OUIDataset/PCPP_OUIDataset.json | ||
ignore-words = codespell-ignore-list.txt | ||
count = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @seladb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Auto Update | ||
|
||
on: | ||
schedule: | ||
- cron: '10 10 1 * *' | ||
|
||
jobs: | ||
precommit-update: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: dev | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.8.x" | ||
- name: Run update | ||
run: | | ||
pip install pre-commit | ||
pre-commit autoupdate | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
author: GitHub <[email protected]> | ||
add-paths: .pre-commit-config.yaml | ||
commit-message: Auto pre-commit update | ||
body: | | ||
Update pre-commit hooks to latest | ||
Auto generated | ||
branch: auto-update/precommit_update | ||
delete-branch: true | ||
title: Auto precommit update | ||
labels: automated-pr | ||
assignees: seladb | ||
|
||
oui-update: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: dev | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.8.x" | ||
- name: Run update | ||
run: | | ||
python3 3rdParty/OUIDataset/create_oui_data.py | ||
mv -f PCPP_OUIDataset.json 3rdParty/OUIDataset/PCPP_OUIDataset.json | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
author: GitHub <[email protected]> | ||
add-paths: 3rdParty/OUIDataset/PCPP_OUIDataset.json | ||
commit-message: Auto OUI Database Update | ||
body: | | ||
Update OUI database to latest | ||
Auto generated | ||
branch: auto-update/oui_update | ||
delete-branch: true | ||
title: Auto OUI Database Update | ||
labels: automated-pr | ||
assignees: seladb |
Oops, something went wrong.