implement pre-commit hooks on MBS.Framework

This commit is contained in:
Michael Becker 2021-05-07 18:33:35 -04:00
parent 2cb8caacf7
commit 4c106e3a3a
No known key found for this signature in database
GPG Key ID: 98C333A81F18C22C
19 changed files with 371 additions and 364 deletions

16
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,16 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-yaml
- id: check-xml
- id: check-executables-have-shebangs
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 2.1.5
hooks:
- id: forbid-space-in-indent
language: script
exclude: (^.*\.(csproj|glade|resx|svg|yaml|txt|uexml)$)|LICENSE
exclude_types: ['binary']

View File

@ -133,4 +133,3 @@ namespace MBS.Framework
}
}
}

View File

@ -74,4 +74,3 @@ namespace MBS.Framework
public CommandItemCollection Items { get; } = new CommandItemCollection();
}
}

View File

@ -32,16 +32,13 @@ namespace MBS.Framework.Drawing
public Measurement(double value, MeasurementUnit unit)
{
mvarUnit = unit;
mvarValue = value;
Unit = unit;
Value = value;
mvarIsFull = true;
}
private double mvarValue;
public double Value { get { return mvarValue; } set { mvarValue = value; } }
private MeasurementUnit mvarUnit;
public MeasurementUnit Unit { get { return mvarUnit; } set { mvarUnit = value; } }
public double Value { get; set; }
public MeasurementUnit Unit { get; set; }
private bool mvarIsFull;
public bool IsEmpty { get { return !mvarIsFull; } }

View File

@ -153,4 +153,3 @@ namespace MBS.Framework
}
}
}

View File

@ -152,4 +152,3 @@ namespace MBS.Framework
}
}
}

View File

@ -78,4 +78,3 @@ namespace MBS.Framework
}
}
}

View File

@ -119,4 +119,3 @@ namespace MBS.Framework
ZoomOut
}
}