Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pre-commit(end-of-file-fixer): auto fix py and sh files #273

Merged
merged 1 commit into from
Feb 8, 2025
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ repos:
- id: check-merge-conflict
- id: check-vcs-permalinks
- id: end-of-file-fixer
files: \.(hxx|java|md|mk|pl|pm|ya?ml)$
files: \.(hxx|java|md|mk|pl|pm|py|sh|ya?ml)$
- id: mixed-line-ending
files: ^main/.*\.(c|h)xx$
- repo: https://github.com/codespell-project/codespell
Expand Down
1 change: 0 additions & 1 deletion main/desktop/scripts/unopkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,3 @@ unset XENVIRONMENT
# execute binary
exec "$sd_prog/unopkg.bin" "$@" "$JVMFWKPARAMS" \
"-env:INIFILENAME=vnd.sun.star.pathname:$sd_prog/redirectrc"

Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ cat > /dev/null
[[ "${OUTPATH}" == unxlngx* ]] && mark64="()(64bit)"
echo "libgnomevfs-2.so.0${mark64}"
echo "libgconf-2.so.4${mark64}"

Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@
cat > /dev/null
[[ "${OUTPATH}" == unxlngx* ]] && mark64="()(64bit)"
echo "libfreetype.so.6${mark64}"

1 change: 0 additions & 1 deletion main/odk/pack/copying/addsym-macosx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@
# symbols will erroneously be added to the generated export symbols list file.
awk -v SYMBOLSREGEXP="^__ZTI.*$|^__ZTS.*$" '
match ($6,SYMBOLSREGEXP) > 0 && $6 !~ /_GLOBAL_/ { if (($2 != 1) && ( $2 != "1f" ) ) print $6 }'

1 change: 0 additions & 1 deletion main/pyuno/demo/swriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,3 @@ def insertTextIntoCell( table, cellName, text, color ):
cursor.setPropertyValue( "CharShadowed", uno.Bool(0) )

text.insertString( cursor, " That's all for now!" , 0 )

1 change: 0 additions & 1 deletion main/sal/qa/helper/gcov/gcov_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,3 @@ statistics
# the gcov_resultcompare.pl use two of these files to give out a compare.

# usage: gcov_resultcompare.pl -o realallchecked.txt -c <other>/realallchecked.txt

1 change: 0 additions & 1 deletion main/setup_native/scripts/install_solaris.sh
Original file line number Diff line number Diff line change
Expand Up @@ -381,4 +381,3 @@ fi
echo
echo "Installation done ..."
exit 0

1 change: 0 additions & 1 deletion main/setup_native/scripts/stclient_wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,3 @@ output=`"${STCLIENT}" -a -p "${PRODUCT_NAME}" -e "${PRODUCT_VERSION}" -t ${TARGE
[ "${INSTANCE_URN}" = "" -a ${EXITCODE} -eq 226 ] && exit 0

exit ${EXITCODE}

1 change: 0 additions & 1 deletion main/solenv/bin/addsym-macosx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,3 @@ s#$#$#' | tr '\n' '|' | sed "s#|\$##" >$2
# symbols will erroneously be added to the generated export symbols list file.
awk -v SYMBOLSREGEXP="`cat $2`" '
match ($6,SYMBOLSREGEXP) > 0 && $6 !~ /_GLOBAL_/ { if (($2 != 1) && ( $2 != "1f" ) ) print $6 }'

1 change: 0 additions & 1 deletion main/solenv/bin/addsym-mingw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,3 @@ s#$#$#' | tr '\n' '|' | sed "s#|\$##" >$2
awk -v SYMBOLSREGEXP="`cat $2`" '
match (substr ($1,2) ,SYMBOLSREGEXP) > 0 { print substr ($1,2) ";" }'
fi

1 change: 0 additions & 1 deletion main/solenv/bin/checkdll.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,3 @@ else
fi

exit 0

1 change: 0 additions & 1 deletion main/solenv/inc/lldb4aoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,3 @@ def getinfo_for__ByteStringData( valobj, dict):

def getinfo_for__UniStringData( valobj, dict):
return ret_strdata_info( valobj, 'mnRefCount', 'mnLen', 'maStr')

1 change: 0 additions & 1 deletion main/source_soenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,3 @@ if test -z "${SOLARENV}"; then
echo "$me: error: No environment set!"
exit 1
fi

1 change: 0 additions & 1 deletion main/sysui/desktop/share/create_tree.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,3 @@ mkdir -p ${DESTDIR}/usr/share/applications
for i in `cat launcherlist`; do
ln -sf ${office_root}/share/xdg/$i ${DESTDIR}/usr/share/applications/${PREFIX}-$i
done

1 change: 0 additions & 1 deletion main/testtools/source/bridgetest/pyuno/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,3 @@ def suite( ctx ):
suite.addTest(ImporterTestCase("testStandard",ctx))
suite.addTest(ImporterTestCase("testDynamicComponentRegistration",ctx))
return suite

1 change: 0 additions & 1 deletion main/testtools/source/bridgetest/pyuno/samplecomponent.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,3 @@ def getImplementationName(self):
# ("com.sun.star.test.bridge.PythonTestObject",), \
# SampleUnoComponent) \
# ,

3 changes: 0 additions & 3 deletions main/testtools/source/bridgetest/pyuno/testcomp.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,3 @@

bridgetest = ctx.ServiceManager.createInstanceWithContext( "com.sun.star.test.bridge.BridgeTest", ctx )
#bridgetest.run( "com.sun.star.test.bridge.PythonTestObject" )



1 change: 0 additions & 1 deletion main/toolkit/workben/layout/un-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,3 @@ sed -e 's!^#!@!' < $1\
| sed -e 's! /\*\$\*/!!' \
-e 's!^@!#!' \
-e 's!#define 1 1!#define NON_LAYOUT_COMPILE_FIXES 1!'