Skip to content

Commit

Permalink
Fix codespell exceptions (CI) (modelica#4165)
Browse files Browse the repository at this point in the history
* Fix typos
* Fix codespell exceptions
  • Loading branch information
beutlich committed Jul 4, 2023
1 parent 6a3c077 commit e55884b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/checkCron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,34 @@ jobs:
- name: Check for spelling errors
run: |
printf "[codespell]\nenable-colors=\n" >> .codespellrc
codespell -L additionals,inport ./Modelica/package.mo
codespell -L bu,nin ./Modelica/Clocked/RealSignals/Periodic/StateSpace.mo
codespell -L mesures ./Modelica/Constants.mo
codespell -L nin,inport,fo ./Modelica/StateGraph.mo
codespell -L addd,nd,nin ./Modelica/Blocks/Continuous.mo
codespell -L utput ./Modelica/Electrical/Digital.mo
codespell -L ser ./Modelica/Electrical/Polyphase/Examples/PolyphaseRectifier.mo
codespell -L ser ./Modelica/Electrical/Polyphase/Examples/Utilities/PolyphaseRectifierData.mo
codespell -L pres ./Modelica/Fluid/Dissipation.mo
codespell -L fo,alo,als,cacl,ba,nd,GeS,CaF,InH ./Modelica/Media/IdealGases/package.mo
codespell -L fo,alo,als,cacl,ba,nd,alow ./Modelica/Media/IdealGases/Common/SingleGasesData.mo
codespell -L fo,alo,als,cacl,ba,nd,ges,caf,inh ./Modelica/Media/IdealGases/package.mo
codespell -L fo,alo,als,cacl,ba,nd,alow,ges,caf,inh ./Modelica/Media/IdealGases/Common/SingleGasesData.mo
codespell -L alow ./Modelica/Media/IdealGases/Common/Functions.mo
codespell -L alow ./Modelica/Media/IdealGases/Common/package.mo
codespell -L dout ./Modelica/Media/Water/IF97_Utilities.mo
codespell -L delt ./Modelica/Media/Air/ReferenceAir.mo
codespell -L scrit,delt ./Modelica/Media/R134a.mo
codespell -L dout,scrit,delt ./Modelica/Media/Water/IF97_Utilities.mo
codespell -L archiv ./Modelica/Electrical/Polyphase/UsersGuide/References.mo
codespell -L additionals,vie ./Modelica/Electrical/Spice3.mo
codespell -L vai ./Modelica/Electrical/Machines/BasicMachines/Components/PartialAirGapDC.mo
codespell -L mot ./Modelica/Electrical/Machines/Examples/ControlledDCDrives
codespell -L singal ./Modelica/Electrical/Analog/UsersGuide/References.mo
codespell -L numer ./Modelica/Math/package.mo
codespell -L inport,nd,wit ./Modelica/Mechanics/Rotational
codespell -L inport,nd,supportt,wit ./Modelica/Mechanics/Rotational
codespell -L wit ./Modelica/Mechanics/Translational
codespell -L ist ./Modelica/Mechanics/MultiBody
codespell -L klick ./Modelica/Magnetic/FluxTubes/UsersGuide/Contact.mo
codespell -L nife ./Modelica/Magnetic/FluxTubes/Material/SoftMagnetic/NickelIron
codespell -L technik ./Modelica/Magnetic/FundamentalWave/UsersGuide/References.mo
codespell --skip ./ObsoleteModelica4.mo,./Modelica/Constants.mo,./Modelica/Blocks/Continuous.mo,./Modelica/StateGraph.mo,./Modelica/Electrical/Digital.mo,./Modelica/Electrical/Polyphase/Examples/PolyphaseRectifier.mo,./Modelica/Electrical/Polyphase/Examples/Utilities/PolyphaseRectifierData.mo,./Modelica/Fluid/Dissipation.mo,./Modelica/Resources,./Modelica/Media/IdealGases/package.mo,./Modelica/Media/IdealGases/Common/SingleGasesData.mo,./Modelica/Media/IdealGases/Common/Functions.mo,./Modelica/Media/IdealGases/Common/package.mo,./Modelica/Media/Water/IF97_Utilities.mo,./Modelica/Electrical/Polyphase/UsersGuide/References.mo,./Modelica/Electrical/Machines/Examples/ControlledDCDrives,./Modelica/Electrical/Analog/UsersGuide/References.mo,./Modelica/Math/package.mo,./Modelica/Mechanics/Rotational,./Modelica/Mechanics/Translational,./Modelica/Mechanics/MultiBody,./Modelica/Magnetic/FluxTubes/UsersGuide/Contact.mo,./Modelica/Magnetic/FundamentalWave/UsersGuide/References.mo,./.CI,./.github,./.git,*.png -L nin,inport,te,sinc,vie,commutating
codespell -L supportt ./ModelicaTest/Rotational.mo
codespell -L lamda,inport ./ModelicaTestConversion4.mo
codespell --skip ./ObsoleteModelica4.mo,./Modelica/package.mo,./Modelica/Clocked/RealSignals/Periodic/StateSpace.mo,./Modelica/Constants.mo,./Modelica/Blocks/Continuous.mo,./Modelica/StateGraph.mo,./Modelica/Electrical/Digital.mo,./Modelica/Electrical/Polyphase/Examples/PolyphaseRectifier.mo,./Modelica/Electrical/Polyphase/Examples/Utilities/PolyphaseRectifierData.mo,./Modelica/Fluid/Dissipation.mo,./Modelica/Resources,./Modelica/Media/IdealGases/package.mo,./Modelica/Media/IdealGases/Common/SingleGasesData.mo,./Modelica/Media/IdealGases/Common/Functions.mo,./Modelica/Media/IdealGases/Common/package.mo,./Modelica/Media/Air/ReferenceAir.mo,./Modelica/Media/R134a.mo,./Modelica/Media/Water/IF97_Utilities.mo,./Modelica/Electrical/Polyphase/UsersGuide/References.mo,./Modelica/Electrical/Spice3.mo,./Modelica/Electrical/Machines/BasicMachines/Components/PartialAirGapDC.mo,./Modelica/Electrical/Machines/Examples/ControlledDCDrives,./Modelica/Electrical/Analog/UsersGuide/References.mo,./Modelica/Math/package.mo,./Modelica/Mechanics/Rotational,./Modelica/Mechanics/Translational,./Modelica/Mechanics/MultiBody,./Modelica/Magnetic/FluxTubes/UsersGuide/Contact.mo,./Modelica/Magnetic/FluxTubes/Material/SoftMagnetic/NickelIron,./Modelica/Magnetic/FundamentalWave/UsersGuide/References.mo,./ModelicaTest/Rotational.mo,./ModelicaTestConversion4.mo,./.CI,./.github,./.git,*.png -L nin,inport,te,sinc,vie,commutating
2 changes: 1 addition & 1 deletion Modelica/Magnetic/FundamentalWave/UsersGuide/Polyphase.mo
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ sine waves with an angular displacement of
<p>
Electrical three-phase machines have (usually) symmetrical three-phase windings which
excite spatial magnetic potential with a spacial displacement of
excite spatial magnetic potential with a spatial displacement of
<img src=\"modelica://Modelica/Resources/Images/Magnetic/FundamentalWave/UsersGuide/Polyphase/2pi_3.png\"/>
- with respect to the fundamental wave,
see [<a href=\"modelica://Modelica.Magnetic.FundamentalWave.UsersGuide.References\">Laughton02</a>].
Expand Down
2 changes: 1 addition & 1 deletion ModelicaTest/Electrical/Machines.mo
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ Simulating another machine (with different parameters), the machine parameter re
parameter Modelica.Units.SI.Time TiI
"Integral time constant of current controller";
parameter Modelica.Units.SI.Time Tsub "Substitute time constant";
parameter Real kpw "Porportional gain of speed controller";
parameter Real kpw "Proportional gain of speed controller";
parameter Modelica.Units.SI.Time Tiw
"Integral time constant of speed controller";
annotation(defaultComponentPrefixes="parameter", defaultComponentName="controllerData",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Generated by Thorben Vahlenkamp
// 03-09-2009
// last change: 04-09-2009
// last change: 02-07-2023
// XRG Simulation GmbH

currentDirectory = Modelica.Utilities.System.getWorkDirectory();
Expand All @@ -29,7 +29,7 @@ createPlot(id = 1,
"M_FLOW_1[4]",
"M_FLOW_1[5]"
},
heading = "(Smooth) Channel: Geometry dependence (identic hydraulic diameter)",
heading = "(Smooth) Channel: Geometry dependence (identical hydraulic diameter)",
range = {0, 1e3, 1e2, 0},
autoscale = false,
autoerase = false,
Expand Down Expand Up @@ -62,7 +62,7 @@ createPlot(id = 2,
"velocity_1[4]",
"velocity_1[5]"
},
heading = "(Smooth) Channel: Geometry dependence (identic hydraulic diameter)",
heading = "(Smooth) Channel: Geometry dependence (identical hydraulic diameter)",
range = {0, 1e3, 1e2, 0},
autoscale = true,
autoerase = false,
Expand Down

0 comments on commit e55884b

Please sign in to comment.