Skip to content

Commit

Permalink
Organize the badges and boilerplates (#22)
Browse files Browse the repository at this point in the history
* Organize the badge collection
* Use the boilerplate utility to stamp file headers. See https://github.com/paulhuggett/boilerplate
  • Loading branch information
paulhuggett authored Oct 27, 2023
1 parent 9886131 commit ae0c4a7
Show file tree
Hide file tree
Showing 76 changed files with 23 additions and 151 deletions.
4 changes: 4 additions & 0 deletions .boilerplate.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Distributed under the Apache License v2.0.
See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
for license information.
SPDX-License-Identifier: Apache-2.0
2 changes: 2 additions & 0 deletions .boilerplateignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include/peejay/cprun.hpp
include/peejay/icubaby.hpp
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
#* \____|_| |_|\__,_|_|\_\___|_____|_|___/\__|___/ *
#* *
#===----------------------------------------------------------------------===//
#
# Distributed under the Apache License v2.0.
# See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
# for license information.
# SPDX-License-Identifier: Apache-2.0
#
#===----------------------------------------------------------------------===//
cmake_minimum_required (VERSION 3.13)

Expand Down
22 changes: 17 additions & 5 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,25 @@
JSON Parser for C++
:toc:

image:https://github.com/paulhuggett/peejay/actions/workflows/ci.yaml/badge.svg[CI Build & Test,link=https://github.com/paulhuggett/peejay/actions/workflows/ci.yaml]
image:https://sonarcloud.io/api/project_badges/measure?project=paulhuggett_peejay&metric=alert_status[Quality Gate, link=https://sonarcloud.io/summary/new_code?id=paulhuggett_peejay]
image:https://app.codacy.com/project/badge/Grade/a37157bbd85c440daadd8039cda137b2[Codacy Badge, link=https://app.codacy.com/gh/paulhuggett/peejay/dashboard]
image:https://github.com/paulhuggett/peejay/actions/workflows/klee.yaml/badge.svg[KLEE Tests,link=https://github.com/paulhuggett/peejay/actions/workflows/klee.yaml]
== Status

[cols="2,1"]
|===
| Continuous Integration
| image:https://github.com/paulhuggett/peejay/actions/workflows/ci.yaml/badge.svg[CI Build & Test,link=https://github.com/paulhuggett/peejay/actions/workflows/ci.yaml]

| Static Analysis
| image:https://sonarcloud.io/api/project_badges/measure?project=paulhuggett_peejay&metric=alert_status[Quality Gate, link=https://sonarcloud.io/summary/new_code?id=paulhuggett_peejay] image:https://app.codacy.com/project/badge/Grade/a37157bbd85c440daadd8039cda137b2[Codacy Badge, link=https://app.codacy.com/gh/paulhuggett/peejay/dashboard]
image:https://img.shields.io/coverity/scan/28476.svg[Coverity Scan Build Status,link=https://scan.coverity.com/projects/paulhuggett-peejay]
image:https://github.com/paulhuggett/peejay/actions/workflows/msvc.yaml/badge.svg[Microsoft C++ Code Analysis,link=https://github.com/paulhuggett/peejay/actions/workflows/msvc.yaml]
image:https://www.bestpractices.dev/projects/8006/badge[OpenSSF Best Practices,link=https://www.bestpractices.dev/projects/8006]

| Dynamic Analysis
| image:https://github.com/paulhuggett/peejay/actions/workflows/klee.yaml/badge.svg[KLEE Tests,link=https://github.com/paulhuggett/peejay/actions/workflows/klee.yaml]

| https://openssf.org[Open SSF]
| image:https://www.bestpractices.dev/projects/8006/badge[OpenSSF Best Practices,link=https://www.bestpractices.dev/projects/8006]
image:https://api.securityscorecards.dev/projects/github.com/paulhuggett/peejay/badge[OpenSSF Scorecard,link=https://securityscorecards.dev/viewer/?uri=github.com/paulhuggett/peejay]
|===

== Introduction

Expand Down
2 changes: 0 additions & 2 deletions cprun/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@
# * | .__/ \__,_|_| |___/\___| *
# * |_| *
# ===----------------------------------------------------------------------===//
#
# Distributed under the Apache License v2.0.
# See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
# for license information.
# SPDX-License-Identifier: Apache-2.0
#
# ===----------------------------------------------------------------------===//
"""
This module is used to generate the table of Unicode code point categories
Expand Down
2 changes: 0 additions & 2 deletions cprun/unicode_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@
# * \__,_|_| |_|_|\___\___/ \__,_|\___| \__,_|\__,_|\__\__,_| *
# * *
# ===----------------------------------------------------------------------===//
#
# Distributed under the Apache License v2.0.
# See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
# for license information.
# SPDX-License-Identifier: Apache-2.0
#
# ===----------------------------------------------------------------------===//
"""This module decodes the contents of UnicodeData.txt (from from
<https://www.unicode.org/Public/zipped/15.0.0/UCD.zip>.
Expand Down
2 changes: 0 additions & 2 deletions include/peejay/arrayvec.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
//* \__,_|_| |_| \__,_|\__, | \_/ \___|\___| *
//* |___/ *
//===----------------------------------------------------------------------===//
//
// Distributed under the Apache License v2.0.
// See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
// for license information.
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
/// \file arrayvec.hpp
/// \brief Provides a sequence container, arrayvec<>. that encapsulates
Expand Down
2 changes: 0 additions & 2 deletions include/peejay/cbii.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
//* \___|_.__/|_|_| *
//* *
//===----------------------------------------------------------------------===//
//
// Distributed under the Apache License v2.0.
// See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
// for license information.
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
/// \file cbii.hpp
/// \brief Provides peejay::checked_back_insert_iterator is an output
Expand Down
2 changes: 0 additions & 2 deletions include/peejay/details/avbase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
//* \__,_| \_/ |_.__/ \__,_|___/\___| *
//* *
//===----------------------------------------------------------------------===//
//
// Distributed under the Apache License v2.0.
// See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
// for license information.
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
#ifndef PEEJAY_DETAILS_AVBASE_HPP
#define PEEJAY_DETAILS_AVBASE_HPP
Expand Down
2 changes: 0 additions & 2 deletions include/peejay/dom.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
//* \__,_|\___/|_| |_| |_| *
//* *
//===----------------------------------------------------------------------===//
//
// Distributed under the Apache License v2.0.
// See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
// for license information.
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
/// \file dom.hpp
/// \brief Provides a simple document-object-module backend for the PJ JSON
Expand Down
2 changes: 0 additions & 2 deletions include/peejay/emit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
//* \___|_| |_| |_|_|\__| *
//* *
//===----------------------------------------------------------------------===//
//
// Distributed under the Apache License v2.0.
// See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
// for license information.
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
/// \file emit.hpp
/// \brief The function peejay::emit() recursively writes a peejay::element
Expand Down
2 changes: 0 additions & 2 deletions include/peejay/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
//* _/ |___/\___/|_| |_| *
//* |__/ *
//===----------------------------------------------------------------------===//
//
// Distributed under the Apache License v2.0.
// See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
// for license information.
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
/// \file json.hpp
/// \brief Implements the PJ JSON Parser.
Expand Down
2 changes: 0 additions & 2 deletions include/peejay/json_error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
//* _/ |___/\___/|_| |_| \___|_| |_| \___/|_| *
//* |__/ *
//===----------------------------------------------------------------------===//
//
// Distributed under the Apache License v2.0.
// See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
// for license information.
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
/// \file json_error.hpp
/// \brief Defines the errors that can be returned from the PJ library.
Expand Down
2 changes: 0 additions & 2 deletions include/peejay/null.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
//* |_| |_|\__,_|_|_| *
//* *
//===----------------------------------------------------------------------===//
//
// Distributed under the Apache License v2.0.
// See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
// for license information.
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

/// \file null.hpp
Expand Down
2 changes: 0 additions & 2 deletions include/peejay/pointer_based_iterator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@
//* |_|\__\___|_| \__,_|\__\___/|_| *
//* *
//===----------------------------------------------------------------------===//
//
// Distributed under the Apache License v2.0.
// See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
// for license information.
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
/// \file pointer_based_iterator.hpp
/// \brief Provides peejay::pointer_based_iterator: an iterator wrapper for
Expand Down
2 changes: 0 additions & 2 deletions include/peejay/portab.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
//* | .__/ \___/|_| \__\__,_|_.__/ *
//* |_| *
//===----------------------------------------------------------------------===//
//
// Distributed under the Apache License v2.0.
// See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
// for license information.
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
/// \file portab.hpp
/// \brief A collection of definitions which provide portability between
Expand Down
2 changes: 0 additions & 2 deletions include/peejay/small_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
//* |___/_| |_| |_|\__,_|_|_| \_/ \___|\___|\__\___/|_| *
//* *
//===----------------------------------------------------------------------===//
//
// Distributed under the Apache License v2.0.
// See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
// for license information.
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
/// \file small_vector.hpp
/// \brief Provides a small, normally stack allocated, buffer but which can be
Expand Down
2 changes: 0 additions & 2 deletions include/peejay/stack.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
//* |___/\__\__,_|\___|_|\_\ *
//* *
//===----------------------------------------------------------------------===//
//
// Distributed under the Apache License v2.0.
// See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
// for license information.
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
/// \file stack.hpp
/// \brief Provides peejay::stack, a clone of std::stack but with iterator
Expand Down
2 changes: 0 additions & 2 deletions include/peejay/uinteger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
//* \__,_|_|_| |_|\__\___|\__, |\___|_| *
//* |___/ *
//===----------------------------------------------------------------------===//
//
// Distributed under the Apache License v2.0.
// See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
// for license information.
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
/// \file uinteger.hpp
/// \brief Provides peejay::uinteger which yields the smallest unsigned
Expand Down
2 changes: 0 additions & 2 deletions klee/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
#* \____|_| |_|\__,_|_|\_\___|_____|_|___/\__|___/ *
#* *
#===----------------------------------------------------------------------===//
#
# Distributed under the Apache License v2.0.
# See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
# for license information.
# SPDX-License-Identifier: Apache-2.0
#
#===----------------------------------------------------------------------===//
function (klee_is_available result)
find_program (KLEE_PATH klee)
Expand Down
2 changes: 0 additions & 2 deletions klee/av_assign_count.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
//* \__,_| \_/ \__,_|___/___/_|\__, |_| |_| \___\___/ \__,_|_| |_|\__| *
//* |___/ *
//===----------------------------------------------------------------------===//
//
// Distributed under the Apache License v2.0.
// See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
// for license information.
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
#include <cstddef>

Expand Down
2 changes: 0 additions & 2 deletions klee/av_assign_range.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
//* \__,_| \_/ \__,_|___/___/_|\__, |_| |_| |_| \__,_|_| |_|\__, |\___| *
//* |___/ |___/ *
//===----------------------------------------------------------------------===//
//
// Distributed under the Apache License v2.0.
// See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
// for license information.
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
#include <cstddef>

Expand Down
2 changes: 0 additions & 2 deletions klee/av_ctor_count.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
//* \__,_| \_/ \___|\__\___/|_| \___\___/ \__,_|_| |_|\__| *
//* *
//===----------------------------------------------------------------------===//
//
// Distributed under the Apache License v2.0.
// See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
// for license information.
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
#include <cstddef>

Expand Down
2 changes: 0 additions & 2 deletions klee/av_ctor_count_value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@
//* \_/ \__,_|_|\__,_|\___| *
//* *
//===----------------------------------------------------------------------===//
//
// Distributed under the Apache License v2.0.
// See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
// for license information.
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
#include <cstddef>

Expand Down
2 changes: 0 additions & 2 deletions klee/av_ctor_first_last.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
//* \__,_| \_/ \___|\__\___/|_| |_| |_|_| |___/\__| |_|\__,_|___/\__| *
//* *
//===----------------------------------------------------------------------===//
//
// Distributed under the Apache License v2.0.
// See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
// for license information.
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
#include <cstddef>

Expand Down
2 changes: 0 additions & 2 deletions klee/av_emplace_pos_args.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@
//* \__,_|_| \__, |___/ *
//* |___/ *
//===----------------------------------------------------------------------===//
//
// Distributed under the Apache License v2.0.
// See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
// for license information.
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
#include <cstddef>

Expand Down
2 changes: 0 additions & 2 deletions klee/av_erase_first_last.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
//* \__,_| \_/ \___|_| \__,_|___/\___| |_| |_|_| |___/\__| |_|\__,_|___/\__| *
//* *
//===----------------------------------------------------------------------===//
//
// Distributed under the Apache License v2.0.
// See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
// for license information.
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
#include <cassert>
#include <cstddef>
Expand Down
2 changes: 0 additions & 2 deletions klee/av_erase_pos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
//* \__,_| \_/ \___|_| \__,_|___/\___| | .__/ \___/|___/ *
//* |_| *
//===----------------------------------------------------------------------===//
//
// Distributed under the Apache License v2.0.
// See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
// for license information.
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
#include <cstddef>

Expand Down
2 changes: 0 additions & 2 deletions klee/av_insert_pos_count_lvalue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@
//* \___\___/ \__,_|_| |_|\__| |_| \_/ \__,_|_|\__,_|\___| *
//* *
//===----------------------------------------------------------------------===//
//
// Distributed under the Apache License v2.0.
// See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
// for license information.
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
#include <cstddef>

Expand Down
2 changes: 0 additions & 2 deletions klee/av_insert_pos_first_last.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@
//* |_| |_|_| |___/\__| |_|\__,_|___/\__| *
//* *
//===----------------------------------------------------------------------===//
//
// Distributed under the Apache License v2.0.
// See https://github.com/paulhuggett/peejay/blob/main/LICENSE.TXT
// for license information.
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
#include <cstddef>

Expand Down
Loading

0 comments on commit ae0c4a7

Please sign in to comment.