Skip to content

Commit

Permalink
fixing parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
leogdion committed Feb 4, 2025
1 parent fffbcb4 commit 5e9dea9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/update-settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ jobs:
- name: Check for changes
id: check_changes
run: |
# Delete temporary help files
rm help-hidden.txt frontend-help-hidden.txt
if [ -n "$(git status --porcelain)" ]; then
echo "changes=true" >> $GITHUB_OUTPUT
else
Expand Down
2 changes: 1 addition & 1 deletion Scripts/soundness/docc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ extract_struct_names() {
local dir=$1
local recursive=$2
local maxdepth_arg=${recursive:+""} ${recursive:-"-maxdepth 1"}
find "$dir" $maxdepth_arg -name "*.swift" -exec grep -h "^public struct" {} \; | sed 's/public struct \([^:]*\).*/- ``\1``/' | sort
find "$dir" $maxdepth_arg -name "*.swift" -exec basename {} .swift \; | sed 's/\(.*\)/- ``\1``/' | sort
}

# Create temporary file
Expand Down
3 changes: 2 additions & 1 deletion Scripts/soundness/features.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ create_feature_file() {

# Ensure period_pos is a valid number
if [[ "$period_pos" =~ ^[0-9]+$ ]] && [ "$period_pos" -gt 0 ]; then
echo "/// ${line:0:period_pos}"
echo "/// ${line:0:period_pos}."
echo "///"
echo "///"
if [ "${#line}" -gt "$period_pos" ]; then
echo "/// ${line:period_pos+1}"
Expand Down

0 comments on commit 5e9dea9

Please sign in to comment.