Skip to content

Commit

Permalink
Update linting ignores, apply automatic fixes (reviewed)
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzeslaus committed Feb 7, 2025
1 parent b14f3c6 commit 35fecc0
Show file tree
Hide file tree
Showing 126 changed files with 257 additions and 343 deletions.
35 changes: 9 additions & 26 deletions .markdownlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,13 @@ fix: true
MD041: false # first-line-h1

# Errors from .html to .md rename (first step in HTML to Markdown conversion)
MD001: false # heading-increment
MD003: false # heading-style
MD004: false # ul-style
MD007: false # ul-indent
MD009: false # no-trailing-spaces
MD010: false # no-hard-tabs
MD011: false # no-reversed-links
MD012: false # no-multiple-blanks
MD013: false # line-length
MD018: false # no-missing-space-atx
MD019: false # no-multiple-space-atx
MD020: false # no-missing-space-closed-atx
MD022: false # blanks-around-headings
MD023: false # heading-start-left
MD024: false # no-duplicate-heading
MD026: false # no-trailing-punctuation
MD029: false # ol-prefix
MD032: false # blanks-around-lists
MD033: false # no-inline-html
MD034: false # no-bare-urls
MD037: false # no-space-in-emphasis
MD045: false # no-alt-text
MD049: false # emphasis-style
MD052: false # reference-links-images
MD055: false # table-pipe-style
MD058: false # blanks-around-tables
no-duplicate-heading: false
heading-increment: false
no-inline-html: false
no-alt-text: false
line-length: false
# The block above this is to be eventually removed.

no-emphasis-as-heading: false
link-fragments: false
no-space-in-links: false
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ repos:
exclude: |
(?x)^(
configure$|
.*\.md$|
.*\.ascii$|
.*\.asc$|
.*\.ref$|
Expand Down
2 changes: 2 additions & 0 deletions db/db.describe/db.describe.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Column 2: OBJECTID:INTEGER:11
Column 3: AREA:DOUBLE PRECISION:20
[...]
```

```sh
db.describe table=hospitals database='$GISDBASE/$LOCATION_NAME/PERMANENT/dbf/' \
driver=dbf
Expand Down Expand Up @@ -66,6 +67,7 @@ type:INTEGER
```sh
db.describe table=hospitals format=json
```

```sh
{
"table": "hospitals",
Expand Down
2 changes: 1 addition & 1 deletion display/d.graph/d.graph.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ A dynamic example can be found in the *d.polar* shell script.
echo "symbol basic/star 20 2264417 5413182 black red" | d.graph -m
```

### Split the screen into quadrants:
### Split the screen into quadrants

```sh
d.frame -s full_screen
Expand Down
1 change: 1 addition & 0 deletions display/d.linegraph/d.linegraph.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ use of underscores is not recommended and there is no need to use it at
all in the GUI or when using *d.linegraph* in Python scripts.

The way the program locates and labels tic marks is less than perfect:

1) although distances between Y tics are proportional to the value, they
are not proportional on the X axis;
2) decimal values between -1 and 1 can be printed on the X axis, but not
Expand Down
2 changes: 1 addition & 1 deletion display/d.text/d.text.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ angle, and boldness can be adjusted with commands in the standard input
and then assigns values to these options on lines within the standard
input).

### Commands:
### Commands

**.C** *color*
(where *color* is one of the available colors) causes text appearing on
Expand Down
2 changes: 1 addition & 1 deletion general/g.list/g.list.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,5 +208,5 @@ of their region.
## AUTHOR

Huidae Cho
grass4u@gmail.com
<grass4u@gmail.com>
based on general/manage/cmd/list.c by Michael Shapiro
2 changes: 1 addition & 1 deletion general/g.parser/g.parser.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
**g.parser** \[-**s**\] \[-**t**\] \[-**n**\] *filename*
\[*argument*,...\]

### Flags:
### Flags

**-t**
Print strings for translation
Expand Down
5 changes: 4 additions & 1 deletion general/g.region/g.region.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ specified. Flag **-o** was added in GRASS GIS version 8 to simulate
*g.region* behavior in prior versions when current region file was
always updated unless **-u** was specified.

### Additional parameter information:
### Additional parameter information

**zoom=***name*
Shrink current region settings to the smallest region encompassing all
Expand Down Expand Up @@ -340,6 +340,7 @@ coordinate reference system since it is reprojected on the fly.
```sh
g.region -p format=json
```

```sh
{
"projection": "99 (Lambert Conformal Conic)",
Expand Down Expand Up @@ -368,9 +369,11 @@ g.region -p format=json
"cells3": 2526500
}
```

```sh
g.region -l format=json
```

```sh
{
"nw_long": -78.688888505507336,
Expand Down
2 changes: 1 addition & 1 deletion general/g.remove/g.remove.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ g.remove -f type=vector pattern="stream_*" exclude="*_final"
## AUTHOR

Huidae Cho
grass4u@gmail.com
<grass4u@gmail.com>
2 changes: 0 additions & 2 deletions gui/wxpython/animation/g.gui.animation.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ follow these steps:
- choose parameter (parameter of *[m.nviz.image](m.nviz.image.md)*) to
animate (e.g. color_map)


<img src="wxGUI_animation_tool.jpg" data-border="1"
alt="Animation Tool screenshot" />


## NOTE

The Animation Tool follows the computational region settings, so please
Expand Down
2 changes: 0 additions & 2 deletions gui/wxpython/docs/wxGUI.iscatt.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ interactivity, which allows user to:

## TOOL CONTROLS LAYOUT


<img src="wxGUI_iscatt.jpg" data-border="1"
alt="Interactive Scatter Plot Tool" />


If editing mode is activated (the green polygon tool in toolbar), the
areas which were selected in the scatter plots are highlighted. In the
image you can see this area for scatter plot of bands `B_6, B_7` inside
Expand Down
2 changes: 0 additions & 2 deletions gui/wxpython/docs/wxGUI.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ menu bar with a set of pull-down menus for all GRASS GIS functions
(analysis, file I/O, GIS configuration and management); on a Mac, the
GRASS functions menu is at the top of the screen.


<img src="wxGUI_layer_manager.png" data-border="1" alt="screenshot" />

Figure: Layer Manager screenshot on Ubuntu
Expand Down Expand Up @@ -241,7 +240,6 @@ from the window, a map canvas where a map composition of one or more
layers is displayed, and a statusbar with information about the
geographic region of the maps displayed.


![Map Display Window](wxGUI_map_display.jpg)

Figure: Map Display screenshot on Ubuntu
Expand Down
12 changes: 0 additions & 12 deletions gui/wxpython/docs/wxGUI.nviz.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ display mode.

## 3D View Toolbar


<img src="wxGUI_nviz_toolbar.jpg" data-border="1" alt="toolbar" />


![icon](icons/script-save.png)  *Generate command for m.nviz.image*
Generate command for m.nviz.image based on current state.

Expand Down Expand Up @@ -80,10 +78,8 @@ panel (following label *Look:*):
- *top* moves the current eye position above the map center.
- *reset* returns all current view settings to their default values.


<img src="wxGUI_nviz_tools_view.jpg" data-border="1" alt="toolbox" />


You can adjust the viewer's height above the scene, perspective and
twist value to rotate the scene about the horizontal axis. An angle of 0
is flat. The scene rotates between -90 and 90 degrees.
Expand Down Expand Up @@ -162,10 +158,8 @@ In the very bottom part of the panel position of surface can be set. To
move the surface right (looking from the south) choose *X* axis and set
some positive value. To reset the surface position press *Reset* button.


<img src="wxGUI_nviz_tools_surface.jpg" data-border="1" alt="toolbox" />


#### Constant surface

It is possible to add constant surface and set its properties like fine
Expand Down Expand Up @@ -208,10 +202,8 @@ Currently are implemented these markers:
Thematic mapping can be used to determine marker color and size (and
line color and width).


<img src="wxGUI_nviz_tools_vector.jpg" data-border="1" alt="toolbox" />


#### 3D rasters

3D raster maps (volumes, voxel models) can be displayed either as
Expand Down Expand Up @@ -253,10 +245,8 @@ attributes.

3D rasters can be moved the same way like surfaces do.


<img src="wxGUI_nviz_tools_volume.jpg" data-border="1" alt="toolbox" />


### Analysis

*Analysis* tab contains *Cutting planes* panel.
Expand Down Expand Up @@ -289,10 +279,8 @@ light color, brightness and ambient. Light position is controlled
similarly to eye position. If option *Show light model* is enabled light
model is displayed to visualize the light settings.


<img src="wxGUI_nviz_tools_light.jpg" data-border="1" alt="toolbox" />


The *Fringe* panel allows you to draw fringes in different directions
(North & East, South & East, South & West, North & West). It is possible
to set the fringe color and height of the bottom edge.
Expand Down
2 changes: 0 additions & 2 deletions gui/wxpython/docs/wxGUI.toolboxes.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,9 @@ If we have `user-toolboxes-list` tag in the `main_menu.xml` file, our
custom toolbox will be listed in the automatically added *Toolboxes*
main menu item. The screenshot shows the resulting menu:


<img src="wxGUI_toolboxes.jpg" data-border="0"
alt="Toolboxes - menu customization" />


## NOTES

After the first start of wxGUI with custom toolboxes, `.grass/toolboxes`
Expand Down
9 changes: 0 additions & 9 deletions gui/wxpython/gcp/g.gui.gcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ The GCP Manager is structured into three panels:

### Components of the GCP Manager


<img src="wxGUI_gcp_frame.jpg" data-border="0" alt="GCP Manager" />


*Toolbars*

Two toolbars are provided with the GCP Manager, one for managing the map
Expand Down Expand Up @@ -114,7 +112,6 @@ display region extents (both size and location of area displayed).
Source and target display are adjusted by using the current GCPs for
coordinate transformation:


*Adjust source display to target display*
The extents of the source display are adjusted to the current extents of
the target display.
Expand All @@ -140,11 +137,9 @@ canvas (source or target).
![icon](icons/settings.png)  *Settings*
Shows a settings dialog for GCP management and display:


*Symbology*
Settings for map and GCP display:


*Highlight highest RMS error only*
Only the GCP with the highest RMS error will be displayed in a different
colour, both in the list of GCPs and the GCP Map Display.
Expand Down Expand Up @@ -185,11 +180,9 @@ Select a source map for the left pane of the GCP Map Display.
*Select target map to display*
Select a target map for the right pane of the GCP Map Display.


*Rectification*
Settings for georectification:


*Select rectification method*
Set the polynomial order for georectification. This order will also be
used for RMS error calculation.
Expand All @@ -202,8 +195,6 @@ project when georectifying.
Change the extension for output map names when doing the actual
georectification.



![icon](icons/help.png)  *Show Help*
Show help page for the GCP Manager.

Expand Down
4 changes: 0 additions & 4 deletions gui/wxpython/gmodeler/g.gui.gmodeler.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,6 @@ window with *Save* and *Run* option are shown in the figures below.
[<img src="g_gui_gmodeler_model_avg.png" width="600" height="272" />](g_gui_gmodeler_model_avg.png)
*Figure: A model to perform average statistics for zipcode zones.*



[<img src="g_gui_gmodeler_items.png" width="600" height="330" />](g_gui_gmodeler_items.png)

[<img src="g_gui_gmodeler_python.png" width="600" height="330" />](g_gui_gmodeler_python.png)
Expand Down Expand Up @@ -255,8 +253,6 @@ set in the module dialog as input called `%raster`.
[<img src="g_gui_gmodeler_variables.png" width="600" height="330" />](g_gui_gmodeler_variables.png)
*Figure: Example of raster file variable settings.*



[<img src="g_gui_gmodeler_variables_raster.png" width="600"
height="257" />](g_gui_gmodeler_variables_raster.png)
*Figure: Example of raster file variable usage.*
Expand Down
2 changes: 0 additions & 2 deletions gui/wxpython/iclass/g.gui.iclass.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@ supervised classification* or via command line as *g.gui.iclass*.
- import vector map
- export vector map with attribute table


<img src="iclass_frame.jpg" data-border="1"
alt="Supervised Classification Tool" />


*wxIClass* performs the first pass in the GRASS two-pass supervised
image classification process; the GRASS module *[i.maxlik](i.maxlik.md)*
executes the second pass. Both programs must be run to generate a
Expand Down
9 changes: 0 additions & 9 deletions gui/wxpython/image2target/g.gui.image2target.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ The GCP Manager is structured into three panels:

### Components of the GCP Manager


<img src="wxGUI_gcp_frame.jpg" data-border="0" alt="GCP Manager" />


*Toolbars*

Two toolbars are provided with the GCP Manager, one for managing the map
Expand Down Expand Up @@ -114,7 +112,6 @@ display region extents (both size and location of area displayed).
Source and target display are adjusted by using the current GCPs for
coordinate transformation:


*Adjust source display to target display*
The extents of the source display are adjusted to the current extents of
the target display.
Expand All @@ -140,11 +137,9 @@ canvas (source or target).
![icon](icons/settings.png)  *Settings*
Shows a settings dialog for GCP management and display:


*Symbology*
Settings for map and GCP display:


*Highlight highest RMS error only*
Only the GCP with the highest RMS error will be displayed in a different
colour, both in the list of GCPs and the GCP Map Display.
Expand Down Expand Up @@ -185,11 +180,9 @@ Select a source map for the left pane of the GCP Map Display.
*Select target map to display*
Select a target map for the right pane of the GCP Map Display.


*Rectification*
Settings for georectification:


*Select rectification method*
Set the polynomial order for georectification. This order will also be
used for RMS error calculation.
Expand All @@ -202,8 +195,6 @@ project when georectifying.
Change the extension for output map names when doing the actual
georectification.



![icon](icons/help.png)  *Show Help*
Show help page for the GCP Manager.

Expand Down
Loading

0 comments on commit 35fecc0

Please sign in to comment.