Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TeeTime-Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nelson Tavares de Sousa
TeeTime-Framework
Commits
4b1583cf
Commit
4b1583cf
authored
9 years ago
by
Christian Wulf
Browse files
Options
Downloads
Patches
Plain Diff
removed superfluous dependencies from the pom.xml
parent
b51f2b02
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.settings/edu.umd.cs.findbugs.core.prefs
+1
-1
1 addition, 1 deletion
.settings/edu.umd.cs.findbugs.core.prefs
pom.xml
+0
-11
0 additions, 11 deletions
pom.xml
src/test/java/qa/cs/PluralForCollectionVariable.java
+0
-58
0 additions, 58 deletions
src/test/java/qa/cs/PluralForCollectionVariable.java
with
1 addition
and
70 deletions
.settings/edu.umd.cs.findbugs.core.prefs
+
1
−
1
View file @
4b1583cf
#FindBugs User Preferences
#FindBugs User Preferences
#Tue Apr 21 14:
08:24
CEST 2015
#Tue Apr 21 14:
15:57
CEST 2015
detector_threshold=3
detector_threshold=3
effort=max
effort=max
excludefilter0=.fbExcludeFilterFile|true
excludefilter0=.fbExcludeFilterFile|true
...
...
This diff is collapsed.
Click to expand it.
pom.xml
+
0
−
11
View file @
4b1583cf
...
@@ -127,12 +127,6 @@
...
@@ -127,12 +127,6 @@
<!-- SNAPSHOT master version -->
<!-- SNAPSHOT master version -->
<version>
7239659ba0
</version>
<version>
7239659ba0
</version>
</dependency>
</dependency>
<dependency>
<groupId>
com.puppycrawl.tools
</groupId>
<artifactId>
checkstyle
</artifactId>
<version>
6.5
</version>
</dependency>
<dependency>
<dependency>
<groupId>
com.carrotsearch
</groupId>
<groupId>
com.carrotsearch
</groupId>
...
@@ -152,11 +146,6 @@
...
@@ -152,11 +146,6 @@
<format>
html
</format>
<format>
html
</format>
<format>
xml
</format>
<format>
xml
</format>
</formats>
</formats>
<instrumentation>
<excludes>
<exclude>
src/performancetest/**/*
</exclude>
</excludes>
</instrumentation>
</configuration>
</configuration>
</plugin>
</plugin>
<!-- we want JDK 1.6 source and binary compatibility -->
<!-- we want JDK 1.6 source and binary compatibility -->
...
...
This diff is collapsed.
Click to expand it.
src/test/java/qa/cs/PluralForCollectionVariable.java
deleted
100644 → 0
+
0
−
58
View file @
b51f2b02
/**
* Copyright (C) 2015 Christian Wulf, Nelson Tavares de Sousa (http://teetime.sourceforge.net)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
qa.cs
;
import
java.util.HashSet
;
import
java.util.Set
;
import
com.puppycrawl.tools.checkstyle.api.Check
;
import
com.puppycrawl.tools.checkstyle.api.DetailAST
;
import
com.puppycrawl.tools.checkstyle.api.TokenTypes
;
public
class
PluralForCollectionVariable
extends
Check
{
private
final
Set
<
String
>
collectionNames
=
new
HashSet
<
String
>();
public
PluralForCollectionVariable
()
{
collectionNames
.
add
(
"Collection"
);
collectionNames
.
add
(
"Set"
);
collectionNames
.
add
(
"List"
);
}
@Override
public
int
[]
getDefaultTokens
()
{
return
new
int
[]
{
TokenTypes
.
VARIABLE_DEF
};
}
@Override
public
void
visitToken
(
final
DetailAST
ast
)
{
DetailAST
typeAst
=
ast
.
findFirstToken
(
TokenTypes
.
TYPE
);
DetailAST
identifierAst
=
ast
.
findFirstToken
(
TokenTypes
.
IDENT
);
DetailAST
actualTypeAst
=
typeAst
.
getFirstChild
();
DetailAST
typeArgumentsAst
=
actualTypeAst
.
getNextSibling
();
String
actualTypeName
=
actualTypeAst
.
getText
();
if
(
collectionNames
.
contains
(
actualTypeName
))
{
String
identifierName
=
identifierAst
.
getText
();
if
(!
identifierName
.
endsWith
(
"s"
))
{
String
message
=
"The variable '"
+
identifierName
+
"' should be named in plural since it represents a "
+
actualTypeName
+
" of "
+
typeArgumentsAst
.
getText
();
log
(
ast
.
getLineNo
(),
message
);
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment