Skip to content
Open
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 _bazel_build_current_pkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if [ -n "$PACKAGE" ]; then
bazel build //$PACKAGE:all \
--output_filter= \
--strip=never \
--platforms=//:gcc9-x86_64 \
--platforms=//:gcc11-x86_64 \
--config=strict_gcc
else
echo "Error: can't find package for $FILE_PATH file."
Expand Down
9 changes: 0 additions & 9 deletions _bazel_build_html_requirements.sh

This file was deleted.

21 changes: 0 additions & 21 deletions _bazel_clang_reformat_current_pkg.sh

This file was deleted.

5 changes: 5 additions & 0 deletions _bazel_fix_current_pkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,16 @@ else
echo "Error: The script shall be called with '\$FilePathRelativeToProjectRoot\$' as parameter."
exit 1
fi
if [[ -n "$1" ]]; then
CHECKER="$1"
Copy link

Copilot AI Aug 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be CHECKER="$2" to correctly capture the checker parameter, since $1 is already used for FILE_PATH.

Copilot uses AI. Check for mistakes.
shift
fi

if [ -n "$PACKAGE" ]; then
PACKAGE_NAME=${PACKAGE##*/}
set -ex
bazel run --ui_event_filters=-info --run_under="cd $(pwd) &&" @apex//tools/repo:repo.fix -- \
$CHECKER \
//$PACKAGE:all
else
echo "Error: can't find package for $FILE_PATH file."
Expand Down
143 changes: 58 additions & 85 deletions customization.xml

Large diffs are not rendered by default.

Binary file removed icons/Allocation_Analyzer.png
Binary file not shown.
Binary file removed icons/CPPLint.png
Binary file not shown.
Binary file removed icons/Colcon_BuildPkg.png
Binary file not shown.
Binary file removed icons/Colcon_BuildUpTo.png
Binary file not shown.
Binary file removed icons/Colcon_BuildUpTo.xcf
Binary file not shown.
Binary file removed icons/Colcon_TestPkg.png
Binary file not shown.
Binary file removed icons/Copyright.png
Binary file not shown.
Binary file removed icons/Identify_test_uid.png
Binary file not shown.
Binary file removed icons/LintCmake.png
Binary file not shown.
Binary file removed icons/PCLint.png
Binary file not shown.
Binary file removed icons/RetestUntilFail.png
Binary file not shown.
Binary file removed icons/VC_CoveragePkg.png
Binary file not shown.
131 changes: 32 additions & 99 deletions tools/External Tools.xml
Original file line number Diff line number Diff line change
@@ -1,156 +1,89 @@
<toolSet name="External Tools">
<tool name="Copyright" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="ament_copyright " />
<option name="PARAMETERS" value="$FilePath$" />
<option name="WORKING_DIRECTORY" value="$FileDir$" />
</exec>
</tool>
<tool name="Lint Cmake" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="ament_lint_cmake" />
<option name="PARAMETERS" value="$FilePath$" />
<option name="WORKING_DIRECTORY" value="$FileDir$" />
</exec>
</tool>
<tool name="Doc linters" description="Run apex_doc_lint" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="../.doc_scripts/apex_doc_lint" />
<option name="PARAMETERS" value="--ci --symlinks --spelling --md" />
<option name="WORKING_DIRECTORY" value="$WorkspaceRoot$" />
</exec>
</tool>
<tool name="Doc linters Bazel" description="Run apex_doc_lint" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="bazel" />
<option name="PARAMETERS" value="run --ui_event_filters=-info --run_under=&quot;cd $ProjectFileDir$/.. &amp;&amp;&quot; //apex_internal/tools/apex_doc_tools:apex_doc lint -- --path $FilePathRelativeToProjectRoot$ check" />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$/.." />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$" />
</exec>
</tool>
<tool name="Axivion Bazel" description="Run Axivion on currently loaded package" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<tool name="Axivion Check" description="Run Axivion on currently loaded package" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="$APPLICATION_CONFIG_DIR$/settingsRepository/repository/_bazel_sca_current_pkg.sh" />
<option name="PARAMETERS" value="$FilePathRelativeToProjectRoot$" />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$/.." />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$" />
</exec>
<filter>
<option name="NAME" value="No name" />
<option name="DESCRIPTION" />
<option name="REGEXP" value=".*$FILE_PATH$:$LINE$.*" />
</filter>
</tool>
<tool name="Bazel check package" description="Run bazel repo.check on currently loaded package" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<tool name="Repo check package" description="Run bazel repo.check on currently loaded package" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="$APPLICATION_CONFIG_DIR$/settingsRepository/repository/_bazel_check_current_pkg.sh" />
<option name="PARAMETERS" value="$FilePathRelativeToProjectRoot$" />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$/.." />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$" />
</exec>
<filter>
<option name="NAME" value="No name" />
<option name="DESCRIPTION" />
<option name="REGEXP" value=".*$FILE_PATH$:$LINE$.*" />
</filter>
</tool>
<tool name="Bazel fix package" description="Run bazel repo.fix on currently loaded package" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<tool name="Repo fix package" description="Run bazel repo.fix on currently loaded package" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="$APPLICATION_CONFIG_DIR$/settingsRepository/repository/_bazel_fix_current_pkg.sh" />
<option name="PARAMETERS" value="$FilePathRelativeToProjectRoot$" />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$/.." />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$" />
</exec>
<filter>
<option name="NAME" value="No name" />
<option name="DESCRIPTION" />
<option name="REGEXP" value=".*$FILE_PATH$:$LINE$.*" />
</filter>
</tool>
<tool name="CPPLint" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="ament_cpplint" />
<option name="PARAMETERS" value="$FilePath$" />
<option name="WORKING_DIRECTORY" value="$FileDir$" />
</exec>
</tool>
<tool name="Uncrustify" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="ament_uncrustify " />
<option name="PARAMETERS" value="$FilePath$ --reformat" />
<option name="WORKING_DIRECTORY" value="$FileDir$" />
</exec>
</tool>
<tool name="Clang Reformat" description="Run ament_clang_format with --reformat option and local or global .clang-format config" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="_apex_clion_clang_reformat" />
<option name="PARAMETERS" value="$FilePath$ $CMakeCurrentLocalBuildDir$" />
<option name="WORKING_DIRECTORY" value="$FileDir$" />
</exec>
</tool>
<tool name="Clang Reformat Bazel" description="Run ament_clang_format with --reformat option and local or global .clang-format config" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<tool name="Uncrustify package" description="Run bazel repo.fix --checker=uncrustify on currently loaded package" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="$APPLICATION_CONFIG_DIR$/settingsRepository/repository/_bazel_clang_reformat_current_pkg.sh" />
<option name="PARAMETERS" value="$FilePathRelativeToProjectRoot$" />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$/.." />
<option name="COMMAND" value="$APPLICATION_CONFIG_DIR$/settingsRepository/repository/_bazel_fix_current_pkg.sh" />
<option name="PARAMETERS" value="$FilePathRelativeToProjectRoot$ --checker=uncrustify" />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$" />
</exec>
<filter>
<option name="NAME" value="No name" />
<option name="DESCRIPTION" />
<option name="REGEXP" value=".*$FILE_PATH$:$LINE$.*" />
</filter>
</tool>
<tool name="Build Current" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<tool name="Clang Reformat package" description="Run bazel repo.fix --checker=clang-format on currently loaded package" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="colcon" />
<option name="PARAMETERS" value="build --packages-select $ProjectName$" />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$/.." />
<option name="COMMAND" value="$APPLICATION_CONFIG_DIR$/settingsRepository/repository/_bazel_fix_current_pkg.sh" />
<option name="PARAMETERS" value="$FilePathRelativeToProjectRoot$ --checker=clang-format" />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$" />
</exec>
<filter>
<option name="NAME" value="No name" />
<option name="DESCRIPTION" />
<option name="REGEXP" value=".*$FILE_PATH$:$LINE$.*" />
</filter>
</tool>
<tool name="Build Current Bazel" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<tool name="Build Current package" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="$APPLICATION_CONFIG_DIR$/settingsRepository/repository/_bazel_build_current_pkg.sh" />
<option name="PARAMETERS" value="$FilePathRelativeToProjectRoot$" />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$/.." />
</exec>
</tool>
<tool name="Build Up To Current" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="colcon" />
<option name="PARAMETERS" value="build --packages-up-to $ProjectName$" />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$/.." />
</exec>
</tool>
<tool name="Test Current" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="_apex_clion_test" />
<option name="PARAMETERS" value="$ProjectName$" />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$/.." />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$" />
</exec>
</tool>
<tool name="Test Current Bazel" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<tool name="Test Current package" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="$APPLICATION_CONFIG_DIR$/settingsRepository/repository/_bazel_test_current_pkg.sh" />
<option name="PARAMETERS" value="$FilePathRelativeToProjectRoot$" />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$/.." />
</exec>
</tool>
<tool name="Insert and verify test id(s) Current" description="Insert and verify the unique test id" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="identify_test_uid" />
<option name="PARAMETERS" value="insert $FilePath$" />
<option name="WORKING_DIRECTORY" value="$FileDir$" />
</exec>
</tool>
<tool name="VectorCAST coverage Current" description="Create VectorCAST coverage report on currently loaded package" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="_apex_clion_vc_coverage" />
<option name="PARAMETERS" value="$ProjectName$" />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$/.." />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$" />
</exec>
</tool>
<tool name="Generate requirements report" description="Build the html pages containing requirements" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="$APPLICATION_CONFIG_DIR$/settingsRepository/repository/_bazel_build_html_requirements.sh" />
<option name="PARAMETERS" />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$/.." />
</exec>
</tool>
<tool name="Allocation Analyzer" description="Run Alloc analyzer on current project + current target" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="allocation_analyzer" />
<option name="PARAMETERS" value="$ProjectName$ $CMakeCurrentTargetName$ --gui" />
<option name="COMMAND" value="$APPLICATION_CONFIG_DIR$/settingsRepository/repository/_bazel_build_current_pkg.sh" />
<option name="PARAMETERS" value="doc/internal/req" />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$" />
</exec>
</tool>
Expand All @@ -168,4 +101,4 @@
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$" />
</exec>
</tool>
</toolSet>
</toolSet>