Comments (1)
Current ruff draft:
### CUT HERE <<<<<< -> when adding case statement
# Prompt for single-line beginning comment character(s)
echo -e "Enter single-line beginning comment character(s) to use\n (example: # // -- ' ! s !* -- // % ;; /* <!-- <!--- {- /** --[[ %{ (* <# ):"
read BEGIN_COMMENT_CHAR
#
if [ -z ${BEGIN_COMMENT_CHAR} ] ; then
display_help
echo -e "${0} ${LINENO} [ERROR]: Single-line comment character(s) is required.\n" 1>&2
exit 1
fi
###
# >>> This test code will need to be placed in the for loop so each file will use or prompt for the correct single-line beginning comment
# >>> create a case statement if other non-extension files like dockerfile need support
# >>> Add support for dockerfile ('#') before prompt for single-line beginning comment character
# if [ "${FILE_RELEASE}" == "dockerfile" ] ; then
# BEGIN_COMMENT_CHAR="# "
# END_COMMENT_CHAR=""
# else
### >>> insert case statement HERE <<<
# fi
#
# single-line comment character(s) matching file extension
# ONLY SUPPORT single-line comments NOT multiple line block comment
# case $variable in
# sh|pl|PL|py|rb|ps1|php|php3|php4|ph3|ph4|R|yml|yaml|mk|MK)
# # UNIX shell(sh) perl(pl|PL) python(py) ruby(rb) PowerShell(ps1) PHP(php|php3|php4|ph3|ph4) R(R) YAML(yml|yaml) makefile(mk|MK)
# BEGIN_COMMENT_CHAR="# "
# END_COMMENT_CHAR=""
# ;;
# c|h|H|hpp|hxx|Hxx|HXX|)
# # c(c) C header(h|H|hpp) C++ header(hxx|Hxx|HXX)
# BEGIN_COMMENT_CHAR="/* "
# END_COMMENT_CHAR=" */"
# ;;
# cc|cpp|c++|cxx|go|java|class|jar|js|kt|kts|p|pp|pas|rs|rlib|scala|sc)
# # C++(cc|cpp|c++|cxx) Go(g0) Java(java|class|jar) JavaScript(js) Kotlin(kt|kts) Pascal (p|pp|paa) Rust(rs|rlib) Scala(scala|sc)
# BEGIN_COMMENT_CHAR="// "
# END_COMMENT_CHAR=""
# ;;
# xml|html|htm)
# # XML(xml) HTML (html|htm)
# BEGIN_COMMENT_CHAR="<!-- "
# END_COMMENT_CHAR=" -->"
# ;;
# *)
# Prompt for single-line beginning comment character(s)
# echo -e "Enter single-line beginning comment character(s) to use\n (example: # // -- ' ! C !* -- // % ;; || /* <!-- <!--- {- /** --[[ %{ (* <# )"
# read BEGIN_COMMENT_CHAR
# if [ -z ${BEGIN_COMMENT_CHAR} ] ; then
# display_help
# echo -e "${0} ${LINENO} [ERROR]: Single-line comment character(s) is required.\n" 1>&2
# exit 1
# fi
# echo -e "Enter single-line ending comment character(s) to use\n (example: */ --> ---> -} */ --]] %} *) #> )"
# read END_COMMENT_CHAR
# ;;
# esac
###
### CUT HERE <<<<<< -> when adding case statement
from markit.
Related Issues (20)
- test git push using markit to github, gitlab, and bitbucket HOT 1
- markit - add file types for terraform
- check-markit - change output to include date vers version
- markit - remove quotes from [ERROR] about requiring a git pull first
- markit test with branching HOT 2
- markit investigate about adding 'git rev-parse --short HEAD' to the end of the first line HOT 3
- markit - investagate adding a change log file with each commit HOT 2
- look at this during next review: https://github.com/commitizen/cz-cli HOT 1
- check-markit - upgrade Production Standards 3.550 HOT 1
- markit - added BradleyA/git-TEST-commit-automation test cases HOT 1
- find-code.sh - Production standard 5.3.550 Copyright Production standard 0.3.550 --help Production standard 4.3.550 Documentation Language Production standard 1.3.550 DEBUG variable
- Feature Request - markit - automate adding file name(s) to beginning of message
- Comment - markit - upgrade Production standards
- Feature Request - CHANGELOG.md - create repository CHANGELOG.md
- Feature Request - SECURITY.md - create repository SECURITY.md HOT 1
- Feature Request - check-markit - upgrade Production standards
- Incident Report - RE - Add time zone, repository URL, and Git branch to display_help HOT 1
- Feature Request --> markit - look at adding default TEST cases and update README.md HOT 1
- Feature Request --> check-markit- reduce business risk by defining unique temporary directory names HOT 1
- Feature Request --> check-markit - test GitHub or Bitbucket or GitLab access
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from markit.