formatting and yml

7 jobs for master in 53 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Analysis
failed #25373
check_formatting

00:00:16

passed #25375
run_cppcheck

00:00:21

failed #25374
run_cpplint

00:00:15

 
  Build
skipped #25376
build_programs
 
  Test
skipped #25377
quote_tests
 
  Coverage
skipped #25378
code_coverage
 
  Deploy
skipped #25379
pages
 
Name Stage Failure
failed
run_cpplint Analysis
./Grid.h:4:  Do not use namespace using-directives.  Use using-declarations instead.  [build/namespaces] [5]
./Grid.h:7: public: should be indented +1 space inside class Grid [whitespace/indent] [3]
./Grid.h:15: private: should be indented +1 space inside class Grid [whitespace/indent] [3]
./Grid.h:11: Add #include <utility> for move [build/include_what_you_use] [4]
Done processing ./Moves.h
Done processing ./Entity.h
Done processing ./Grid.h
Total errors found: 19
ERROR: Job failed: exit code 1
failed
check_formatting Analysis
-  int GridRows = 4, GridColumns = 4;
- display.printGrid(GridRows, GridColumns);
+ Grid display;
+ int GridRows = 4, GridColumns = 4;
+ display.printGrid(GridRows, GridColumns);
}
$ if [ ! -z "$linter_errors" ]; then echo "Detected formatting issues; please fix"; exit 1; else echo "Formatting is correct"; exit 0; fi
Detected formatting issues; please fix
ERROR: Job failed: exit code 1