You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Command-line parameters should be made available in a separate configuration file. Users should be able to edit:
all command line switches;
how a language should be parsed. For example, how to look for sql strings in a php file.
Here is an example of such a file:
# --------------------------
# code2pg configuration file
# --------------------------
# Lines will be of the form:
#
# setting = value
#
# Comments start with a '#' and whitespace might be used.
# -----------------------------------------------------------------------------
# GENERAL PARAMETERS
# -----------------------------------------------------------------------------
# directory = . # the directory to analyze
# directorytype = file # file, svn
# the type of directory that will be analyzed
# format = html # txt, html or minimal
# the assessment report format. Both text and minimal
# will output to the console.
# output-file = estimation.html # the name of the html report
# output-directory = . # the directory where the report will be generated.
# csv-output = myfile.csv # Oracle keywords can be redirected to this csv file.
# orafce = off # should the migration use orafce ? If so, those
# instructions will be removed from the assessment.
# tagfiles = off # if enabled, the local source files will be modified
# and comments added where Oracle instructions were
# found.
# level1-minutes = 1 # how many minutes it takes to migrate a level 1
# level2-minutes = 4 # instruction. Same for level2/3/4.
# level3-minutes = 8
# level4-minutes = 16
# minutes-per-workday = 360 # number of worked minutes per day.
# -----------------------------------------------------------------------------
# AUTHENTIFICATION
# -----------------------------------------------------------------------------
# For directories that require authentication (so far only SVN),
# credentials could be given.
# username = myuser # your username
# password = mypwd # your password
# -----------------------------------------------------------------------------
# FILES AND LANGUAGES TO ANALYZE
# -----------------------------------------------------------------------------
# code2pg needs to know which file to analyze and the corresponding language.
# One type of extension can be analyzed at a time, or multiple extensions at
# the same time. In this case, for each value
# Example (only .sql files will be analyzed and the language will be plsql):
# extensions = sql
# languages = plsql
# Example (.sql will be considered plsql files, jsp will be considered java
# files etc...)
# extensions = sql, properties, java, jsp
# languages = plsql, plsql, java, java
# extensions = java
# languages = java # java, javascript, jsp, plsql, proc
The text was updated successfully, but these errors were encountered:
This is finally corrected with commit 0be10e3.
A new issue will be open concerning the ability to define a new language (comments and how keywords are identified).
Command-line parameters should be made available in a separate configuration file. Users should be able to edit:
Here is an example of such a file:
The text was updated successfully, but these errors were encountered: