Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
bc38aac9
Commit
bc38aac9
authored
2 years ago
by
Patrick Baudin
Browse files
Options
Downloads
Patches
Plain Diff
[lint] minor
parent
8417372e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
share/Makefile.linting
+8
-8
8 additions, 8 deletions
share/Makefile.linting
with
8 additions
and
8 deletions
share/Makefile.linting
+
8
−
8
View file @
bc38aac9
...
@@ -29,13 +29,13 @@
...
@@ -29,13 +29,13 @@
# - make check-eoleof: EOF preceded by an EOL
# - make check-eoleof: EOF preceded by an EOL
# - make check-syntax: EOF preceded by an EOL + no TAB + no BLANK at the end
# - make check-syntax: EOF preceded by an EOL + no TAB + no BLANK at the end
# - make check-indent: valid indentation
# - make check-indent: valid indentation
# For all these targets (and the coresponding fix-XXX), it is possible to restrict the search to a sub-directory:
# For all these targets (and the cor
r
esponding fix-XXX), it is possible to restrict the search to a sub-directory:
# - make LINT_DIR=<subdir> <lint-target>
# - make LINT_DIR=<subdir> <lint-target>
# It is possible to force the action to given files:
# It is possible to force the action to given files:
# - make LINT_FILE=<
subdir
> <lint-target>
# - make LINT_FILE=<
file
> <lint-target>
# Notes:
# Notes:
# - when LINT_FILE is given, .gitattributes and LINT_DIR are ignored;
# - when LINT_FILE is given, .gitattributes and LINT_DIR are ignored;
# - to use fix-utf8 target, the variable LINT_FROM_COD
E
=<from-encoding-name>
# - to use fix-utf8 target, the variable LINT_FROM_
EN
COD
ING
=<from-encoding-name>
# has to be set.
# has to be set.
# make clean-lint (removing linting targets) includes
# make clean-lint (removing linting targets) includes
...
@@ -234,21 +234,21 @@ $(LINT_FILE.check-utf8): .lint/%.check-utf8: %
...
@@ -234,21 +234,21 @@ $(LINT_FILE.check-utf8): .lint/%.check-utf8: %
if
!
$(
IS_UTF8
)
$<
>
/dev/null
;
\
if
!
$(
IS_UTF8
)
$<
>
/dev/null
;
\
then
\
then
\
echo
"File
$<
uses an invalid UTF-8 encoding."
;
\
echo
"File
$<
uses an invalid UTF-8 encoding."
;
\
echo
"Please fixe it manualy or in running: make LINT_FROM_COD
E
=<ENCODING-NAME> LINT_FILE=
$<
fix-utf8"
;
\
echo
"Please fixe it manualy or in running: make LINT_FROM_
EN
COD
ING
=<ENCODING-NAME> LINT_FILE=
$<
fix-utf8"
;
\
echo
"The next command may help you to find that <ENCODING-NAME>: file
$<
"
;
\
echo
"The next command may help you to find that <ENCODING-NAME>: file
$<
"
;
\
exit
1
;
\
exit
1
;
\
fi
fi
$(
MKDIR
)
$(
dir
$@
)
$(
MKDIR
)
$(
dir
$@
)
$(
TOUCH
)
$@
$(
TOUCH
)
$@
ifneq
($(LINT_FROM_COD
E
),)
ifneq
($(LINT_FROM_
EN
COD
ING
),)
.PHONY
:
$(LINT_FILE.fix-utf8)
.PHONY
:
$(LINT_FILE.fix-utf8)
$(LINT_FILE.fix-utf8)
:
.lint/%.fix-utf8: %
$(LINT_FILE.fix-utf8)
:
.lint/%.fix-utf8: %
if
!
$(
IS_UTF8
)
$<
>
/dev/null 2> /dev/null
;
\
if
!
$(
IS_UTF8
)
$<
>
/dev/null 2> /dev/null
;
\
then
\
then
\
echo
"Fixes UTF8 (from
$(
LINT_FROM_COD
E
)
):
$<
"
;
\
echo
"Fixes UTF8 (from
$(
LINT_FROM_
EN
COD
ING
)
):
$<
"
;
\
if
!
$(
TO_UTF8
)
$(
LINT_FROM_COD
E
)
$<
>
$<
.tmp
;
then
exit
1
;
fi
;
\
if
!
$(
TO_UTF8
)
$(
LINT_FROM_
EN
COD
ING
)
$<
>
$<
.tmp
;
then
exit
1
;
fi
;
\
$(
MV
)
$<
.tmp
$<
;
\
$(
MV
)
$<
.tmp
$<
;
\
fi
fi
$(
MKDIR
)
$(
dir
$@
)
$(
MKDIR
)
$(
dir
$@
)
...
@@ -257,7 +257,7 @@ $(LINT_FILE.fix-utf8): .lint/%.fix-utf8: %
...
@@ -257,7 +257,7 @@ $(LINT_FILE.fix-utf8): .lint/%.fix-utf8: %
else
else
$(LINT_FILE.fix-utf8)
:
.lint/%.fix-utf8: % .lint/check-ocp-indent-version
$(LINT_FILE.fix-utf8)
:
.lint/%.fix-utf8: % .lint/check-ocp-indent-version
$(
error
"Target fix-utf8 requires to define LINT_FROM_COD
E
variable"
)
$(
error
"Target fix-utf8 requires to define LINT_FROM_
EN
COD
ING
variable"
)
endif
# LINT_FROM_ENCODING
endif
# LINT_FROM_ENCODING
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment