implement pre-commit hooks on MBS.Framework
This commit is contained in:
parent
2cb8caacf7
commit
4c106e3a3a
16
.pre-commit-config.yaml
Normal file
16
.pre-commit-config.yaml
Normal 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']
|
||||
@ -133,4 +133,3 @@ namespace MBS.Framework
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -74,4 +74,3 @@ namespace MBS.Framework
|
||||
public CommandItemCollection Items { get; } = new CommandItemCollection();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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; } }
|
||||
|
||||
@ -153,4 +153,3 @@ namespace MBS.Framework
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -152,4 +152,3 @@ namespace MBS.Framework
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -78,4 +78,3 @@ namespace MBS.Framework
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -119,4 +119,3 @@ namespace MBS.Framework
|
||||
ZoomOut
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user