Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ repos:
hooks:
- id: check-yaml
- id: end-of-file-fixer
exclude: requirements_lock.txt
exclude: requirements_lock.txt|\.svg$
- id: trailing-whitespace
- id: check-shebang-scripts-are-executable
- id: check-executables-have-shebangs
- id: check-added-large-files
args: [--maxkb=100, --enforce-all] # increase or add git lfs if too strict
exclude: org.eclipse.dash.licenses-1.1.0.jar|blanket_index.html
exclude: org.eclipse.dash.licenses-1.1.0.jar|blanket_index.html$
- repo: https://github.com/google/yamlfmt
rev: 21ca5323a9c87ee37a434e0ca908efc0a89daa07 # v0.21.0
hooks:
Expand All @@ -31,11 +31,13 @@ repos:
rev: a1bb792acda6fd0724936b4ebbdbc8eceb9c0459 # v6.2.0
hooks:
- id: reuse-lint-file
exclude: \.svg$
- repo: local
hooks:
- id: copyright
name: Check and fix copyright headers with cr_checker
entry: cr_checker/tool/pre-commit_wrapper --extensions h hpp c cpp rs rst py sh bzl ini yml yaml BUILD bazel --fix
exclude: \.svg$
# this would be the better language implementation, but struggle with python tooling
# language: python
language: script
Expand Down
5 changes: 4 additions & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ copyright_checker(
"python_basics",
"starpls",
"tools",
"plantuml",
"lobster_bazel",
"bazel",
"manual_analysis",
"plantuml",
"validation",

# Add other directories/files you want to check
],
Expand Down
13 changes: 13 additions & 0 deletions bazel/rules/rules_score/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
<!-- ----------------------------------------------------------------------------
Copyright (c) 2026 Contributors to the Eclipse Foundation

See the NOTICE file(s) distributed with this work for additional
information regarding copyright ownership.

This program and the accompanying materials are made available under the
terms of the Apache License Version 2.0 which is available at
https://www.apache.org/licenses/LICENSE-2.0

SPDX-License-Identifier: Apache-2.0
----------------------------------------------------------------------------- -->

# Rules Score

Starlark rules implementing the **S-CORE** functional-safety development process
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
' *******************************************************************************
' Copyright (c) 2026 Contributors to the Eclipse Foundation
'
' See the NOTICE file(s) distributed with this work for additional
' information regarding copyright ownership.
'
' This program and the accompanying materials are made available under the
' terms of the Apache License Version 2.0 which is available at
' https://www.apache.org/licenses/LICENSE-2.0
'
' SPDX-License-Identifier: Apache-2.0
' *******************************************************************************

@startuml

!include ../../../../../../../plantuml/fta_metamodel.puml
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
' *******************************************************************************
' Copyright (c) 2026 Contributors to the Eclipse Foundation
'
' See the NOTICE file(s) distributed with this work for additional
' information regarding copyright ownership.
'
' This program and the accompanying materials are made available under the
' terms of the Apache License Version 2.0 which is available at
' https://www.apache.org/licenses/LICENSE-2.0
'
' SPDX-License-Identifier: Apache-2.0
' *******************************************************************************

' *******************************************************************************
' Copyright (c) {year} Contributors to the Eclipse Foundation
'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
<!-- ----------------------------------------------------------------------------
Copyright (c) 2026 Contributors to the Eclipse Foundation

See the NOTICE file(s) distributed with this work for additional
information regarding copyright ownership.

This program and the accompanying materials are made available under the
terms of the Apache License Version 2.0 which is available at
https://www.apache.org/licenses/LICENSE-2.0

SPDX-License-Identifier: Apache-2.0
----------------------------------------------------------------------------- -->

# Safety Analysis

This document shows the workflow and the interrelation on how to document an FMEA in TRLC / PlantUml / Lobster.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
' *******************************************************************************
' Copyright (c) 2026 Contributors to the Eclipse Foundation
'
' See the NOTICE file(s) distributed with this work for additional
' information regarding copyright ownership.
'
' This program and the accompanying materials are made available under the
' terms of the Apache License Version 2.0 which is available at
' https://www.apache.org/licenses/LICENSE-2.0
'
' SPDX-License-Identifier: Apache-2.0
' *******************************************************************************

@startuml unit_1_class_diagram

namespace unit_1 {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
' *******************************************************************************
' Copyright (c) 2026 Contributors to the Eclipse Foundation
'
' See the NOTICE file(s) distributed with this work for additional
' information regarding copyright ownership.
'
' This program and the accompanying materials are made available under the
' terms of the Apache License Version 2.0 which is available at
' https://www.apache.org/licenses/LICENSE-2.0
'
' SPDX-License-Identifier: Apache-2.0
' *******************************************************************************

@startuml unit_2_class_diagram

namespace unit_1 {
Expand Down
13 changes: 13 additions & 0 deletions bazel/rules/rules_score/private/sphinx_module.bzl
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# *******************************************************************************
# Copyright (c) 2026 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

load("//bazel/rules/rules_score:providers.bzl", "SphinxModuleInfo", "SphinxNeedsInfo")

# ======================================================================================
Expand Down
13 changes: 13 additions & 0 deletions bazel/rules/rules_score/rules_score.bzl
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# *******************************************************************************
# Copyright (c) 2026 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

load(
"//bazel/rules/rules_score:providers.bzl",
_ComponentInfo = "ComponentInfo",
Expand Down
13 changes: 13 additions & 0 deletions bazel/rules/rules_score/sphinx_toolchain.bzl
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# *******************************************************************************
# Copyright (c) 2026 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

SphinxInfo = provider(
doc = "Provider for Sphinx Toolchain",
fields = {
Expand Down
13 changes: 13 additions & 0 deletions bazel/rules/rules_score/src/sphinx_html_merge.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
#!/usr/bin/env python3
# *******************************************************************************
# Copyright (c) 2026 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

"""Merge multiple Sphinx HTML output directories.

This script merges Sphinx HTML documentation from multiple modules into a single
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
.. *******************************************************************************
.. Copyright (c) 2025 Contributors to the Eclipse Foundation
..
.. See the NOTICE file(s) distributed with this work for additional
.. information regarding copyright ownership.
..
.. This program and the accompanying materials are made available under the
.. terms of the Apache License Version 2.0 which is available at
.. https://www.apache.org/licenses/LICENSE-2.0
..
.. SPDX-License-Identifier: Apache-2.0
.. *******************************************************************************
# *******************************************************************************
# Copyright (c) 2026 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

Dependable element: {title}
===================={underline}
Expand Down
14 changes: 14 additions & 0 deletions bazel/rules/rules_score/templates/fmea.template.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
..
# *******************************************************************************
# Copyright (c) 2026 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

{title}
{underline}

Expand Down
15 changes: 11 additions & 4 deletions cli_helper/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
<!--
Copyright (c) 2026 Contributors to the Eclipse Foundation
<!-- ----------------------------------------------------------------------------
Copyright (c) 2026 Contributors to the Eclipse Foundation

SPDX-License-Identifier: Apache-2.0
-->
See the NOTICE file(s) distributed with this work for additional
information regarding copyright ownership.

This program and the accompanying materials are made available under the
terms of the Apache License Version 2.0 which is available at
https://www.apache.org/licenses/LICENSE-2.0

SPDX-License-Identifier: Apache-2.0
----------------------------------------------------------------------------- -->

# CLI Helper

Expand Down
15 changes: 11 additions & 4 deletions cr_checker/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
<!--
Copyright (c) 2026 Contributors to the Eclipse Foundation
<!-- ----------------------------------------------------------------------------
Copyright (c) 2026 Contributors to the Eclipse Foundation

SPDX-License-Identifier: Apache-2.0
-->
See the NOTICE file(s) distributed with this work for additional
information regarding copyright ownership.

This program and the accompanying materials are made available under the
terms of the Apache License Version 2.0 which is available at
https://www.apache.org/licenses/LICENSE-2.0

SPDX-License-Identifier: Apache-2.0
----------------------------------------------------------------------------- -->

# CopyRight Checker

Expand Down
28 changes: 27 additions & 1 deletion cr_checker/resources/templates.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
[cpp,c,h,hpp]
[cpp,c,h,hpp,trlc,rsl]
/********************************************************************************
* Copyright (c) {year} {author}
*
Expand Down Expand Up @@ -63,3 +63,29 @@
//
// SPDX-License-Identifier: Apache-2.0
// *******************************************************************************
[puml]
' *******************************************************************************
' Copyright (c) {year} Contributors to the Eclipse Foundation
'
' See the NOTICE file(s) distributed with this work for additional
' information regarding copyright ownership.
'
' This program and the accompanying materials are made available under the
' terms of the Apache License Version 2.0 which is available at
' https://www.apache.org/licenses/LICENSE-2.0
'
' SPDX-License-Identifier: Apache-2.0
' *******************************************************************************
[md]
<!-- ----------------------------------------------------------------------------
Copyright (c) {year} {author}

See the NOTICE file(s) distributed with this work for additional
information regarding copyright ownership.

This program and the accompanying materials are made available under the
terms of the Apache License Version 2.0 which is available at
https://www.apache.org/licenses/LICENSE-2.0

SPDX-License-Identifier: Apache-2.0
----------------------------------------------------------------------------- -->
Loading
Loading