Skip to content

Commit

Permalink
fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jorbush committed Sep 19, 2024
1 parent ed988b8 commit 9113abe
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ cd postrify-backend

#### Run backend

```bash
./mvnw spring-boot:run
```
Or:
```bash
./mvnw clean package
java -jar target/postrify-0.0.1-SNAPSHOT.jar
Expand Down
13 changes: 13 additions & 0 deletions postrify-backend/checkstyle.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">
<module name="Checker">
<module name="TreeWalker">
<module name="FinalParameters"/>
<module name="MethodName"/>
<module name="MethodLength">
<property name="max" value="100"/>
</module>
</module>
</module>
3 changes: 3 additions & 0 deletions postrify-backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.1.2</version>
<configuration>
<configLocation>checkstyle.xml</configLocation>
</configuration>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@SpringBootApplication
public class PostrifyBackendApplication {

public static void main(String[] args) {
public static void main(final String[] args) {
SpringApplication.run(PostrifyBackendApplication.class, args);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public class SecurityConfig {

@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
public SecurityFilterChain filterChain(final HttpSecurity http) throws Exception {
http.csrf(AbstractHttpConfigurer::disable)
.authorizeHttpRequests(
auth -> auth.requestMatchers("/**").permitAll().anyRequest().authenticated());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
public class WebConfig implements WebMvcConfigurer {

@Override
public void addCorsMappings(CorsRegistry registry) {
public void addCorsMappings(final CorsRegistry registry) {
registry
.addMapping("/**")
.allowedOrigins("http://localhost:4200")
Expand Down

0 comments on commit 9113abe

Please sign in to comment.