Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
openfoam
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
331
Issues
331
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Development
openfoam
Commits
916dcc85
Commit
916dcc85
authored
Sep 03, 2020
by
Mark Olesen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: bin/tools/git-find-non-ascii: find non-ASCII chars in source code
parent
0e6df58c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletion
+24
-1
bin/tools/git-find-non-ascii
bin/tools/git-find-non-ascii
+23
-0
bin/tools/git-find-trailingspace
bin/tools/git-find-trailingspace
+1
-1
No files found.
bin/tools/git-find-non-ascii
0 → 100755
View file @
916dcc85
#!/bin/sh
#------------------------------------------------------------------------------
# Script
# git-find-non-ascii
#
# Description
# Use git grep to find source files with non-ASCII characters.
# Use cached files for speed.
#
# C files: .c .h
# C++ files: .C .cc .cpp .cxx .H .hh .hpp .hxx
#
#------------------------------------------------------------------------------
git
grep
--cached
--line-number
-P
'[\x00-\x08\x0E-\x1F\x80-\xFF]'
--
\
'*.[CHch]'
\
'*.cc'
\
'*.hh'
\
'*.[ch]pp'
\
'*.[ch]xx'
#------------------------------------------------------------------------------
bin/tools/git-find-trailingspace
View file @
916dcc85
...
...
@@ -8,6 +8,6 @@
#
#------------------------------------------------------------------------------
git
grep
--count
-P
'\s+$'
--
$@
git
grep
--count
-P
'\s+$'
--
"
$@
"
#------------------------------------------------------------------------------
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment