🧰 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
This commit is contained in:
Chris Mc
2021-01-11 17:37:14 -05:00
committed by GitHub
parent ac3de9e69b
commit b21d80c22e
45 changed files with 2317 additions and 2423 deletions

View File

@@ -1,5 +1,5 @@
#include <gtest/gtest.h>
#include "jwt-cpp/jwt.h"
#include <gtest/gtest.h>
TEST(TokenFormatTest, MissingDot) {
ASSERT_THROW(jwt::decode("eyJhbGciOiJub25lIiwidHlwIjoiSldTIn0.eyJpc3MiOiJhdXRoMCJ9"), std::invalid_argument);
@@ -13,4 +13,4 @@ TEST(TokenFormatTest, InvalidChar) {
TEST(TokenFormatTest, InvalidJSON) {
ASSERT_THROW(jwt::decode("YXsiYWxnIjoibm9uZSIsInR5cCI6IkpXUyJ9YQ.eyJpc3MiOiJhdXRoMCJ9."), std::runtime_error);
}
}