Skip to content

Commit bc77417

Browse files
Merge branch 'master' into fix/typos
2 parents a4c24f1 + 459e904 commit bc77417

File tree

11 files changed

+40
-38
lines changed

11 files changed

+40
-38
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<img alt="logo" src="https://www.qulice.com/logo.svg" width="200px" height="55px"/>
1+
# Qulice
2+
3+
![logo](https://www.qulice.com/logo.svg)
24

35
[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)
46
[![DevOps By Rultor.com](https://www.rultor.com/b/yegor256/qulice)](https://www.rultor.com/p/yegor256/qulice)
@@ -72,7 +74,7 @@ they don't violate our quality standards. To avoid frustration, before
7274
sending us your pull request please run full Maven build:
7375

7476
```bash
75-
$ mvn clean install -Pqulice
77+
mvn clean install -Pqulice
7678
```
7779

7880
Keep in mind that JDK 11+ and Maven 3.8+ are the lowest versions you may use.

qulice-checkstyle/src/main/java/com/qulice/checkstyle/MethodsOrderCheck.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,11 @@ private enum Modifiers {
198198

199199
/**
200200
* Constructor.
201-
* @param typ TokenType of DetailAST which represents modifier
201+
* @param type TokenType of DetailAST which represents modifier
202202
* @param ord Order of the modifier in class definition
203203
*/
204-
Modifiers(final Integer typ, final Integer ord) {
205-
this.type = typ;
204+
Modifiers(final Integer type, final Integer ord) {
205+
this.type = type;
206206
this.order = ord;
207207
}
208208

qulice-checkstyle/src/main/java/com/qulice/checkstyle/parameters/Parameters.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,23 @@ public class Parameters {
2929
private final int parent;
3030

3131
/**
32-
* Childs TokenType (TYPE_PARAMETER or PARAMETER_DEF).
32+
* Children TokenType (TYPE_PARAMETER or PARAMETER_DEF).
3333
* @see com.puppycrawl.tools.checkstyle.api.TokenTypes
3434
*/
35-
private final int childs;
35+
private final int children;
3636

3737
/**
3838
* Primary ctor.
3939
* @param node Class, interface, constructor or method definition node.
4040
* @param parent Parent TokenType (TYPE_PARAMETERS or PARAMETERS).
41-
* @param childs Childs TokenType (TYPE_PARAMETER or PARAMETER_DEF).
41+
* @param children Children TokenType (TYPE_PARAMETER or PARAMETER_DEF).
4242
*/
4343
public Parameters(
44-
final DetailAST node, final int parent, final int childs
44+
final DetailAST node, final int parent, final int children
4545
) {
4646
this.node = node;
4747
this.parent = parent;
48-
this.childs = childs;
48+
this.children = children;
4949
}
5050

5151
/**
@@ -58,7 +58,7 @@ public final int count() {
5858
if (params == null) {
5959
result = 0;
6060
} else {
61-
result = params.getChildCount(this.childs);
61+
result = params.getChildCount(this.children);
6262
}
6363
return result;
6464
}
@@ -77,7 +77,7 @@ public final List<DetailAST> parameters() {
7777
result = new ArrayList<>(count);
7878
DetailAST child = params.getFirstChild();
7979
while (child != null) {
80-
if (child.getType() == this.childs) {
80+
if (child.getType() == this.children) {
8181
result.add(child);
8282
}
8383
child = child.getNextSibling();

qulice-checkstyle/src/test/resources/com/qulice/checkstyle/ChecksTest/NonStaticMethodCheck/Invalid.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public String name() {
1111
}
1212
@Deprecated
1313
public String name() {
14-
return "method with non-overide annotation";
14+
return "method with non-override annotation";
1515
}
1616
public synchronized String name() {
1717
return "method with non-native and non-abstract modifier";

qulice-checkstyle/src/test/resources/com/qulice/checkstyle/ValidSingleLineCommentCheck.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public final class ValidSingleLineCommentCheck {
2020
*/
2121
public static final String ANOTHER_LITERAL = "/**/";
2222

23-
/** Valid sinle line literal. */
23+
/** Valid single line literal. */
2424
public static final String SINGLE_LINE_LITERAL = "/** this is not comment **/";
2525

2626
/**

qulice-maven-plugin/src/it/pmd-violations/src/main/java/com/qulice/foo/Violations.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ private static final class Foo {
6868

6969
/**
7070
* Constructor.
71-
* @param nam Name.
71+
* @param name Name.
7272
*/
73-
Foo(final String nam) {
74-
this.name = nam;
73+
Foo(final String name) {
74+
this.name = name;
7575
}
7676

7777
@Override

qulice-maven-plugin/src/main/java/com/qulice/maven/AbstractQuliceMojo.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ public final void setSkip(final boolean skp) {
9898

9999
/**
100100
* Set asserts option.
101-
* @param asser Asserts to use.
101+
* @param val Asserts to use.
102102
*/
103-
public final void setAsserts(final Collection<String> asser) {
103+
public final void setAsserts(final Collection<String> val) {
104104
this.asserts.clear();
105-
this.asserts.addAll(asser);
105+
this.asserts.addAll(val);
106106
}
107107

108108
/**
@@ -139,7 +139,7 @@ public final void execute() throws MojoFailureException {
139139
new MojoExecutor(this.manager, this.sess)
140140
);
141141
this.environment.setExcludes(this.excludes);
142-
this.environment.setAsser(this.asserts);
142+
this.environment.setAssertion(this.asserts);
143143
this.environment.setEncoding(this.charset);
144144
final long start = System.nanoTime();
145145
this.doExecute();

qulice-maven-plugin/src/main/java/com/qulice/maven/DefaultMavenEnvironment.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public final class DefaultMavenEnvironment implements MavenEnvironment {
6969
/**
7070
* Xpath queries for pom.xml validation.
7171
*/
72-
private final Collection<String> asser = new LinkedList<>();
72+
private final Collection<String> assertion = new LinkedList<>();
7373

7474
/**
7575
* Source code encoding charset.
@@ -178,7 +178,7 @@ public MojoExecutor executor() {
178178

179179
@Override
180180
public Collection<String> asserts() {
181-
return this.asser;
181+
return this.assertion;
182182
}
183183

184184
@Override
@@ -267,9 +267,9 @@ public void setExcludes(final Collection<String> exprs) {
267267
* Set list of Xpath queries for pom.xml validation.
268268
* @param ass Xpath queries
269269
*/
270-
public void setAsser(final Collection<String> ass) {
271-
this.asser.clear();
272-
this.asser.addAll(ass);
270+
public void setAssertion(final Collection<String> ass) {
271+
this.assertion.clear();
272+
this.assertion.addAll(ass);
273273
}
274274

275275
public void setEncoding(final String encoding) {

qulice-pmd/src/main/resources/com/qulice/pmd/ruleset.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
<priority>3</priority>
213213
<properties>
214214
<property name="version" value="2.0"/>
215-
<!--Solve priority confict-->
215+
<!--Solve priority conflict-->
216216
<property name="xpath">
217217
<value><![CDATA[
218218
//TypeDeclaration

qulice-pmd/src/test/resources/com/qulice/pmd/CallToConstructorInConstructor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public int num() {
2222
return number;
2323
}
2424

25-
public int anothe() {
25+
public int getAnother() {
2626
return another;
2727
}
2828
}

0 commit comments

Comments
 (0)