rename .dscanner.ini to dscanner.ini

There doesn't really seem to be any reason to keep it a non-standard path.

Fix #896
This commit is contained in:
WebFreak001 2023-06-29 18:47:37 +02:00 committed by Jan Jurzitza
parent 146fec75d8
commit eceb2743a8
5 changed files with 12 additions and 9 deletions

View File

@ -144,7 +144,7 @@ jobs:
else
FORMAT=""
fi
"./bin/dscanner$EXE" --config .dscanner.ini --styleCheck -f "$FORMAT" src
"./bin/dscanner$EXE" --styleCheck -f "$FORMAT" src
# Parse phobos to check for failures / crashes / ...
- name: Checkout Phobos
@ -161,5 +161,5 @@ jobs:
for FILE in $(find std -name '*.d');
do
echo "$FILE"
../bin/dscanner -S --config=.dscanner.ini "$FILE"
../bin/dscanner -S "$FILE"
done

View File

@ -20,5 +20,5 @@ else
make lint
git clone https://www.github.com/dlang/phobos.git --depth=1
# just check that it doesn't crash
cd phobos/std && ../../bin/dscanner -S --config=../.dscanner.ini || true
cd phobos/std && ../../bin/dscanner -S || true
fi

View File

@ -247,10 +247,13 @@ outline of the file's declarations to stdout.
### Configuration
By default Dscanner uses the configuration file given in `$HOME/.config/dscanner/dscanner.ini`.
Run `--defaultConfig` to regenerate it.
The `--config` option allows one to use a custom configuration file.
If a `dscanner.ini` file is locate in the working directory or any of it's parents, it overrides any other configuration files.
If a `dscanner.ini` file is locate in the working directory or any of it's
parents, it overrides any other configuration files.
As final location, D-Scanner uses the configuration file given in
`$HOME/.config/dscanner/dscanner.ini`. Run `--defaultConfig` to regenerate it.
The `--config` option allows one to use a custom configuration file path.
### AST Dump
The "--ast" or "--xml" options will dump the complete abstract syntax tree of
@ -347,7 +350,7 @@ using its formatting switch.
Selecting modules for a specific check
--------------------------------------
It is possible to create a new section `analysis.config.ModuleFilters` in the `.dscanner.ini`.
It is possible to create a new section `analysis.config.ModuleFilters` in the `dscanner.ini`.
In this optional section a comma-separated list of inclusion and exclusion selectors can
be specified for every check on which selective filtering should be applied.
These given selectors match on the module name and partial matches (`std.` or `.foo.`) are possible.

View File

@ -139,7 +139,7 @@ ${UT_DSCANNER_BIN}: ${UT_DSCANNER_LIB} ${GITHASH} ${UT_OBJ_BY_DC} | ${DSCANNER_B
./${UT_DSCANNER_BIN}
lint: ${DSCANNER_BIN}
./${DSCANNER_BIN} --config .dscanner.ini --styleCheck src
./${DSCANNER_BIN} --styleCheck src
clean:
rm -rf dsc