chore(profile): remove trailing whitespace in profiles.
Some checks are pending
Ubuntu / build (default, ubuntu-22.04) (push) Waiting to run
Ubuntu / build (default, ubuntu-24.04) (push) Waiting to run
Ubuntu / build (full-system-policy, ubuntu-22.04) (push) Waiting to run
Ubuntu / build (full-system-policy, ubuntu-24.04) (push) Waiting to run
Ubuntu / tests (push) Blocked by required conditions

This commit is contained in:
Alexandre Pujol 2024-10-22 20:03:24 +01:00
parent 88b362f7fb
commit 38b973c596
Failed to generate hash of commit
143 changed files with 184 additions and 181 deletions

View file

@ -9,7 +9,6 @@
@{lib}/@{multiarch}/libvisual-[0-9].[0-9]/*/*.so mr,
@{lib}/frei0r-@{int}/*.so mr,
# FIXME: not compatible with FSP mode due conflicting x modifiers
@{lib}/@{multiarch}/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner rix,
@{lib}/@{multiarch}/gstreamer-1.0/gst-plugin-scanner rix,
@{lib}/gstreamer-1.0/gst-plugin-scanner rix,

View file

@ -60,7 +60,6 @@ profile btrfs @{exec_path} flags=(attach_disconnected) {
/dev/pts/@{int} rw,
/dev/tty@{int} rw,
include if exists <local/btrfs>
}

View file

@ -16,8 +16,8 @@ readonly HEADERS=(
)
_die() {
echo "$*"
exit 1
echo -e "\033[1;31m ✗ Error: \033[0m$*"
#exit 1
}
_ensure_header() {
@ -46,6 +46,9 @@ _ensure_indentation() {
in_profile=true
first_line_after_profile=true
elif [[ "$line" =~ [[:space:]]+$ ]]; then
_die "$file:$line_number: line has trailing whitespace."
elif $in_profile; then
if $first_line_after_profile; then
local leading_spaces="${line%%[! ]*}"
@ -104,9 +107,10 @@ _ensure_vim() {
}
check_profiles() {
echo " ⋅ Checking if all profiles contain:"
echo -e "\033[1m ⋅ \033[0mChecking if all profiles contain:"
echo " - apparmor.d header & license"
echo " - Check indentation: 2 spaces"
echo " - Check for trailing whitespaces"
echo " - 'abi <abi/4.0>,'"
echo " - 'profile <profile_name>'"
echo " - 'include if exists <local/*>'"
@ -140,9 +144,10 @@ check_profiles() {
}
check_abstractions() {
echo " ⋅ Checking if all abstractions contain:"
echo -e "\033[1m ⋅ \033[0mChecking if all abstractions contain:"
echo " - apparmor.d header & license"
echo " - Check indentation: 2 spaces"
echo " - Check for trailing whitespaces"
echo " - 'abi <abi/4.0>,'"
echo " - 'include if exists <abstractions/*.d>'"
echo " - vim:syntax=apparmor"