Skip to content

Commit 8aa0fe6

Browse files
ahornaceVladimir Kotal
authored andcommitted
Enable checkstyle for web module (#2259)
1 parent 7c29a83 commit 8aa0fe6

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

opengrok-web/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ Portions Copyright (c) 2018, Chris Fraire <[email protected]>.
196196
</argLine>
197197
</configuration>
198198
</plugin>
199+
200+
<plugin>
201+
<groupId>org.apache.maven.plugins</groupId>
202+
<artifactId>maven-checkstyle-plugin</artifactId>
203+
</plugin>
199204
</plugins>
200205
</build>
201206

opengrok-web/src/main/java/org/opengrok/web/AuthorizationFilter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
2222
*/
2323
package org.opengrok.web;
2424

@@ -34,7 +34,6 @@
3434
import javax.servlet.http.HttpServletRequest;
3535
import javax.servlet.http.HttpServletResponse;
3636
import org.opengrok.indexer.configuration.Project;
37-
import org.opengrok.indexer.configuration.RuntimeEnvironment;
3837
import org.opengrok.indexer.logger.LoggerFactory;
3938
import org.opengrok.indexer.web.PageConfig;
4039
import org.opengrok.web.api.v1.RestApp;

opengrok-web/src/main/java/org/opengrok/web/DirectoryListing.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
2222
* Portions Copyright 2011 Jens Elkner.
2323
* Portions Copyright (c) 2017-2018, Chris Fraire <[email protected]>.
2424
*/
@@ -49,7 +49,7 @@
4949
*/
5050
public class DirectoryListing {
5151

52-
protected final static String DIRECTORY_SIZE_PLACEHOLDER = "-";
52+
protected static final String DIRECTORY_SIZE_PLACEHOLDER = "-";
5353
private final EftarFileReader desc;
5454
private final long now;
5555

opengrok-web/src/main/java/org/opengrok/web/api/v1/controller/ConfigurationController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2018, 2019 Oracle and/or its affiliates. All rights reserved.
2222
*/
2323
package org.opengrok.web.api.v1.controller;
2424

2525
import org.opengrok.indexer.configuration.RuntimeEnvironment;
26-
import org.opengrok.indexer.util.ClassUtil;
2726
import org.opengrok.web.api.v1.suggester.provider.service.SuggesterService;
2827

2928
import javax.inject.Inject;

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ Portions Copyright (c) 2018, Chris Fraire <[email protected]>.
293293
<dependency>
294294
<groupId>com.puppycrawl.tools</groupId>
295295
<artifactId>checkstyle</artifactId>
296-
<version>8.11</version>
296+
<version>8.17</version>
297297
</dependency>
298298
</dependencies>
299299
<executions>

0 commit comments

Comments
 (0)