Commit Graph

4 Commits

Author SHA1 Message Date
Chris Mc
3d501217a3 🧰 Adding clang-tidy, cmake-format, and ASAN tests (#168)
* adding clang-tidy and asan tests

Playing with clang-tidy, we already had the rule removed in #166... running the static analyzer from CMake reproduced the report in many places... I suspect the macro and `new`/`delete` separation clang-tidy is just unable to understand.

Running the problematic examples + tests with the ASAN enabled reported no problems

* Apply suggestions from code review

* Update lint.yml

* applying linting rules

* fix bad rename

* formating

* clang-tidy on jsoncons tests

* and cmake-format to lint

* cmake format improve change detection

* Update lint.yml

* apply linting
2021-09-17 19:42:21 -04:00
Chris Mc
b21d80c22e 🧰 Linting and maintenance (#120)
* some manual fixes to obtain

* fairly close enough

* whitespace fixes

* add comment

* adding clang format + applied

* add editorconfig (supported natively by github web editor)

* apply linting to project

* clean up CI workflows

* zap vcpkg folder

actual one is here
https://github.com/microsoft/vcpkg/tree/master/ports/jwt-cpp

* adding a logo

* thin the lines in the pluses

* use logo + more links to spec and examples

* Create lint.yml

* apply linting
2021-01-11 17:37:14 -05:00
Chris Mc
149af7a2c5 Test token expiration handling with nlohmann/json traits (#104)
Correctly handle unsigned integers provided by nlohmann/json.
closes 103

Co-authored-by: Dominik Thalhammer <dominik@thalhammer.it>
2020-10-26 08:52:38 +01:00
Chris Mc
dde742cca3 adding example for working with private claims (#88)
* adding example for working with private claims

* adding nlohmann `set_payload_claim` example to constrast picojson

to highlight the problems in #87
2020-07-20 23:28:45 +02:00