From 0030857b990795ef1022809f812e5c31c1366bbf Mon Sep 17 00:00:00 2001 From: Pascal Obry Date: Thu, 25 Mar 2010 14:21:10 +0100 Subject: [PATCH] Disable tabulation check on makefile. On makefile tabulation is mandatory. We disable this check for this language. --- regtests/makefile | 2 ++ regtests/out19.out | 1 + src/languages-makefile.adb | 1 + 3 files changed, 4 insertions(+) create mode 100644 regtests/out19.out diff --git a/regtests/makefile b/regtests/makefile index a389cf3..9b8c5e2 100644 --- a/regtests/makefile +++ b/regtests/makefile @@ -35,6 +35,7 @@ run_tests: -../style_checker -Ha withtab.adb >> out18.res 2>&1 -echo A >> out18.res -../style_checker -HA withtab.adb >> out18.res 2>&1 + -../style_checker -C makefile > out19.res 2>&1 check_results: echo "### regressions follows" @@ -57,6 +58,7 @@ check_results: -diff -wc out16.out out16.res || echo $$? >> out_status.res -diff -wc out17.out out17.res || echo $$? >> out_status.res -diff -wc out18.out out18.res || echo $$? >> out_status.res + -diff -wc out19.out out19.res || echo $$? >> out_status.res test ! -e out_status.res clean: diff --git a/regtests/out19.out b/regtests/out19.out new file mode 100644 index 0000000..7a445ce --- /dev/null +++ b/regtests/out19.out @@ -0,0 +1 @@ +makefile:1: missing file header (must start on first line) diff --git a/src/languages-makefile.adb b/src/languages-makefile.adb index c409621..0c8d94f 100644 --- a/src/languages-makefile.adb +++ b/src/languages-makefile.adb @@ -46,4 +46,5 @@ package body Languages.Makefile is begin Register (Handler, "Makefile"); + Set_Tabulation (Get_From_Name ("Makefile"), Checks.Accepted); end Languages.Makefile; -- 2.11.4.GIT