Skip to content

Commit

Permalink
Merge pull request #49 from jhlegarreta/AddContentToClangFormatLinter…
Browse files Browse the repository at this point in the history
…GHAFile

ENH: Add actual content to `clang-format` linter GHA workflow file
  • Loading branch information
jhlegarreta authored Nov 26, 2024
2 parents bec32f3 + 8fd4afd commit 67a91c0
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 17 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/clang-format-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: clang-format linter

on: [push,pull_request]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: InsightSoftwareConsortium/ITKClangFormatLinterAction@master
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#define itkCannyEdgesDistanceAdvectionFieldFeatureGenerator_hxx



namespace itk
{

Expand Down
1 change: 0 additions & 1 deletion include/itkCannyEdgesDistanceFeatureGenerator.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#define itkCannyEdgesDistanceFeatureGenerator_hxx



namespace itk
{

Expand Down
1 change: 0 additions & 1 deletion include/itkCannyEdgesFeatureGenerator.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#define itkCannyEdgesFeatureGenerator_hxx



namespace itk
{

Expand Down
1 change: 0 additions & 1 deletion include/itkDescoteauxSheetnessFeatureGenerator.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#define itkDescoteauxSheetnessFeatureGenerator_hxx



namespace itk
{

Expand Down
1 change: 0 additions & 1 deletion include/itkFeatureGenerator.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#define itkFeatureGenerator_hxx



namespace itk
{

Expand Down
1 change: 0 additions & 1 deletion include/itkFrangiTubularnessFeatureGenerator.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#define itkFrangiTubularnessFeatureGenerator_hxx



namespace itk
{

Expand Down
1 change: 0 additions & 1 deletion include/itkSatoLocalStructureFeatureGenerator.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#define itkSatoLocalStructureFeatureGenerator_hxx



namespace itk
{

Expand Down
1 change: 0 additions & 1 deletion include/itkSegmentationModule.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#define itkSegmentationModule_hxx



namespace itk
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ itkCannyEdgesDistanceAdvectionFieldFeatureGeneratorTest1(int argc, char * argv[]
CannyEdgesDistanceAdvectionFieldFeatureGeneratorType::Pointer featureGenerator =
CannyEdgesDistanceAdvectionFieldFeatureGeneratorType::New();

ITK_EXERCISE_BASIC_OBJECT_METHODS(featureGenerator, CannyEdgesDistanceAdvectionFieldFeatureGenerator, FeatureGenerator);
ITK_EXERCISE_BASIC_OBJECT_METHODS(
featureGenerator, CannyEdgesDistanceAdvectionFieldFeatureGenerator, FeatureGenerator);


InputImageSpatialObjectType::Pointer inputObject = InputImageSpatialObjectType::New();
Expand Down
4 changes: 2 additions & 2 deletions test/itkLesionSegmentationMethodTest10.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ itkLesionSegmentationMethodTest10(int argc, char * argv[])
SegmentationModuleType::Pointer segmentationModule = SegmentationModuleType::New();

ITK_EXERCISE_BASIC_OBJECT_METHODS(segmentationModule,
FastMarchingAndGeodesicActiveContourLevelSetSegmentationModule,
SinglePhaseLevelSetSegmentationModule);
FastMarchingAndGeodesicActiveContourLevelSetSegmentationModule,
SinglePhaseLevelSetSegmentationModule);

double maximumRMSError = 0.0002;
if (argc > 7)
Expand Down
4 changes: 2 additions & 2 deletions test/itkLesionSegmentationMethodTest7.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ itkLesionSegmentationMethodTest7(int argc, char * argv[])
SegmentationModuleType::Pointer segmentationModule = SegmentationModuleType::New();

ITK_EXERCISE_BASIC_OBJECT_METHODS(segmentationModule,
FastMarchingAndGeodesicActiveContourLevelSetSegmentationModule,
SinglePhaseLevelSetSegmentationModule);
FastMarchingAndGeodesicActiveContourLevelSetSegmentationModule,
SinglePhaseLevelSetSegmentationModule);


double maximumRMSError = 0.0002;
Expand Down
4 changes: 2 additions & 2 deletions test/itkLesionSegmentationMethodTest8.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ itkLesionSegmentationMethodTest8(int argc, char * argv[])
SegmentationModuleType::Pointer segmentationModule = SegmentationModuleType::New();

ITK_EXERCISE_BASIC_OBJECT_METHODS(segmentationModule,
FastMarchingAndGeodesicActiveContourLevelSetSegmentationModule,
SinglePhaseLevelSetSegmentationModule);
FastMarchingAndGeodesicActiveContourLevelSetSegmentationModule,
SinglePhaseLevelSetSegmentationModule);

double maximumRMSError = 0.0002;
if (argc > 7)
Expand Down
4 changes: 2 additions & 2 deletions test/itkLesionSegmentationMethodTest9.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ itkLesionSegmentationMethodTest9(int argc, char * argv[])
SegmentationModuleType::Pointer segmentationModule = SegmentationModuleType::New();

ITK_EXERCISE_BASIC_OBJECT_METHODS(segmentationModule,
FastMarchingAndGeodesicActiveContourLevelSetSegmentationModule,
SinglePhaseLevelSetSegmentationModule);
FastMarchingAndGeodesicActiveContourLevelSetSegmentationModule,
SinglePhaseLevelSetSegmentationModule);


double maximumRMSError = 0.0002;
Expand Down

0 comments on commit 67a91c0

Please sign in to comment.