Skip to content

Commit

Permalink
Merge pull request #601 from james-d-mitchell/linting
Browse files Browse the repository at this point in the history
Apply some more linting rules
  • Loading branch information
mtorpey authored Jan 10, 2024
2 parents acb30d1 + 385b107 commit abcbc8b
Show file tree
Hide file tree
Showing 20 changed files with 264 additions and 338 deletions.
1 change: 1 addition & 0 deletions .gaplint.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
disable:
- align-assignments
duplicate-function-min-length: 4
2 changes: 1 addition & 1 deletion doc/digraph.xml
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ gap> T := AsSemigroup(IsPartialPermSemigroup,
gap> Size(T);
20
gap> D := GreensDClasses(T);;
gap> List(D, x -> Size(x));
gap> List(D, Size);
[ 6, 12, 2 ]
]]></Example>
</Description>
Expand Down
2 changes: 1 addition & 1 deletion doc/examples.xml
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ gap> D := BondyGraph(1);
gap> IsHamiltonianDigraph(D);
false
gap> G := List([1 .. 22], x -> DigraphRemoveVertex(D, x));;
gap> ForAll(G, x -> IsHamiltonianDigraph(x));
gap> ForAll(G, IsHamiltonianDigraph);
true]]></Example>
</Description>
</ManSection>
Expand Down
2 changes: 1 addition & 1 deletion etc/gaplint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
set -e

gaplint --disable W004 *.g gap/* doc/*.xml tst/testinstall.tst tst/standard/*.tst tst/extreme/*.tst tst/workspaces/*.tst
gaplint --disable W004 $@ *.g gap/* doc/*.xml tst/testinstall.tst tst/standard/*.tst tst/extreme/*.tst tst/workspaces/*.tst
8 changes: 2 additions & 6 deletions gap/attr.gi
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,11 @@ end);

InstallMethod(ArticulationPoints, "for a digraph by out-neighbours",
[IsDigraphByOutNeighboursRep],
function(D)
return DIGRAPHS_ArticulationPointsBridgesStrongOrientation(D)[2];
end);
D -> DIGRAPHS_ArticulationPointsBridgesStrongOrientation(D)[2]);

InstallMethod(Bridges, "for a digraph by out-neighbours",
[IsDigraphByOutNeighboursRep],
function(D)
return DIGRAPHS_ArticulationPointsBridgesStrongOrientation(D)[3];
end);
D -> DIGRAPHS_ArticulationPointsBridgesStrongOrientation(D)[3]);

InstallMethodThatReturnsDigraph(StrongOrientation,
"for a digraph by out-neighbours",
Expand Down
Loading

0 comments on commit abcbc8b

Please sign in to comment.