# Code Style and Quality Guide -- Formatting Guide

DevFeed: [Code Style and Quality Guide -- Formatting Guide](<https://devfeed.tech/articles/code-style-and-quality-guide-formatting-guide-48564.md>)

Original publisher: [Read original article](<https://flink.apache.org/how-to-contribute/code-style-and-quality-formatting/>)

Published: 2026-09-18T15:54:07.612713Z

Content type: tutorial

Language: en

Sources: [Apache Flink](<https://devfeed.tech/sources/apache-flink-stateful-computations-over-data-streams-on-apache-flink.md>)

Topics: [code style](<https://devfeed.tech/topics/code-style.md>), [formatting](<https://devfeed.tech/topics/formatting.md>), [Java](<https://devfeed.tech/topics/java.md>), [ide](<https://devfeed.tech/topics/ide.md>), [Scala](<https://devfeed.tech/topics/scala.md>)

Tags: [code-formatting-style](<https://devfeed.tech/tags/code-formatting-style.md>), [code-style](<https://devfeed.tech/tags/code-style.md>), [formatting](<https://devfeed.tech/tags/formatting.md>), [guide](<https://devfeed.tech/tags/guide.md>), [ide](<https://devfeed.tech/tags/ide.md>), [java](<https://devfeed.tech/tags/java.md>), [java-language](<https://devfeed.tech/tags/java-language.md>), [quality](<https://devfeed.tech/tags/quality.md>), [readability](<https://devfeed.tech/tags/readability.md>), [scala](<https://devfeed.tech/tags/scala.md>), [spaces](<https://devfeed.tech/tags/spaces.md>)

## AI overview

A formatting guide for Apache Flink contributors covering IDE setup, Spotless and Checkstyle, Apache license headers, import organization, naming conventions, whitespace, and rules for breaking long lines in Java and Scala code.

## Source excerpt

Code Style and Quality Guide -- Formatting Guide # Preamble # Pull Requests & Changes # Common Coding Guide # Java Language Guide # Scala Language Guide # Components Guide # Formatting Guide # Java Code Formatting Style # We recommend to set up the IDE to automatically check the code style. Please follow the IDE Setup Guide to set up spotless and checkstyle . License # Apache license headers.