添加链接
注册
登录
link管理
链接快照平台
输入网页链接,自动生成快照
标签化管理网页链接
相关文章推荐
温暖的长颈鹿
·
2. 频率域 — PySDR: A ...
·
3 月前
·
深情的登山鞋
·
minio实现视频点播
·
4 月前
·
魁梧的羊肉串
·
Laravel 用法之 Database ...
·
6 月前
·
任性的滑板
·
typedef PACKED ...
·
1 年前
·
千年单身的佛珠
·
Hash转magnet ...
·
1 年前
·
link管理
›
Branch analysis
branch
https://docs.sonarsource.com/sonarqube/9.8/analyzing-source-code/branches/branch-analysis/
大力的烤面包
1 年前
</noscript><div id="___gatsby"><div style="outline:none" tabindex="-1" id="gatsby-focus-wrapper"><style data-emotion="css-global 1dh0o3l">*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor;--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x:var(--tw-empty,/*!*/ /*!*/);--tw-pan-y:var(--tw-empty,/*!*/ /*!*/);--tw-pinch-zoom:var(--tw-empty,/*!*/ /*!*/);--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position:var(--tw-empty,/*!*/ /*!*/);--tw-gradient-via-position:var(--tw-empty,/*!*/ /*!*/);--tw-gradient-to-position:var(--tw-empty,/*!*/ /*!*/);--tw-ordinal:var(--tw-empty,/*!*/ /*!*/);--tw-slashed-zero:var(--tw-empty,/*!*/ /*!*/);--tw-numeric-figure:var(--tw-empty,/*!*/ /*!*/);--tw-numeric-spacing:var(--tw-empty,/*!*/ /*!*/);--tw-numeric-fraction:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-blur:var(--tw-empty,/*!*/ /*!*/);--tw-brightness:var(--tw-empty,/*!*/ /*!*/);--tw-contrast:var(--tw-empty,/*!*/ /*!*/);--tw-grayscale:var(--tw-empty,/*!*/ /*!*/);--tw-hue-rotate:var(--tw-empty,/*!*/ /*!*/);--tw-invert:var(--tw-empty,/*!*/ /*!*/);--tw-saturate:var(--tw-empty,/*!*/ /*!*/);--tw-sepia:var(--tw-empty,/*!*/ /*!*/);--tw-drop-shadow:var(--tw-empty,/*!*/ /*!*/);--tw-backdrop-blur:var(--tw-empty,/*!*/ /*!*/);--tw-backdrop-brightness:var(--tw-empty,/*!*/ /*!*/);--tw-backdrop-contrast:var(--tw-empty,/*!*/ /*!*/);--tw-backdrop-grayscale:var(--tw-empty,/*!*/ /*!*/);--tw-backdrop-hue-rotate:var(--tw-empty,/*!*/ /*!*/);--tw-backdrop-invert:var(--tw-empty,/*!*/ /*!*/);--tw-backdrop-opacity:var(--tw-empty,/*!*/ /*!*/);--tw-backdrop-saturate:var(--tw-empty,/*!*/ /*!*/);--tw-backdrop-sepia:var(--tw-empty,/*!*/ /*!*/);}::before,::after{--tw-content:'';}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif;font-feature-settings:normal;font-variation-settings:normal;}body{margin:0;line-height:inherit;}hr{height:0;color:inherit;border-top-width:1px;}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit;}b,strong{font-weight:bolder;}code,kbd,samp,pre{font-family:ui-monospace;font-size:1em;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sub{bottom:-0.25em;}sup{top:-0.5em;}table{text-indent:0;border-color:inherit;border-collapse:collapse;}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0;}button,select{text-transform:none;}button,[type='button'],[type='reset'],[type='submit']{-webkit-appearance:button;background-color:transparent;background-image:none;}:-moz-focusring{outline:auto;}:-moz-ui-invalid{box-shadow:none;}progress{vertical-align:baseline;}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto;}[type='search']{-webkit-appearance:textfield;outline-offset:-2px;}::-webkit-search-decoration{-webkit-appearance:none;}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}summary{display:-webkit-box;display:-webkit-list-item;display:-ms-list-itembox;display:list-item;}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0;}fieldset{margin:0;padding:0;}legend{padding:0;}ol,ul,menu{list-style:none;margin:0;padding:0;}dialog{padding:0;}textarea{resize:vertical;}input::-webkit-input-placeholder{opacity:1;color:#9ca3af;}input::-moz-placeholder{opacity:1;color:#9ca3af;}input:-ms-input-placeholder{opacity:1;color:#9ca3af;}textarea::-webkit-input-placeholder{opacity:1;color:#9ca3af;}textarea::-moz-placeholder{opacity:1;color:#9ca3af;}textarea:-ms-input-placeholder{opacity:1;color:#9ca3af;}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af;}button,[role="button"]{cursor:pointer;}:disabled{cursor:default;}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle;}img,video{max-width:100%;height:auto;}[hidden]{;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x:var(--tw-empty,/*!*/ /*!*/);--tw-pan-y:var(--tw-empty,/*!*/ /*!*/);--tw-pinch-zoom:var(--tw-empty,/*!*/ /*!*/);--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position:var(--tw-empty,/*!*/ /*!*/);--tw-gradient-via-position:var(--tw-empty,/*!*/ /*!*/);--tw-gradient-to-position:var(--tw-empty,/*!*/ /*!*/);--tw-ordinal:var(--tw-empty,/*!*/ /*!*/);--tw-slashed-zero:var(--tw-empty,/*!*/ /*!*/);--tw-numeric-figure:var(--tw-empty,/*!*/ /*!*/);--tw-numeric-spacing:var(--tw-empty,/*!*/ /*!*/);--tw-numeric-fraction:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-blur:var(--tw-empty,/*!*/ /*!*/);--tw-brightness:var(--tw-empty,/*!*/ /*!*/);--tw-contrast:var(--tw-empty,/*!*/ /*!*/);--tw-grayscale:var(--tw-empty,/*!*/ /*!*/);--tw-hue-rotate:var(--tw-empty,/*!*/ /*!*/);--tw-invert:var(--tw-empty,/*!*/ /*!*/);--tw-saturate:var(--tw-empty,/*!*/ /*!*/);--tw-sepia:var(--tw-empty,/*!*/ /*!*/);--tw-drop-shadow:var(--tw-empty,/*!*/ /*!*/);--tw-backdrop-blur:var(--tw-empty,/*!*/ /*!*/);--tw-backdrop-brightness:var(--tw-empty,/*!*/ /*!*/);--tw-backdrop-contrast:var(--tw-empty,/*!*/ /*!*/);--tw-backdrop-grayscale:var(--tw-empty,/*!*/ /*!*/);--tw-backdrop-hue-rotate:var(--tw-empty,/*!*/ /*!*/);--tw-backdrop-invert:var(--tw-empty,/*!*/ /*!*/);--tw-backdrop-opacity:var(--tw-empty,/*!*/ /*!*/);--tw-backdrop-saturate:var(--tw-empty,/*!*/ /*!*/);--tw-backdrop-sepia:var(--tw-empty,/*!*/ /*!*/);}</style><style data-emotion="css-global 3y3kun">@font-face{font-family:'Saira-Fallback';size-adjust:104.18%;src:local('Arial');}@font-face{font-family:'Maven-Pro-Fallback';size-adjust:103.25%;src:local('Arial');}@font-face{font-family:'Saira';font-style:normal;font-weight:400;src:url('/fonts/saira-variable.woff2') format('woff2 supports variations'),url('/fonts/saira-variable.woff2') format('woff2-variations');font-weight:100 900;text-rendering:optimizeLegibility;font-display:swap;}@font-face{font-family:'Maven Pro';font-style:normal;font-weight:400;src:url('/fonts/maven-pro-variable.woff2') format('woff2 supports variations'),url('/fonts/maven-pro-variable.woff2') format('woff2-variations');font-weight:400 900;text-rendering:optimizeLegibility;font-display:swap;}html{font-size:62.5%;}body{background-color:white;font-size:1.8rem;font-family:Maven Pro,Maven-Pro-Fallback;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;}</style><main><style data-emotion="css wisjbp">.css-wisjbp{position:fixed;width:362px;--tw-bg-opacity:1;background-color:rgb(244 247 251 / var(--tw-bg-opacity));}</style><div class="css-wisjbp e1xjpii31"><style data-emotion="css 1sctov7">.css-1sctov7{position:-webkit-sticky;position:sticky;top:3rem;height:100vh;overflow-x:hidden;overscroll-behavior-y:contain;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding-left:3.5rem;padding-right:3.5rem;padding-bottom:4rem;overflow-y:overlay;}</style><nav class="css-1sctov7 e1qxa2382"><style data-emotion="css 16040du">.css-16040du{position:relative;margin-bottom:1.5rem;margin-top:3rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}</style><header class="css-16040du e1qxa2381"><style data-emotion="css 79elbk">.css-79elbk{position:relative;}</style><div class="css-79elbk eq67cw33"><style data-emotion="css 1psyp4d">.css-1psyp4d{height:4rem;font-weight:700;--tw-text-opacity:1;color:rgb(34 40 164 / var(--tw-text-opacity));display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:0.375rem;}</style><button aria-label="Display Sonar products" class="css-1psyp4d eq67cw31"><style data-emotion="css je8g23">.css-je8g23{pointer-events:none;}</style><div data-gatsby-image-wrapper="" class="gatsby-image-wrapper gatsby-image-wrapper-constrained css-je8g23 emt11ji0"><div style="max-width:115px;display:block"><img alt="" role="presentation" aria-hidden="true" src="data:image/svg+xml;charset=utf-8,%3Csvg%20height='40'%20width='115'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%3E%3C/svg%3E" style="max-width:100%;display:block;position:static"/></div><div aria-hidden="true" data-placeholder-image="" style="opacity:1;transition:opacity 500ms linear;object-fit:contain;object-position:left"/><img data-gatsby-image-ssr="" title="SonarQube Documentation" data-main-image="" style="object-fit:contain;object-position:left;opacity:0" sizes="(min-width: 115px) 115px, 100vw" decoding="async" loading="eager" src="https://assets-eu-01.kc-usercontent.com:443/b98b0e99-a92d-0140-c108-93833c7e1e31/905190c3-a37f-4a91-9f2e-3cc3a0798391/SonarQube_logo.svg?w=115&h=40&auto=format&fit=crop" srcset="https://assets-eu-01.kc-usercontent.com:443/b98b0e99-a92d-0140-c108-93833c7e1e31/905190c3-a37f-4a91-9f2e-3cc3a0798391/SonarQube_logo.svg?w=29&h=10&auto=format&fit=crop 29w,https://assets-eu-01.kc-usercontent.com:443/b98b0e99-a92d-0140-c108-93833c7e1e31/905190c3-a37f-4a91-9f2e-3cc3a0798391/SonarQube_logo.svg?w=58&h=20&auto=format&fit=crop 58w,https://assets-eu-01.kc-usercontent.com:443/b98b0e99-a92d-0140-c108-93833c7e1e31/905190c3-a37f-4a91-9f2e-3cc3a0798391/SonarQube_logo.svg?w=115&h=40&auto=format&fit=crop 115w" alt="sonarqube"/><noscript><img data-gatsby-image-ssr="" title="SonarQube Documentation" data-main-image="" style="object-fit:contain;object-position:left;opacity:0" sizes="(min-width: 115px) 115px, 100vw" decoding="async" loading="eager" src="https://assets-eu-01.kc-usercontent.com:443/b98b0e99-a92d-0140-c108-93833c7e1e31/905190c3-a37f-4a91-9f2e-3cc3a0798391/SonarQube_logo.svg?w=115&h=40&auto=format&fit=crop" srcset="https://assets-eu-01.kc-usercontent.com:443/b98b0e99-a92d-0140-c108-93833c7e1e31/905190c3-a37f-4a91-9f2e-3cc3a0798391/SonarQube_logo.svg?w=29&h=10&auto=format&fit=crop 29w,https://assets-eu-01.kc-usercontent.com:443/b98b0e99-a92d-0140-c108-93833c7e1e31/905190c3-a37f-4a91-9f2e-3cc3a0798391/SonarQube_logo.svg?w=58&h=20&auto=format&fit=crop 58w,https://assets-eu-01.kc-usercontent.com:443/b98b0e99-a92d-0140-c108-93833c7e1e31/905190c3-a37f-4a91-9f2e-3cc3a0798391/SonarQube_logo.svg?w=115&h=40&auto=format&fit=crop 115w" alt="sonarqube"/></noscript></div><style data-emotion="css 15ucs8t">.css-15ucs8t{height:2rem;width:2rem;--tw-rotate:90deg;-webkit-transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));-moz-transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));-ms-transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));fill:#2228A4;}</style><svg viewbox="0 0 24 24" class="css-15ucs8t e18wxygq0"><path fill="none" d="M0 0h24v24H0z"/><path d="m13.172 12-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z"/></svg></button></div><style data-emotion="css qxj4c5">.css-qxj4c5{margin-left:0.5rem;margin-right:0.5rem;height:30px;width:2px;--tw-bg-opacity:1;background-color:rgb(211 220 233 / var(--tw-bg-opacity));}</style><div class="css-qxj4c5 e1qxa2380"/><style data-emotion="css kbieq5">.css-kbieq5{position:relative;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}</style><ul class="css-kbieq5 e1vr8yqn3"><style data-emotion="css gjtciv">.css-gjtciv{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:0.125rem;border-radius:0.375rem;padding-left:0.5rem;padding-right:0.5rem;padding-top:0.375rem;padding-bottom:0.375rem;font-size:1.6rem;font-weight:700;--tw-text-opacity:1;color:rgb(34 40 164 / var(--tw-text-opacity));}</style><button aria-label="Display versions" class="css-gjtciv e1vr8yqn1">Docs <!-- -->9.8<svg viewbox="0 0 24 24" class="css-15ucs8t e18wxygq0"><path fill="none" d="M0 0h24v24H0z"/><path d="m13.172 12-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z"/></svg></button></ul></header><style data-emotion="css 8nxgwy">.css-8nxgwy{margin-left:-1rem;margin-right:-1rem;padding-bottom:2rem;padding-top:1rem;}</style><ul class="css-8nxgwy e1ivbxm50"><li><style data-emotion="css 4ejps8">.css-4ejps8{display:block;}</style><a class="css-4ejps8 ehkn9t61" href="/sonarqube/9.8/"><style data-emotion="css ytdg63">.css-ytdg63{font-weight:400;width:100%;font-size:1.6rem;font-weight:500;padding-left:1rem;padding-right:1rem;padding-top:0.5rem;padding-bottom:0.5rem;display:block;text-align:left;}.css-ytdg63:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(41 0 66 / var(--tw-text-opacity));}.css-ytdg63:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));font-weight:500;--tw-text-opacity:1;color:rgb(41 0 66 / var(--tw-text-opacity));}</style><span title="SonarQube 9.8 Documentation" class="css-ytdg63 ehkn9t60">Homepage</span></a></li><li><a class="css-4ejps8 ehkn9t61" href="/sonarqube/9.8/try-out-sonarqube/"><span title="Try out SonarQube" class="css-ytdg63 ehkn9t60">Try out SonarQube</span></a></li><style data-emotion="css 8atqhb">.css-8atqhb{width:100%;}</style><li class="css-8atqhb e16dmnqw2"><style data-emotion="css 12pshxq">.css-12pshxq{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;width:100%;gap:0.25rem;font-weight:500;text-align:left;width:100%;font-size:1.6rem;font-weight:500;padding-left:1rem;padding-right:1rem;padding-top:0.5rem;padding-bottom:0.5rem;}.css-12pshxq:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(41 0 66 / var(--tw-text-opacity));}.css-12pshxq:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(41 0 66 / var(--tw-text-opacity));}</style><button tabindex="0" aria-expanded="false" aria-label="Requirements" role="button" class="css-12pshxq e16dmnqw1">Requirements<style data-emotion="css 1e9usfn">.css-1e9usfn{height:2rem;width:2rem;--tw-rotate:90deg;-webkit-transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));-moz-transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));-ms-transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));fill:#5F656D;}</style><svg viewbox="0 0 24 24" class="css-1e9usfn e18wxygq0"><path fill="none" d="M0 0h24v24H0z"/><path d="m13.172 12-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z"/></svg></button></li><li class="css-8atqhb e16dmnqw2"><button tabindex="0" aria-expanded="false" aria-label="Setup and upgrade" role="button" class="css-12pshxq e16dmnqw1">Setup and upgrade<svg viewbox="0 0 24 24" class="css-1e9usfn e18wxygq0"><path fill="none" d="M0 0h24v24H0z"/><path d="m13.172 12-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z"/></svg></button></li><li class="css-8atqhb e16dmnqw2"><style data-emotion="css 1nsk6w3">.css-1nsk6w3{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;width:100%;gap:0.25rem;font-weight:500;text-align:left;--tw-text-opacity:1;color:rgb(34 40 164 / var(--tw-text-opacity));width:100%;font-size:1.6rem;font-weight:500;padding-left:1rem;padding-right:1rem;padding-top:0.5rem;padding-bottom:0.5rem;}.css-1nsk6w3:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(41 0 66 / var(--tw-text-opacity));}.css-1nsk6w3:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(41 0 66 / var(--tw-text-opacity));}</style><button tabindex="0" aria-expanded="true" aria-label="Analyzing source code" role="button" class="css-1nsk6w3 e16dmnqw1">Analyzing source code<style data-emotion="css cza35f">.css-cza35f{height:2rem;width:2rem;--tw-rotate:90deg;-webkit-transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));-moz-transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));-ms-transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-rotate:-90deg;-webkit-transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));-moz-transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));-ms-transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));fill:#5F656D;}</style><svg viewbox="0 0 24 24" class="css-cza35f e18wxygq0"><path fill="none" d="M0 0h24v24H0z"/><path d="m13.172 12-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z"/></svg></button><style data-emotion="css 13spceu">.css-13spceu{padding-left:1rem;}</style><ul class="css-13spceu e16dmnqw0"><li><a class="css-4ejps8 ehkn9t61" href="/sonarqube/9.8/analyzing-source-code/overview/"><style data-emotion="css d417oh">.css-d417oh{font-weight:400;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:1.25rem;font-size:1.4rem;display:block;text-align:left;}.css-d417oh:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));font-weight:500;--tw-text-opacity:1;color:rgb(41 0 66 / var(--tw-text-opacity));}</style><span title="Overview" class="css-d417oh ehkn9t60">Overview</span></a></li><li class="css-8atqhb e16dmnqw2"><style data-emotion="css 14wsxzz">.css-14wsxzz{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;width:100%;gap:0.25rem;font-weight:500;text-align:left;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:1.25rem;padding-right:1rem;font-size:1.4rem;}.css-14wsxzz:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(41 0 66 / var(--tw-text-opacity));}</style><button tabindex="0" aria-expanded="false" aria-label="Scanners" role="button" class="css-14wsxzz e16dmnqw1">Scanners<svg viewbox="0 0 24 24" class="css-1e9usfn e18wxygq0"><path fill="none" d="M0 0h24v24H0z"/><path d="m13.172 12-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z"/></svg></button></li><li><a class="css-4ejps8 ehkn9t61" href="/sonarqube/9.8/analyzing-source-code/analysis-parameters/"><span title="Analysis parameters" class="css-d417oh ehkn9t60">Analysis parameters</span></a></li><li class="css-8atqhb e16dmnqw2"><button tabindex="0" aria-expanded="false" aria-label="Languages" role="button" class="css-14wsxzz e16dmnqw1">Languages<svg viewbox="0 0 24 24" class="css-1e9usfn e18wxygq0"><path fill="none" d="M0 0h24v24H0z"/><path d="m13.172 12-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z"/></svg></button></li><li class="css-8atqhb e16dmnqw2"><button tabindex="0" aria-expanded="false" aria-label="Test coverage" role="button" class="css-14wsxzz e16dmnqw1">Test coverage<svg viewbox="0 0 24 24" class="css-1e9usfn e18wxygq0"><path fill="none" d="M0 0h24v24H0z"/><path d="m13.172 12-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z"/></svg></button></li><li class="css-8atqhb e16dmnqw2"><button tabindex="0" aria-expanded="false" aria-label="Importing external issues" role="button" class="css-14wsxzz e16dmnqw1">Importing external issues<svg viewbox="0 0 24 24" class="css-1e9usfn e18wxygq0"><path fill="none" d="M0 0h24v24H0z"/><path d="m13.172 12-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z"/></svg></button></li><li><a class="css-4ejps8 ehkn9t61" href="/sonarqube/9.8/analyzing-source-code/background-tasks/"><span title="Background tasks" class="css-d417oh ehkn9t60">Background tasks</span></a></li><li><a class="css-4ejps8 ehkn9t61" href="/sonarqube/9.8/analyzing-source-code/pull-request-analysis/"><span title="Pull request analysis" class="css-d417oh ehkn9t60">Pull request analysis</span></a></li><li class="css-8atqhb e16dmnqw2"><style data-emotion="css bf8ly4">.css-bf8ly4{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;width:100%;gap:0.25rem;font-weight:500;text-align:left;--tw-text-opacity:1;color:rgb(34 40 164 / var(--tw-text-opacity));padding-top:0.5rem;padding-bottom:0.5rem;padding-left:1.25rem;padding-right:1rem;font-size:1.4rem;}.css-bf8ly4:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(41 0 66 / var(--tw-text-opacity));}</style><button tabindex="0" aria-expanded="true" aria-label="Branches" role="button" class="css-bf8ly4 e16dmnqw1">Branches<svg viewbox="0 0 24 24" class="css-cza35f e18wxygq0"><path fill="none" d="M0 0h24v24H0z"/><path d="m13.172 12-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z"/></svg></button><ul class="css-13spceu e16dmnqw0"><li><a aria-current="page" class="css-4ejps8 ehkn9t61" href="/sonarqube/9.8/analyzing-source-code/branches/branch-analysis/"><style data-emotion="css 1940dv9">.css-1940dv9{font-weight:500;--tw-text-opacity:1;color:rgb(34 40 164 / var(--tw-text-opacity));padding-top:0.5rem;padding-bottom:0.5rem;padding-left:1.25rem;font-size:1.4rem;display:block;text-align:left;}.css-1940dv9:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));font-weight:500;--tw-text-opacity:1;color:rgb(41 0 66 / var(--tw-text-opacity));}</style><span title="Branch analysis" class="css-1940dv9 ehkn9t60">Branch analysis</span></a></li><li><a class="css-4ejps8 ehkn9t61" href="/sonarqube/9.8/analyzing-source-code/branches/branch-faq/"><span title="Branch FAQ" class="css-d417oh ehkn9t60">Branch FAQ</span></a></li></ul></li><li class="css-8atqhb e16dmnqw2"><button tabindex="0" aria-expanded="false" aria-label="CI integration" role="button" class="css-14wsxzz e16dmnqw1">CI integration<svg viewbox="0 0 24 24" class="css-1e9usfn e18wxygq0"><path fill="none" d="M0 0h24v24H0z"/><path d="m13.172 12-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z"/></svg></button></li><li><a class="css-4ejps8 ehkn9t61" href="/sonarqube/9.8/analyzing-source-code/scm-integration/"><span title="SCM integration" class="css-d417oh ehkn9t60">SCM integration</span></a></li><li><a class="css-4ejps8 ehkn9t61" href="/sonarqube/9.8/analyzing-source-code/security-engine-custom-configuration/"><span title="Security engine custom configuration" class="css-d417oh ehkn9t60">Security engine custom configuration</span></a></li><li><a class="css-4ejps8 ehkn9t61" href="/sonarqube/9.8/analyzing-source-code/scanner-environment/"><span title="Scanner environment" class="css-d417oh ehkn9t60">Scanner environment</span></a></li></ul></li><li class="css-8atqhb e16dmnqw2"><button tabindex="0" aria-expanded="false" aria-label="DevOps platform integration" role="button" class="css-12pshxq e16dmnqw1">DevOps platform integration<svg viewbox="0 0 24 24" class="css-1e9usfn e18wxygq0"><path fill="none" d="M0 0h24v24H0z"/><path d="m13.172 12-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z"/></svg></button></li><li class="css-8atqhb e16dmnqw2"><button tabindex="0" aria-expanded="false" aria-label="User guide" role="button" class="css-12pshxq e16dmnqw1">User guide<svg viewbox="0 0 24 24" class="css-1e9usfn e18wxygq0"><path fill="none" d="M0 0h24v24H0z"/><path d="m13.172 12-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z"/></svg></button></li><li class="css-8atqhb e16dmnqw2"><button tabindex="0" aria-expanded="false" aria-label="Project administration" role="button" class="css-12pshxq e16dmnqw1">Project administration<svg viewbox="0 0 24 24" class="css-1e9usfn e18wxygq0"><path fill="none" d="M0 0h24v24H0z"/><path d="m13.172 12-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z"/></svg></button></li><li class="css-8atqhb e16dmnqw2"><button tabindex="0" aria-expanded="false" aria-label="Instance administration" role="button" class="css-12pshxq e16dmnqw1">Instance administration<svg viewbox="0 0 24 24" class="css-1e9usfn e18wxygq0"><path fill="none" d="M0 0h24v24H0z"/><path d="m13.172 12-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z"/></svg></button></li><li class="css-8atqhb e16dmnqw2"><button tabindex="0" aria-expanded="false" aria-label="Extension Guide" role="button" class="css-12pshxq e16dmnqw1">Extension Guide<svg viewbox="0 0 24 24" class="css-1e9usfn e18wxygq0"><path fill="none" d="M0 0h24v24H0z"/><path d="m13.172 12-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z"/></svg></button></li></ul><style data-emotion="css 1ec4g9s">.css-1ec4g9s{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;row-gap:0.5rem;padding-top:2rem;font-size:1.6rem;border-top-width:1px;--tw-border-opacity:1;border-top-color:rgb(211 220 233 / var(--tw-border-opacity));}.css-1ec4g9s a{--tw-text-opacity:1;color:rgb(41 0 66 / var(--tw-text-opacity));font-weight:500;}.css-1ec4g9s a:hover{text-decoration-line:underline;}.css-1ec4g9s a.external-link span:hover,.css-1ec4g9s a.external-link strong:hover,.css-1ec4g9s a.external-link em:hover{--tw-text-opacity:1;color:rgb(41 0 66 / var(--tw-text-opacity));}.css-1ec4g9s a.external-link svg{margin-bottom:0.25rem;fill:#5F656D;width:1rem;}.css-1ec4g9s a.external-link svg:hover{fill:#39057B;}</style><div class="css-1ec4g9s e1yqhvs80"><p><a href="https://www.sonarsource.com/" class="external-link" target="__blank" title="Sonar Home" referrerpolicy="unsafe-url">Sonar Home<style data-emotion="css bb4kds">.css-bb4kds{margin-left:0.5rem;display:inline-block;}</style><svg width="16" height="16" viewbox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" class="css-bb4kds e162xago0"><path d="M9.5 0.75C9.5 1.16562 9.83438 1.5 10.25 1.5H13.4406L6.46875 8.46875C6.175 8.7625 6.175 9.2375 6.46875 9.52812C6.7625 9.81875 7.2375 9.82187 7.52812 9.52812L14.4969 2.55938V5.75C14.4969 6.16563 14.8313 6.5 15.2469 6.5C15.6625 6.5 15.9969 6.16563 15.9969 5.75V0.75C15.9969 0.334375 15.6625 0 15.2469 0H10.25C9.83438 0 9.5 0.334375 9.5 0.75ZM2.25 1C1.00625 1 0 2.00625 0 3.25V13.75C0 14.9937 1.00625 16 2.25 16H12.75C13.9937 16 15 14.9937 15 13.75V9.75C15 9.33438 14.6656 9 14.25 9C13.8344 9 13.5 9.33438 13.5 9.75V13.75C13.5 14.1656 13.1656 14.5 12.75 14.5H2.25C1.83438 14.5 1.5 14.1656 1.5 13.75V3.25C1.5 2.83437 1.83438 2.5 2.25 2.5H6.25C6.66563 2.5 7 2.16563 7 1.75C7 1.33438 6.66563 1 6.25 1H2.25Z"/></svg></a></p> <p><a href="https://www.sonarsource.com/products/sonarqube/" class="external-link" target="__blank" title="SonarQube" referrerpolicy="unsafe-url">SonarQube<svg width="16" height="16" viewbox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" class="css-bb4kds e162xago0"><path d="M9.5 0.75C9.5 1.16562 9.83438 1.5 10.25 1.5H13.4406L6.46875 8.46875C6.175 8.7625 6.175 9.2375 6.46875 9.52812C6.7625 9.81875 7.2375 9.82187 7.52812 9.52812L14.4969 2.55938V5.75C14.4969 6.16563 14.8313 6.5 15.2469 6.5C15.6625 6.5 15.9969 6.16563 15.9969 5.75V0.75C15.9969 0.334375 15.6625 0 15.2469 0H10.25C9.83438 0 9.5 0.334375 9.5 0.75ZM2.25 1C1.00625 1 0 2.00625 0 3.25V13.75C0 14.9937 1.00625 16 2.25 16H12.75C13.9937 16 15 14.9937 15 13.75V9.75C15 9.33438 14.6656 9 14.25 9C13.8344 9 13.5 9.33438 13.5 9.75V13.75C13.5 14.1656 13.1656 14.5 12.75 14.5H2.25C1.83438 14.5 1.5 14.1656 1.5 13.75V3.25C1.5 2.83437 1.83438 2.5 2.25 2.5H6.25C6.66563 2.5 7 2.16563 7 1.75C7 1.33438 6.66563 1 6.25 1H2.25Z"/></svg></a></p> <p><a href="https://community.sonarsource.com/" class="external-link" target="__blank" title="Community">Community<svg width="16" height="16" viewbox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" class="css-bb4kds e162xago0"><path d="M9.5 0.75C9.5 1.16562 9.83438 1.5 10.25 1.5H13.4406L6.46875 8.46875C6.175 8.7625 6.175 9.2375 6.46875 9.52812C6.7625 9.81875 7.2375 9.82187 7.52812 9.52812L14.4969 2.55938V5.75C14.4969 6.16563 14.8313 6.5 15.2469 6.5C15.6625 6.5 15.9969 6.16563 15.9969 5.75V0.75C15.9969 0.334375 15.6625 0 15.2469 0H10.25C9.83438 0 9.5 0.334375 9.5 0.75ZM2.25 1C1.00625 1 0 2.00625 0 3.25V13.75C0 14.9937 1.00625 16 2.25 16H12.75C13.9937 16 15 14.9937 15 13.75V9.75C15 9.33438 14.6656 9 14.25 9C13.8344 9 13.5 9.33438 13.5 9.75V13.75C13.5 14.1656 13.1656 14.5 12.75 14.5H2.25C1.83438 14.5 1.5 14.1656 1.5 13.75V3.25C1.5 2.83437 1.83438 2.5 2.25 2.5H6.25C6.66563 2.5 7 2.16563 7 1.75C7 1.33438 6.66563 1 6.25 1H2.25Z"/></svg></a></p> <p><a href="https://www.sonarsource.com/solutions/clean-code/" class="external-link" target="__blank" title="Clean Code" referrerpolicy="unsafe-url">Clean Code<svg width="16" height="16" viewbox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" class="css-bb4kds e162xago0"><path d="M9.5 0.75C9.5 1.16562 9.83438 1.5 10.25 1.5H13.4406L6.46875 8.46875C6.175 8.7625 6.175 9.2375 6.46875 9.52812C6.7625 9.81875 7.2375 9.82187 7.52812 9.52812L14.4969 2.55938V5.75C14.4969 6.16563 14.8313 6.5 15.2469 6.5C15.6625 6.5 15.9969 6.16563 15.9969 5.75V0.75C15.9969 0.334375 15.6625 0 15.2469 0H10.25C9.83438 0 9.5 0.334375 9.5 0.75ZM2.25 1C1.00625 1 0 2.00625 0 3.25V13.75C0 14.9937 1.00625 16 2.25 16H12.75C13.9937 16 15 14.9937 15 13.75V9.75C15 9.33438 14.6656 9 14.25 9C13.8344 9 13.5 9.33438 13.5 9.75V13.75C13.5 14.1656 13.1656 14.5 12.75 14.5H2.25C1.83438 14.5 1.5 14.1656 1.5 13.75V3.25C1.5 2.83437 1.83438 2.5 2.25 2.5H6.25C6.66563 2.5 7 2.16563 7 1.75C7 1.33438 6.66563 1 6.25 1H2.25Z"/></svg></a></p> <p><a href="https://twitter.com/Sonarsource" class="external-link" target="__blank" title="Twitter">Twitter<svg width="16" height="16" viewbox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" class="css-bb4kds e162xago0"><path d="M9.5 0.75C9.5 1.16562 9.83438 1.5 10.25 1.5H13.4406L6.46875 8.46875C6.175 8.7625 6.175 9.2375 6.46875 9.52812C6.7625 9.81875 7.2375 9.82187 7.52812 9.52812L14.4969 2.55938V5.75C14.4969 6.16563 14.8313 6.5 15.2469 6.5C15.6625 6.5 15.9969 6.16563 15.9969 5.75V0.75C15.9969 0.334375 15.6625 0 15.2469 0H10.25C9.83438 0 9.5 0.334375 9.5 0.75ZM2.25 1C1.00625 1 0 2.00625 0 3.25V13.75C0 14.9937 1.00625 16 2.25 16H12.75C13.9937 16 15 14.9937 15 13.75V9.75C15 9.33438 14.6656 9 14.25 9C13.8344 9 13.5 9.33438 13.5 9.75V13.75C13.5 14.1656 13.1656 14.5 12.75 14.5H2.25C1.83438 14.5 1.5 14.1656 1.5 13.75V3.25C1.5 2.83437 1.83438 2.5 2.25 2.5H6.25C6.66563 2.5 7 2.16563 7 1.75C7 1.33438 6.66563 1 6.25 1H2.25Z"/></svg></a></p> <p><br/></p></div></nav></div><style data-emotion="css 1d4gxls">.css-1d4gxls{position:relative;min-height:100vh;--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding-bottom:2rem;margin-left:362px;min-width:740px;}</style><div class="css-1d4gxls e1xjpii30"><style data-emotion="css 1tfs953">.css-1tfs953{margin:auto;min-width:860px;max-width:1200px;padding-top:4rem;padding-bottom:4rem;padding-left:6rem;}</style><div class="css-1tfs953 e19nvsai2"><style data-emotion="css kfibva">.css-kfibva{margin-bottom:2.75rem;font-size:1.4rem;--tw-text-opacity:1;color:rgb(0 0 0 / var(--tw-text-opacity));}</style><div class="css-kfibva e19l5zns0">9.8 | Analyzing source code | Branches | Branch analysis</div><style data-emotion="css pyxnnm">.css-pyxnnm{float:right;width:220px;padding-left:2rem;}</style><div class="css-pyxnnm e1ec8lza5"><style data-emotion="css 564sfo">.css-564sfo{position:fixed;top:109px;width:inherit;padding-left:1.5rem;padding-right:24px;border-left-width:1px;--tw-border-opacity:1;border-left-color:rgb(211 220 233 / var(--tw-border-opacity));}</style><div class="css-564sfo e1ec8lza4"><style data-emotion="css 1p3nkry">.css-1p3nkry{margin-bottom:1.25rem;font-size:1.6rem;font-weight:500;}</style><h3 class="css-1p3nkry e1ec8lza3">On this page</h3><style data-emotion="css j7qwjs">.css-j7qwjs{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}</style><div class="css-j7qwjs e1ec8lza2"><style data-emotion="css dk9z38">.css-dk9z38{margin-bottom:0.5rem;font-size:1.4rem;}</style><a class="css-dk9z38 e1ec8lza1" href="/sonarqube/9.8/analyzing-source-code/branches/branch-analysis/#Overview"><style data-emotion="css c980nq">.css-c980nq{display:inline-block;}.css-c980nq:hover{font-weight:500;--tw-text-opacity:1;color:rgb(41 0 66 / var(--tw-text-opacity));}</style><span class="css-c980nq e1ec8lza0"> <!-- -->Overview</span></a><a class="css-dk9z38 e1ec8lza1" href="/sonarqube/9.8/analyzing-source-code/branches/branch-analysis/#main-branch"><span class="css-c980nq e1ec8lza0"> <!-- -->Main branch</span></a><a class="css-dk9z38 e1ec8lza1" href="/sonarqube/9.8/analyzing-source-code/branches/branch-analysis/#branch-analysis"><span class="css-c980nq e1ec8lza0"> <!-- -->Setting up branch analysis</span></a><a class="css-dk9z38 e1ec8lza1" href="/sonarqube/9.8/analyzing-source-code/branches/branch-analysis/#inactive-branches"><span class="css-c980nq e1ec8lza0"> <!-- -->Managing inactive branches</span></a><a class="css-dk9z38 e1ec8lza1" href="/sonarqube/9.8/analyzing-source-code/branches/branch-analysis/#branch-history"><span class="css-c980nq e1ec8lza0"> <!-- -->Keeping your main branch history when upgrading from Community Edition to a commercial edition</span></a></div></div></div><style data-emotion="css 1xs91ms">.css-1xs91ms{padding-right:24rem;}</style><div class="css-1xs91ms e19nvsai1"><style data-emotion="css 701cx4">.css-701cx4{font-family:Saira,Saira-Fallback;--tw-text-opacity:1;color:rgb(41 0 66 / var(--tw-text-opacity));font-weight:600;font-size:3.2rem;margin-bottom:4rem;}</style><h1 class="css-701cx4 e19nvsai3">Branch analysis</h1><style data-emotion="css 1r4r8m2">.css-1r4r8m2{font-weight:400;line-height:1.5;--tw-text-opacity:1;color:rgb(59 63 68 / var(--tw-text-opacity));}.css-1r4r8m2 .table-responsive{word-break:break-all;}.css-1r4r8m2 .table-responsive table{margin-bottom:2rem;margin-top:0.75rem;min-width:50%;border-collapse:collapse;border-width:1px;border-style:solid;--tw-border-opacity:1;border-color:rgb(230 230 230 / var(--tw-border-opacity));}.css-1r4r8m2 .table-responsive tr:first-of-type{--tw-bg-opacity:1;background-color:rgb(243 243 243 / var(--tw-bg-opacity));text-align:center;}.css-1r4r8m2 .table-responsive th,.css-1r4r8m2 .table-responsive tr,.css-1r4r8m2 .table-responsive td{border-collapse:collapse;border-width:1px;border-style:solid;--tw-border-opacity:1;border-color:rgb(230 230 230 / var(--tw-border-opacity));padding-left:10px;padding-right:10px;padding-top:5px;padding-bottom:5px;overflow-wrap:break-word;max-width:800px;}.css-1r4r8m2 .table-responsive *{max-width:800px;}.css-1r4r8m2 h2,.css-1r4r8m2 h3,.css-1r4r8m2 h4,.css-1r4r8m2 h5,.css-1r4r8m2 h6{font-weight:700;--tw-text-opacity:1;color:rgb(0 0 0 / var(--tw-text-opacity));}.css-1r4r8m2 h2~h3,.css-1r4r8m2 h3~h4,.css-1r4r8m2 h4~h5,.css-1r4r8m2 h5~h6{margin-top:0px;}.css-1r4r8m2 h2{font-size:2.4rem;padding-bottom:0.5rem;}.css-1r4r8m2 h3{padding-bottom:0.25rem;font-size:2.1rem;}.css-1r4r8m2 h4{padding-bottom:0.25rem;font-size:1.8rem;}.css-1r4r8m2 h5{padding-bottom:0.25rem;font-size:1.8rem;}.css-1r4r8m2 h6{padding-bottom:0.25rem;font-size:1.6rem;}.css-1r4r8m2 p{margin-bottom:1.5rem;}.css-1r4r8m2 p+pre{margin-top:-1rem;}.css-1r4r8m2 img{max-height:100%;max-width:100%;}.css-1r4r8m2 ol,.css-1r4r8m2 ul{margin-bottom:2rem;padding-left:2.5rem;}.css-1r4r8m2 ul{list-style-type:disc;}.css-1r4r8m2 ol{list-style-type:decimal;}.css-1r4r8m2 li{margin-bottom:1rem;}.css-1r4r8m2 a.external-link,.css-1r4r8m2 a.internal-link{--tw-text-opacity:1;color:rgb(34 40 164 / var(--tw-text-opacity));text-decoration-line:none;font-weight:500;}.css-1r4r8m2 a.external-link:hover,.css-1r4r8m2 a.internal-link:hover{--tw-text-opacity:1;color:rgb(41 0 66 / var(--tw-text-opacity));}.css-1r4r8m2 a.external-link.external-link span:hover,.css-1r4r8m2 a.internal-link.external-link span:hover,.css-1r4r8m2 a.external-link.external-link strong:hover,.css-1r4r8m2 a.internal-link.external-link strong:hover,.css-1r4r8m2 a.external-link.external-link em:hover,.css-1r4r8m2 a.internal-link.external-link em:hover{--tw-text-opacity:1;color:rgb(41 0 66 / var(--tw-text-opacity));}.css-1r4r8m2 a.external-link.external-link svg,.css-1r4r8m2 a.internal-link.external-link svg{margin-bottom:0.25rem;fill:#5F656D;width:1rem;}.css-1r4r8m2 a.external-link.external-link svg:hover,.css-1r4r8m2 a.internal-link.external-link svg:hover{fill:#39057B;}.css-1r4r8m2 pre{margin-bottom:1.25rem;padding-left:1.25rem;padding-right:1.25rem;padding-top:1.75rem;padding-bottom:1.75rem;line-height:2rem;--tw-bg-opacity:1;background-color:rgb(244 247 251 / var(--tw-bg-opacity));border-width:1px;--tw-border-opacity:1;border-color:rgb(211 220 233 / var(--tw-border-opacity));}.css-1r4r8m2 code{display:inline-block;--tw-bg-opacity:1;background-color:rgb(244 247 251 / var(--tw-bg-opacity));font-size:1.6rem;word-break:break-word;padding-left:4px;padding-right:4px;font-family:monospace;}.css-1r4r8m2 blockquote{border-left-width:4px;border-style:solid;--tw-border-opacity:1;border-color:rgb(228 228 228 / var(--tw-border-opacity));line-height:1.5;margin-left:0px;margin-right:0px;margin-top:20px;margin-bottom:20px;padding-left:15;padding-right:15;padding-top:0px;padding-bottom:0px;}.css-1r4r8m2 figure{margin-bottom:2rem;}</style><div class="css-1r4r8m2 e19nvsai0"><p><em>Branch analysis is available starting in </em><a href="https://www.sonarsource.com/plans-and-pricing/developer/" class="external-link" target="__blank" title="Developer Edition" referrerpolicy="unsafe-url"><em>Developer Edition</em><style data-emotion="css bb4kds">.css-bb4kds{margin-left:0.5rem;display:inline-block;}</style><svg width="16" height="16" viewbox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" class="css-bb4kds e162xago0"><path d="M9.5 0.75C9.5 1.16562 9.83438 1.5 10.25 1.5H13.4406L6.46875 8.46875C6.175 8.7625 6.175 9.2375 6.46875 9.52812C6.7625 9.81875 7.2375 9.82187 7.52812 9.52812L14.4969 2.55938V5.75C14.4969 6.16563 14.8313 6.5 15.2469 6.5C15.6625 6.5 15.9969 6.16563 15.9969 5.75V0.75C15.9969 0.334375 15.6625 0 15.2469 0H10.25C9.83438 0 9.5 0.334375 9.5 0.75ZM2.25 1C1.00625 1 0 2.00625 0 3.25V13.75C0 14.9937 1.00625 16 2.25 16H12.75C13.9937 16 15 14.9937 15 13.75V9.75C15 9.33438 14.6656 9 14.25 9C13.8344 9 13.5 9.33438 13.5 9.75V13.75C13.5 14.1656 13.1656 14.5 12.75 14.5H2.25C1.83438 14.5 1.5 14.1656 1.5 13.75V3.25C1.5 2.83437 1.83438 2.5 2.25 2.5H6.25C6.66563 2.5 7 2.16563 7 1.75C7 1.33438 6.66563 1 6.25 1H2.25Z"/></svg></a><em>.</em></p> <style data-emotion="css 18d4ktp">.css-18d4ktp{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:1rem;margin-top:3rem;font-size:2.4rem;font-weight:700;}.css-18d4ktp:hover svg{display:inline-block;}</style><h2 id="Overview" class="css-18d4ktp ewop7ah2"><style data-emotion="css 4ebt6d">.css-4ebt6d{position:relative;--tw-text-opacity:1;color:rgb(0 0 0 / var(--tw-text-opacity));}</style><a title="Overview" class="css-4ebt6d ewop7ah1" href="/sonarqube/9.8/analyzing-source-code/branches/branch-analysis/#Overview">Overview<style data-emotion="css abpesc">.css-abpesc{width:2rem;;margin-left:0.5rem;fill:#5F656D;}.css-abpesc:hover{fill:#290042;}</style><svg type="h2" height="24" viewbox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="css-abpesc ewop7ah0"><path d="M8.46588 12.7069C9.59888 13.8399 11.5749 13.8399 12.7079 12.7069L13.4149 11.9999L14.8289 13.4139L14.1219 14.1209C13.1789 15.0649 11.9229 15.5859 10.5869 15.5859C9.25088 15.5859 7.99488 15.0649 7.05188 14.1209L4.92988 11.9999C3.99417 11.0612 3.46875 9.78985 3.46875 8.46444C3.46875 7.13902 3.99417 5.86765 4.92988 4.92894C5.39375 4.4644 5.94484 4.0961 6.55149 3.8452C7.15814 3.59431 7.80839 3.46575 8.46488 3.46693C9.12154 3.46557 9.77199 3.59403 10.3788 3.84493C10.9857 4.09584 11.5369 4.46424 12.0009 4.92894L12.7079 5.63594L11.2939 7.04994L10.5869 6.34294C10.0233 5.78193 9.26055 5.46697 8.46538 5.46697C7.67021 5.46697 6.90741 5.78193 6.34388 6.34294C5.78238 6.90621 5.46708 7.6691 5.46708 8.46444C5.46708 9.25977 5.78238 10.0227 6.34388 10.5859L8.46588 12.7069Z"/><path d="M11.9999 19.0713L11.2929 18.3643L12.7069 16.9503L13.4139 17.6573C13.9774 18.2183 14.7402 18.5332 15.5354 18.5332C16.3305 18.5332 17.0933 18.2183 17.6569 17.6573C18.2184 17.094 18.5337 16.3311 18.5337 15.5357C18.5337 14.7404 18.2184 13.9775 17.6569 13.4142L15.5349 11.2933C14.4019 10.1602 12.4259 10.1602 11.2929 11.2933L10.5859 12.0002L9.17188 10.5863L9.87887 9.87925C10.8219 8.93525 12.0779 8.41425 13.4139 8.41425C14.7499 8.41425 16.0059 8.93525 16.9489 9.87925L19.0709 12.0002C20.0066 12.939 20.532 14.2103 20.532 15.5357C20.532 16.8612 20.0066 18.1325 19.0709 19.0713C18.1324 20.0074 16.861 20.5332 15.5354 20.5332C14.2098 20.5332 12.9383 20.0074 11.9999 19.0713Z"/></svg></a></h2> <p>With branch analysis, you can ensure that you're maintaining consistent code quality all the way down to the branch level of your projects.</p> <h2 id="main-branch" class="css-18d4ktp ewop7ah2"><a title="Main branch" class="css-4ebt6d ewop7ah1" href="/sonarqube/9.8/analyzing-source-code/branches/branch-analysis/#main-branch">Main branch<svg type="h2" height="24" viewbox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="css-abpesc ewop7ah0"><path d="M8.46588 12.7069C9.59888 13.8399 11.5749 13.8399 12.7079 12.7069L13.4149 11.9999L14.8289 13.4139L14.1219 14.1209C13.1789 15.0649 11.9229 15.5859 10.5869 15.5859C9.25088 15.5859 7.99488 15.0649 7.05188 14.1209L4.92988 11.9999C3.99417 11.0612 3.46875 9.78985 3.46875 8.46444C3.46875 7.13902 3.99417 5.86765 4.92988 4.92894C5.39375 4.4644 5.94484 4.0961 6.55149 3.8452C7.15814 3.59431 7.80839 3.46575 8.46488 3.46693C9.12154 3.46557 9.77199 3.59403 10.3788 3.84493C10.9857 4.09584 11.5369 4.46424 12.0009 4.92894L12.7079 5.63594L11.2939 7.04994L10.5869 6.34294C10.0233 5.78193 9.26055 5.46697 8.46538 5.46697C7.67021 5.46697 6.90741 5.78193 6.34388 6.34294C5.78238 6.90621 5.46708 7.6691 5.46708 8.46444C5.46708 9.25977 5.78238 10.0227 6.34388 10.5859L8.46588 12.7069Z"/><path d="M11.9999 19.0713L11.2929 18.3643L12.7069 16.9503L13.4139 17.6573C13.9774 18.2183 14.7402 18.5332 15.5354 18.5332C16.3305 18.5332 17.0933 18.2183 17.6569 17.6573C18.2184 17.094 18.5337 16.3311 18.5337 15.5357C18.5337 14.7404 18.2184 13.9775 17.6569 13.4142L15.5349 11.2933C14.4019 10.1602 12.4259 10.1602 11.2929 11.2933L10.5859 12.0002L9.17188 10.5863L9.87887 9.87925C10.8219 8.93525 12.0779 8.41425 13.4139 8.41425C14.7499 8.41425 16.0059 8.93525 16.9489 9.87925L19.0709 12.0002C20.0066 12.939 20.532 14.2103 20.532 15.5357C20.532 16.8612 20.0066 18.1325 19.0709 19.0713C18.1324 20.0074 16.861 20.5332 15.5354 20.5332C14.2098 20.5332 12.9383 20.0074 11.9999 19.0713Z"/></svg></a></h2> <p>This is the default branch and typically corresponds to what's being developed for your next release. This branch is usually known within a development team as "main", "develop" or "head" and is analyzed when no specific branch parameters are provided. SonarQube labels this branch as <strong>Main Branch</strong>, and, with Community Edition, this is the only branch you can analyze.</p> <p>Adding projects by DevOps Platform copies the main branch name in SonarQube from the main branch name in your repository. See <strong>DevOps Platform Integrations</strong> in the documentation navigation for more information on adding your project from an DevOps Platform.</p> <p>If you add your project manually, your main branch defaults to the name <code>main</code>.</p> <p>Starting in <a href="https://www.sonarsource.com/plans-and-pricing/developer/" class="external-link" target="__blank" title="Developer Edition" referrerpolicy="unsafe-url"><em>Developer Edition</em><svg width="16" height="16" viewbox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" class="css-bb4kds e162xago0"><path d="M9.5 0.75C9.5 1.16562 9.83438 1.5 10.25 1.5H13.4406L6.46875 8.46875C6.175 8.7625 6.175 9.2375 6.46875 9.52812C6.7625 9.81875 7.2375 9.82187 7.52812 9.52812L14.4969 2.55938V5.75C14.4969 6.16563 14.8313 6.5 15.2469 6.5C15.6625 6.5 15.9969 6.16563 15.9969 5.75V0.75C15.9969 0.334375 15.6625 0 15.2469 0H10.25C9.83438 0 9.5 0.334375 9.5 0.75ZM2.25 1C1.00625 1 0 2.00625 0 3.25V13.75C0 14.9937 1.00625 16 2.25 16H12.75C13.9937 16 15 14.9937 15 13.75V9.75C15 9.33438 14.6656 9 14.25 9C13.8344 9 13.5 9.33438 13.5 9.75V13.75C13.5 14.1656 13.1656 14.5 12.75 14.5H2.25C1.83438 14.5 1.5 14.1656 1.5 13.75V3.25C1.5 2.83437 1.83438 2.5 2.25 2.5H6.25C6.66563 2.5 7 2.16563 7 1.75C7 1.33438 6.66563 1 6.25 1H2.25Z"/></svg></a>, your main branch can be renamed from the project settings at <strong>Project Settings </strong>><strong> Branches and Pull Requests</strong>.</p> <h3 id="settings-and-quality-profiles-on-branches" class="css-18d4ktp ewop7ah2"><a title="Settings and quality profiles on branches" class="css-4ebt6d ewop7ah1" href="/sonarqube/9.8/analyzing-source-code/branches/branch-analysis/#settings-and-quality-profiles-on-branches">Settings and quality profiles on branches<style data-emotion="css p7dib0">.css-p7dib0{width:1.75rem;;margin-left:0.5rem;fill:#5F656D;}.css-p7dib0:hover{fill:#290042;}</style><svg type="h3" height="24" viewbox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="css-p7dib0 ewop7ah0"><path d="M8.46588 12.7069C9.59888 13.8399 11.5749 13.8399 12.7079 12.7069L13.4149 11.9999L14.8289 13.4139L14.1219 14.1209C13.1789 15.0649 11.9229 15.5859 10.5869 15.5859C9.25088 15.5859 7.99488 15.0649 7.05188 14.1209L4.92988 11.9999C3.99417 11.0612 3.46875 9.78985 3.46875 8.46444C3.46875 7.13902 3.99417 5.86765 4.92988 4.92894C5.39375 4.4644 5.94484 4.0961 6.55149 3.8452C7.15814 3.59431 7.80839 3.46575 8.46488 3.46693C9.12154 3.46557 9.77199 3.59403 10.3788 3.84493C10.9857 4.09584 11.5369 4.46424 12.0009 4.92894L12.7079 5.63594L11.2939 7.04994L10.5869 6.34294C10.0233 5.78193 9.26055 5.46697 8.46538 5.46697C7.67021 5.46697 6.90741 5.78193 6.34388 6.34294C5.78238 6.90621 5.46708 7.6691 5.46708 8.46444C5.46708 9.25977 5.78238 10.0227 6.34388 10.5859L8.46588 12.7069Z"/><path d="M11.9999 19.0713L11.2929 18.3643L12.7069 16.9503L13.4139 17.6573C13.9774 18.2183 14.7402 18.5332 15.5354 18.5332C16.3305 18.5332 17.0933 18.2183 17.6569 17.6573C18.2184 17.094 18.5337 16.3311 18.5337 15.5357C18.5337 14.7404 18.2184 13.9775 17.6569 13.4142L15.5349 11.2933C14.4019 10.1602 12.4259 10.1602 11.2929 11.2933L10.5859 12.0002L9.17188 10.5863L9.87887 9.87925C10.8219 8.93525 12.0779 8.41425 13.4139 8.41425C14.7499 8.41425 16.0059 8.93525 16.9489 9.87925L19.0709 12.0002C20.0066 12.939 20.532 14.2103 20.532 15.5357C20.532 16.8612 20.0066 18.1325 19.0709 19.0713C18.1324 20.0074 16.861 20.5332 15.5354 20.5332C14.2098 20.5332 12.9383 20.0074 11.9999 19.0713Z"/></svg></a></h3> <p>Branch settings and quality profiles are the same as those set for the main branch, and by design, it's not possible to configure other values. The new code definition is the only exception to this as it can be set on a branch-by-branch basis.</p> <h3 id="new-code" class="css-18d4ktp ewop7ah2"><a title="New code" class="css-4ebt6d ewop7ah1" href="/sonarqube/9.8/analyzing-source-code/branches/branch-analysis/#new-code">New code<svg type="h3" height="24" viewbox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="css-p7dib0 ewop7ah0"><path d="M8.46588 12.7069C9.59888 13.8399 11.5749 13.8399 12.7079 12.7069L13.4149 11.9999L14.8289 13.4139L14.1219 14.1209C13.1789 15.0649 11.9229 15.5859 10.5869 15.5859C9.25088 15.5859 7.99488 15.0649 7.05188 14.1209L4.92988 11.9999C3.99417 11.0612 3.46875 9.78985 3.46875 8.46444C3.46875 7.13902 3.99417 5.86765 4.92988 4.92894C5.39375 4.4644 5.94484 4.0961 6.55149 3.8452C7.15814 3.59431 7.80839 3.46575 8.46488 3.46693C9.12154 3.46557 9.77199 3.59403 10.3788 3.84493C10.9857 4.09584 11.5369 4.46424 12.0009 4.92894L12.7079 5.63594L11.2939 7.04994L10.5869 6.34294C10.0233 5.78193 9.26055 5.46697 8.46538 5.46697C7.67021 5.46697 6.90741 5.78193 6.34388 6.34294C5.78238 6.90621 5.46708 7.6691 5.46708 8.46444C5.46708 9.25977 5.78238 10.0227 6.34388 10.5859L8.46588 12.7069Z"/><path d="M11.9999 19.0713L11.2929 18.3643L12.7069 16.9503L13.4139 17.6573C13.9774 18.2183 14.7402 18.5332 15.5354 18.5332C16.3305 18.5332 17.0933 18.2183 17.6569 17.6573C18.2184 17.094 18.5337 16.3311 18.5337 15.5357C18.5337 14.7404 18.2184 13.9775 17.6569 13.4142L15.5349 11.2933C14.4019 10.1602 12.4259 10.1602 11.2929 11.2933L10.5859 12.0002L9.17188 10.5863L9.87887 9.87925C10.8219 8.93525 12.0779 8.41425 13.4139 8.41425C14.7499 8.41425 16.0059 8.93525 16.9489 9.87925L19.0709 12.0002C20.0066 12.939 20.532 14.2103 20.532 15.5357C20.532 16.8612 20.0066 18.1325 19.0709 19.0713C18.1324 20.0074 16.861 20.5332 15.5354 20.5332C14.2098 20.5332 12.9383 20.0074 11.9999 19.0713Z"/></svg></a></h3> <p>You can set a new code definition for each branch. This is especially helpful if you are likely to develop and release multiple versions from the branch. See the <a class="internal-link" title="Defining new code" href="/sonarqube/9.8/project-administration/defining-new-code/">Defining new code</a> documentation for more information, and look at the <a class="internal-link" title="Clean as You Code" href="/sonarqube/9.8/user-guide/clean-as-you-code/">Clean as You Code</a> strategy to learn how to implement this best practice.</p> <h3 id="quality-gate" class="css-18d4ktp ewop7ah2"><a title="Quality gate" class="css-4ebt6d ewop7ah1" href="/sonarqube/9.8/analyzing-source-code/branches/branch-analysis/#quality-gate">Quality gate<svg type="h3" height="24" viewbox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="css-p7dib0 ewop7ah0"><path d="M8.46588 12.7069C9.59888 13.8399 11.5749 13.8399 12.7079 12.7069L13.4149 11.9999L14.8289 13.4139L14.1219 14.1209C13.1789 15.0649 11.9229 15.5859 10.5869 15.5859C9.25088 15.5859 7.99488 15.0649 7.05188 14.1209L4.92988 11.9999C3.99417 11.0612 3.46875 9.78985 3.46875 8.46444C3.46875 7.13902 3.99417 5.86765 4.92988 4.92894C5.39375 4.4644 5.94484 4.0961 6.55149 3.8452C7.15814 3.59431 7.80839 3.46575 8.46488 3.46693C9.12154 3.46557 9.77199 3.59403 10.3788 3.84493C10.9857 4.09584 11.5369 4.46424 12.0009 4.92894L12.7079 5.63594L11.2939 7.04994L10.5869 6.34294C10.0233 5.78193 9.26055 5.46697 8.46538 5.46697C7.67021 5.46697 6.90741 5.78193 6.34388 6.34294C5.78238 6.90621 5.46708 7.6691 5.46708 8.46444C5.46708 9.25977 5.78238 10.0227 6.34388 10.5859L8.46588 12.7069Z"/><path d="M11.9999 19.0713L11.2929 18.3643L12.7069 16.9503L13.4139 17.6573C13.9774 18.2183 14.7402 18.5332 15.5354 18.5332C16.3305 18.5332 17.0933 18.2183 17.6569 17.6573C18.2184 17.094 18.5337 16.3311 18.5337 15.5357C18.5337 14.7404 18.2184 13.9775 17.6569 13.4142L15.5349 11.2933C14.4019 10.1602 12.4259 10.1602 11.2929 11.2933L10.5859 12.0002L9.17188 10.5863L9.87887 9.87925C10.8219 8.93525 12.0779 8.41425 13.4139 8.41425C14.7499 8.41425 16.0059 8.93525 16.9489 9.87925L19.0709 12.0002C20.0066 12.939 20.532 14.2103 20.532 15.5357C20.532 16.8612 20.0066 18.1325 19.0709 19.0713C18.1324 20.0074 16.861 20.5332 15.5354 20.5332C14.2098 20.5332 12.9383 20.0074 11.9999 19.0713Z"/></svg></a></h3> <p>The branch quality gate lets you know if your branch is ready to be merged. Each branch has a quality gate that:</p> <li>Applies to conditions on new code and overall code.</li> <li>Assigns a status (passed or failed).</li> <h2 id="branch-analysis" class="css-18d4ktp ewop7ah2"><a title="Setting up branch analysis" class="css-4ebt6d ewop7ah1" href="/sonarqube/9.8/analyzing-source-code/branches/branch-analysis/#branch-analysis">Setting up branch analysis<svg type="h2" height="24" viewbox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="css-abpesc ewop7ah0"><path d="M8.46588 12.7069C9.59888 13.8399 11.5749 13.8399 12.7079 12.7069L13.4149 11.9999L14.8289 13.4139L14.1219 14.1209C13.1789 15.0649 11.9229 15.5859 10.5869 15.5859C9.25088 15.5859 7.99488 15.0649 7.05188 14.1209L4.92988 11.9999C3.99417 11.0612 3.46875 9.78985 3.46875 8.46444C3.46875 7.13902 3.99417 5.86765 4.92988 4.92894C5.39375 4.4644 5.94484 4.0961 6.55149 3.8452C7.15814 3.59431 7.80839 3.46575 8.46488 3.46693C9.12154 3.46557 9.77199 3.59403 10.3788 3.84493C10.9857 4.09584 11.5369 4.46424 12.0009 4.92894L12.7079 5.63594L11.2939 7.04994L10.5869 6.34294C10.0233 5.78193 9.26055 5.46697 8.46538 5.46697C7.67021 5.46697 6.90741 5.78193 6.34388 6.34294C5.78238 6.90621 5.46708 7.6691 5.46708 8.46444C5.46708 9.25977 5.78238 10.0227 6.34388 10.5859L8.46588 12.7069Z"/><path d="M11.9999 19.0713L11.2929 18.3643L12.7069 16.9503L13.4139 17.6573C13.9774 18.2183 14.7402 18.5332 15.5354 18.5332C16.3305 18.5332 17.0933 18.2183 17.6569 17.6573C18.2184 17.094 18.5337 16.3311 18.5337 15.5357C18.5337 14.7404 18.2184 13.9775 17.6569 13.4142L15.5349 11.2933C14.4019 10.1602 12.4259 10.1602 11.2929 11.2933L10.5859 12.0002L9.17188 10.5863L9.87887 9.87925C10.8219 8.93525 12.0779 8.41425 13.4139 8.41425C14.7499 8.41425 16.0059 8.93525 16.9489 9.87925L19.0709 12.0002C20.0066 12.939 20.532 14.2103 20.532 15.5357C20.532 16.8612 20.0066 18.1325 19.0709 19.0713C18.1324 20.0074 16.861 20.5332 15.5354 20.5332C14.2098 20.5332 12.9383 20.0074 11.9999 19.0713Z"/></svg></a></h2> <p>A branch is created when the <code>sonar.branch.name</code> parameter is passed during analysis.</p> <style data-emotion="css 1ibf46l">.css-1ibf46l{border-width:1px;border-style:solid;margin-bottom:2rem;padding-left:6rem;padding-right:1.5rem;padding-top:1.5rem;position:relative;--tw-bg-opacity:1;background-color:rgb(244 247 251 / var(--tw-bg-opacity));--tw-border-opacity:1;border-color:rgb(34 40 164 / var(--tw-border-opacity));}.css-1ibf46l::before{content:var(--tw-content);left:17px;top:19px;}.css-1ibf46l::before{content:var(--tw-content);height:28px;width:28px;background-repeat:no-repeat;-webkit-background-size:28px;background-size:28px;}.css-1ibf46l::before{content:var(--tw-content);background-image:url('/images/info.svg');}</style><div role="alert" class="css-1ibf46l e16d48ue1"><style data-emotion="css n3zwgj">.css-n3zwgj{margin-bottom:1.5rem;}.css-n3zwgj >*:last-child{margin-bottom:0px;}.css-n3zwgj code{font-size:1.8rem;}</style><div class="css-n3zwgj e16d48ue0"><p>Scanners can automatically detect branch parameters when running on the following CI services:</p> <li>Azure Pipelines</li> <li>Bitbucket Pipelines</li> <li>Cirrus CI</li> <li>Codemagic</li> <li>GitHub Actions</li> <li>GitLab CI/CD</li> <li>Jenkins (with the Branch Source plugin configured)</li> <p>Manually setting branch parameters overrides automatic detection.</p></div></div> <div class="table-responsive"><table><tbody><tr><td><strong>Parameter Name</strong></td><td><strong>Description</strong></td></tr><tr><td><code>sonar.branch.name</code></td><td>Name of the branch (visible in the UI)</td></tr></tbody></table></div> <h3 id="limiting-analysis-to-relevant-branches" class="css-18d4ktp ewop7ah2"><a title="Limiting analysis to relevant branches" class="css-4ebt6d ewop7ah1" href="/sonarqube/9.8/analyzing-source-code/branches/branch-analysis/#limiting-analysis-to-relevant-branches">Limiting analysis to relevant branches<svg type="h3" height="24" viewbox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="css-p7dib0 ewop7ah0"><path d="M8.46588 12.7069C9.59888 13.8399 11.5749 13.8399 12.7079 12.7069L13.4149 11.9999L14.8289 13.4139L14.1219 14.1209C13.1789 15.0649 11.9229 15.5859 10.5869 15.5859C9.25088 15.5859 7.99488 15.0649 7.05188 14.1209L4.92988 11.9999C3.99417 11.0612 3.46875 9.78985 3.46875 8.46444C3.46875 7.13902 3.99417 5.86765 4.92988 4.92894C5.39375 4.4644 5.94484 4.0961 6.55149 3.8452C7.15814 3.59431 7.80839 3.46575 8.46488 3.46693C9.12154 3.46557 9.77199 3.59403 10.3788 3.84493C10.9857 4.09584 11.5369 4.46424 12.0009 4.92894L12.7079 5.63594L11.2939 7.04994L10.5869 6.34294C10.0233 5.78193 9.26055 5.46697 8.46538 5.46697C7.67021 5.46697 6.90741 5.78193 6.34388 6.34294C5.78238 6.90621 5.46708 7.6691 5.46708 8.46444C5.46708 9.25977 5.78238 10.0227 6.34388 10.5859L8.46588 12.7069Z"/><path d="M11.9999 19.0713L11.2929 18.3643L12.7069 16.9503L13.4139 17.6573C13.9774 18.2183 14.7402 18.5332 15.5354 18.5332C16.3305 18.5332 17.0933 18.2183 17.6569 17.6573C18.2184 17.094 18.5337 16.3311 18.5337 15.5357C18.5337 14.7404 18.2184 13.9775 17.6569 13.4142L15.5349 11.2933C14.4019 10.1602 12.4259 10.1602 11.2929 11.2933L10.5859 12.0002L9.17188 10.5863L9.87887 9.87925C10.8219 8.93525 12.0779 8.41425 13.4139 8.41425C14.7499 8.41425 16.0059 8.93525 16.9489 9.87925L19.0709 12.0002C20.0066 12.939 20.532 14.2103 20.532 15.5357C20.532 16.8612 20.0066 18.1325 19.0709 19.0713C18.1324 20.0074 16.861 20.5332 15.5354 20.5332C14.2098 20.5332 12.9383 20.0074 11.9999 19.0713Z"/></svg></a></h3> <p>You need to add a condition to your pipeline script to ensure that only the relevant branches are analyzed. For example, you wouldn't want to run analysis on feature branches that won't need analysis until they have pull requests.</p> <p>In the following example, analysis would be limited to branches named <code>main</code> or <code>release/*</code>.</p> <figure><pre><code class="language-bash">if [[ "$CI_BRANCH_NAME" == main ]] || [[ "$CI_BRANCH_NAME" == release/* ]]; then ./gradlew sonarqube <h3 id="issue-creation-and-synchronization" class="css-18d4ktp ewop7ah2"><a title="Issue Creation and Synchronization" class="css-4ebt6d ewop7ah1" href="/sonarqube/9.8/analyzing-source-code/branches/branch-analysis/#issue-creation-and-synchronization">Issue Creation and Synchronization<svg type="h3" height="24" viewbox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="css-p7dib0 ewop7ah0"><path d="M8.46588 12.7069C9.59888 13.8399 11.5749 13.8399 12.7079 12.7069L13.4149 11.9999L14.8289 13.4139L14.1219 14.1209C13.1789 15.0649 11.9229 15.5859 10.5869 15.5859C9.25088 15.5859 7.99488 15.0649 7.05188 14.1209L4.92988 11.9999C3.99417 11.0612 3.46875 9.78985 3.46875 8.46444C3.46875 7.13902 3.99417 5.86765 4.92988 4.92894C5.39375 4.4644 5.94484 4.0961 6.55149 3.8452C7.15814 3.59431 7.80839 3.46575 8.46488 3.46693C9.12154 3.46557 9.77199 3.59403 10.3788 3.84493C10.9857 4.09584 11.5369 4.46424 12.0009 4.92894L12.7079 5.63594L11.2939 7.04994L10.5869 6.34294C10.0233 5.78193 9.26055 5.46697 8.46538 5.46697C7.67021 5.46697 6.90741 5.78193 6.34388 6.34294C5.78238 6.90621 5.46708 7.6691 5.46708 8.46444C5.46708 9.25977 5.78238 10.0227 6.34388 10.5859L8.46588 12.7069Z"/><path d="M11.9999 19.0713L11.2929 18.3643L12.7069 16.9503L13.4139 17.6573C13.9774 18.2183 14.7402 18.5332 15.5354 18.5332C16.3305 18.5332 17.0933 18.2183 17.6569 17.6573C18.2184 17.094 18.5337 16.3311 18.5337 15.5357C18.5337 14.7404 18.2184 13.9775 17.6569 13.4142L15.5349 11.2933C14.4019 10.1602 12.4259 10.1602 11.2929 11.2933L10.5859 12.0002L9.17188 10.5863L9.87887 9.87925C10.8219 8.93525 12.0779 8.41425 13.4139 8.41425C14.7499 8.41425 16.0059 8.93525 16.9489 9.87925L19.0709 12.0002C20.0066 12.939 20.532 14.2103 20.532 15.5357C20.532 16.8612 20.0066 18.1325 19.0709 19.0713C18.1324 20.0074 16.861 20.5332 15.5354 20.5332C14.2098 20.5332 12.9383 20.0074 11.9999 19.0713Z"/></svg></a></h3> <p>During the first analysis, issues (type, severity, status, assignee, change log, comments) are synchronized with the main branch. In each synchronized issue, a comment is added to the change log of the issue on the branch: <code>The issue has been copied from branch 'main' to branch '<branch>'.</code></p> <p>At each subsequent analysis of the branch, any new issue in the main branch that comes from a pull request automatically inherits its attributes (type, severity, etc.) from the pull request. A comment is added to the change log of the issue on the branch: <code>The issue has been merged from '<branch-1>' into '<branch-2>'</code></p> <p>Issues can be synchronized between branches if you're using the <strong>Reference Branch</strong> <a class="internal-link" title="new code definition" href="/sonarqube/9.8/project-administration/defining-new-code/">new code definition</a>. When using this new code definition, any new issue in the reference branch that comes from a feature branch automatically inherits its attributes (type, severity, etc.) from the feature branch. A comment is added to the change log of the issue on the branch: <code>The issue has been merged from '<branch-1>' into '<branch-2></code>.</p> <h3 id="fetching-full-git-history" class="css-18d4ktp ewop7ah2"><a title="Fetching full Git history" class="css-4ebt6d ewop7ah1" href="/sonarqube/9.8/analyzing-source-code/branches/branch-analysis/#fetching-full-git-history">Fetching full Git history<svg type="h3" height="24" viewbox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="css-p7dib0 ewop7ah0"><path d="M8.46588 12.7069C9.59888 13.8399 11.5749 13.8399 12.7079 12.7069L13.4149 11.9999L14.8289 13.4139L14.1219 14.1209C13.1789 15.0649 11.9229 15.5859 10.5869 15.5859C9.25088 15.5859 7.99488 15.0649 7.05188 14.1209L4.92988 11.9999C3.99417 11.0612 3.46875 9.78985 3.46875 8.46444C3.46875 7.13902 3.99417 5.86765 4.92988 4.92894C5.39375 4.4644 5.94484 4.0961 6.55149 3.8452C7.15814 3.59431 7.80839 3.46575 8.46488 3.46693C9.12154 3.46557 9.77199 3.59403 10.3788 3.84493C10.9857 4.09584 11.5369 4.46424 12.0009 4.92894L12.7079 5.63594L11.2939 7.04994L10.5869 6.34294C10.0233 5.78193 9.26055 5.46697 8.46538 5.46697C7.67021 5.46697 6.90741 5.78193 6.34388 6.34294C5.78238 6.90621 5.46708 7.6691 5.46708 8.46444C5.46708 9.25977 5.78238 10.0227 6.34388 10.5859L8.46588 12.7069Z"/><path d="M11.9999 19.0713L11.2929 18.3643L12.7069 16.9503L13.4139 17.6573C13.9774 18.2183 14.7402 18.5332 15.5354 18.5332C16.3305 18.5332 17.0933 18.2183 17.6569 17.6573C18.2184 17.094 18.5337 16.3311 18.5337 15.5357C18.5337 14.7404 18.2184 13.9775 17.6569 13.4142L15.5349 11.2933C14.4019 10.1602 12.4259 10.1602 11.2929 11.2933L10.5859 12.0002L9.17188 10.5863L9.87887 9.87925C10.8219 8.93525 12.0779 8.41425 13.4139 8.41425C14.7499 8.41425 16.0059 8.93525 16.9489 9.87925L19.0709 12.0002C20.0066 12.939 20.532 14.2103 20.532 15.5357C20.532 16.8612 20.0066 18.1325 19.0709 19.0713C18.1324 20.0074 16.861 20.5332 15.5354 20.5332C14.2098 20.5332 12.9383 20.0074 11.9999 19.0713Z"/></svg></a></h3> <p>By default, some CIs don't fetch your full Git history. For example, TravisCI only fetches the last 50 git commits. You must use <code>git fetch --unshallow</code> to get the full history. If you don't, new issues may not be assigned to the correct developer.</p> <h2 id="inactive-branches" class="css-18d4ktp ewop7ah2"><a title="Managing inactive branches" class="css-4ebt6d ewop7ah1" href="/sonarqube/9.8/analyzing-source-code/branches/branch-analysis/#inactive-branches">Managing inactive branches<svg type="h2" height="24" viewbox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="css-abpesc ewop7ah0"><path d="M8.46588 12.7069C9.59888 13.8399 11.5749 13.8399 12.7079 12.7069L13.4149 11.9999L14.8289 13.4139L14.1219 14.1209C13.1789 15.0649 11.9229 15.5859 10.5869 15.5859C9.25088 15.5859 7.99488 15.0649 7.05188 14.1209L4.92988 11.9999C3.99417 11.0612 3.46875 9.78985 3.46875 8.46444C3.46875 7.13902 3.99417 5.86765 4.92988 4.92894C5.39375 4.4644 5.94484 4.0961 6.55149 3.8452C7.15814 3.59431 7.80839 3.46575 8.46488 3.46693C9.12154 3.46557 9.77199 3.59403 10.3788 3.84493C10.9857 4.09584 11.5369 4.46424 12.0009 4.92894L12.7079 5.63594L11.2939 7.04994L10.5869 6.34294C10.0233 5.78193 9.26055 5.46697 8.46538 5.46697C7.67021 5.46697 6.90741 5.78193 6.34388 6.34294C5.78238 6.90621 5.46708 7.6691 5.46708 8.46444C5.46708 9.25977 5.78238 10.0227 6.34388 10.5859L8.46588 12.7069Z"/><path d="M11.9999 19.0713L11.2929 18.3643L12.7069 16.9503L13.4139 17.6573C13.9774 18.2183 14.7402 18.5332 15.5354 18.5332C16.3305 18.5332 17.0933 18.2183 17.6569 17.6573C18.2184 17.094 18.5337 16.3311 18.5337 15.5357C18.5337 14.7404 18.2184 13.9775 17.6569 13.4142L15.5349 11.2933C14.4019 10.1602 12.4259 10.1602 11.2929 11.2933L10.5859 12.0002L9.17188 10.5863L9.87887 9.87925C10.8219 8.93525 12.0779 8.41425 13.4139 8.41425C14.7499 8.41425 16.0059 8.93525 16.9489 9.87925L19.0709 12.0002C20.0066 12.939 20.532 14.2103 20.532 15.5357C20.532 16.8612 20.0066 18.1325 19.0709 19.0713C18.1324 20.0074 16.861 20.5332 15.5354 20.5332C14.2098 20.5332 12.9383 20.0074 11.9999 19.0713Z"/></svg></a></h2> <p>Inactive branches are branches that are no longer being analyzed. You can use housekeeping to automatically delete branches that are inactive (i.e. old feature branches) or to keep inactive branches that you want to continue maintaining (i.e. release branches).</p> <h3 id="deleting-inactive-branches" class="css-18d4ktp ewop7ah2"><a title="Deleting inactive branches" class="css-4ebt6d ewop7ah1" href="/sonarqube/9.8/analyzing-source-code/branches/branch-analysis/#deleting-inactive-branches">Deleting inactive branches<svg type="h3" height="24" viewbox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="css-p7dib0 ewop7ah0"><path d="M8.46588 12.7069C9.59888 13.8399 11.5749 13.8399 12.7079 12.7069L13.4149 11.9999L14.8289 13.4139L14.1219 14.1209C13.1789 15.0649 11.9229 15.5859 10.5869 15.5859C9.25088 15.5859 7.99488 15.0649 7.05188 14.1209L4.92988 11.9999C3.99417 11.0612 3.46875 9.78985 3.46875 8.46444C3.46875 7.13902 3.99417 5.86765 4.92988 4.92894C5.39375 4.4644 5.94484 4.0961 6.55149 3.8452C7.15814 3.59431 7.80839 3.46575 8.46488 3.46693C9.12154 3.46557 9.77199 3.59403 10.3788 3.84493C10.9857 4.09584 11.5369 4.46424 12.0009 4.92894L12.7079 5.63594L11.2939 7.04994L10.5869 6.34294C10.0233 5.78193 9.26055 5.46697 8.46538 5.46697C7.67021 5.46697 6.90741 5.78193 6.34388 6.34294C5.78238 6.90621 5.46708 7.6691 5.46708 8.46444C5.46708 9.25977 5.78238 10.0227 6.34388 10.5859L8.46588 12.7069Z"/><path d="M11.9999 19.0713L11.2929 18.3643L12.7069 16.9503L13.4139 17.6573C13.9774 18.2183 14.7402 18.5332 15.5354 18.5332C16.3305 18.5332 17.0933 18.2183 17.6569 17.6573C18.2184 17.094 18.5337 16.3311 18.5337 15.5357C18.5337 14.7404 18.2184 13.9775 17.6569 13.4142L15.5349 11.2933C14.4019 10.1602 12.4259 10.1602 11.2929 11.2933L10.5859 12.0002L9.17188 10.5863L9.87887 9.87925C10.8219 8.93525 12.0779 8.41425 13.4139 8.41425C14.7499 8.41425 16.0059 8.93525 16.9489 9.87925L19.0709 12.0002C20.0066 12.939 20.532 14.2103 20.532 15.5357C20.532 16.8612 20.0066 18.1325 19.0709 19.0713C18.1324 20.0074 16.861 20.5332 15.5354 20.5332C14.2098 20.5332 12.9383 20.0074 11.9999 19.0713Z"/></svg></a></h3> <p>You can set the number of days a branch can be inactive before it's deleted in the global settings at <strong>Administration </strong>><strong> General Settings </strong>><strong> Housekeeping </strong>><strong> Number of days before deleting inactive branches</strong>. Branches that are inactive for the number of days that you set will be automatically deleted.</p> <h3 id="using-patterns-to-keep-inactive-branches" class="css-18d4ktp ewop7ah2"><a title="Using patterns to keep inactive branches" class="css-4ebt6d ewop7ah1" href="/sonarqube/9.8/analyzing-source-code/branches/branch-analysis/#using-patterns-to-keep-inactive-branches">Using patterns to keep inactive branches<svg type="h3" height="24" viewbox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="css-p7dib0 ewop7ah0"><path d="M8.46588 12.7069C9.59888 13.8399 11.5749 13.8399 12.7079 12.7069L13.4149 11.9999L14.8289 13.4139L14.1219 14.1209C13.1789 15.0649 11.9229 15.5859 10.5869 15.5859C9.25088 15.5859 7.99488 15.0649 7.05188 14.1209L4.92988 11.9999C3.99417 11.0612 3.46875 9.78985 3.46875 8.46444C3.46875 7.13902 3.99417 5.86765 4.92988 4.92894C5.39375 4.4644 5.94484 4.0961 6.55149 3.8452C7.15814 3.59431 7.80839 3.46575 8.46488 3.46693C9.12154 3.46557 9.77199 3.59403 10.3788 3.84493C10.9857 4.09584 11.5369 4.46424 12.0009 4.92894L12.7079 5.63594L11.2939 7.04994L10.5869 6.34294C10.0233 5.78193 9.26055 5.46697 8.46538 5.46697C7.67021 5.46697 6.90741 5.78193 6.34388 6.34294C5.78238 6.90621 5.46708 7.6691 5.46708 8.46444C5.46708 9.25977 5.78238 10.0227 6.34388 10.5859L8.46588 12.7069Z"/><path d="M11.9999 19.0713L11.2929 18.3643L12.7069 16.9503L13.4139 17.6573C13.9774 18.2183 14.7402 18.5332 15.5354 18.5332C16.3305 18.5332 17.0933 18.2183 17.6569 17.6573C18.2184 17.094 18.5337 16.3311 18.5337 15.5357C18.5337 14.7404 18.2184 13.9775 17.6569 13.4142L15.5349 11.2933C14.4019 10.1602 12.4259 10.1602 11.2929 11.2933L10.5859 12.0002L9.17188 10.5863L9.87887 9.87925C10.8219 8.93525 12.0779 8.41425 13.4139 8.41425C14.7499 8.41425 16.0059 8.93525 16.9489 9.87925L19.0709 12.0002C20.0066 12.939 20.532 14.2103 20.532 15.5357C20.532 16.8612 20.0066 18.1325 19.0709 19.0713C18.1324 20.0074 16.861 20.5332 15.5354 20.5332C14.2098 20.5332 12.9383 20.0074 11.9999 19.0713Z"/></svg></a></h3> <p>You can use naming patterns to protect specific branches, such as release branches, from automatic deletion. To do this, add a pattern using Java regular expressions under <strong>Administration </strong>><strong> General Settings </strong>><strong> Housekeeping </strong>><strong> Branches </strong>><strong> Branches to keep when inactive</strong> at either the global or project level. When a branch is created with a name that follows one of these patterns, it will be kept indefinitely.</p> <p>For example, adding the pattern <code>release/.*</code> would keep any branches named <code>release/6.0</code>, <code>release/7</code>, and so on.</p> <p><strong>Note:</strong> Patterns aren't retroactive and won't apply to branches that have already been created. They only apply to branches created after the pattern is set. You can protect an existing branch at the project level. See the following section.</p> <h3 id="managing-inactive-branches-at-a-project-level" class="css-18d4ktp ewop7ah2"><a title="Managing inactive branches at a project level" class="css-4ebt6d ewop7ah1" href="/sonarqube/9.8/analyzing-source-code/branches/branch-analysis/#managing-inactive-branches-at-a-project-level">Managing inactive branches at a project level<svg type="h3" height="24" viewbox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="css-p7dib0 ewop7ah0"><path d="M8.46588 12.7069C9.59888 13.8399 11.5749 13.8399 12.7079 12.7069L13.4149 11.9999L14.8289 13.4139L14.1219 14.1209C13.1789 15.0649 11.9229 15.5859 10.5869 15.5859C9.25088 15.5859 7.99488 15.0649 7.05188 14.1209L4.92988 11.9999C3.99417 11.0612 3.46875 9.78985 3.46875 8.46444C3.46875 7.13902 3.99417 5.86765 4.92988 4.92894C5.39375 4.4644 5.94484 4.0961 6.55149 3.8452C7.15814 3.59431 7.80839 3.46575 8.46488 3.46693C9.12154 3.46557 9.77199 3.59403 10.3788 3.84493C10.9857 4.09584 11.5369 4.46424 12.0009 4.92894L12.7079 5.63594L11.2939 7.04994L10.5869 6.34294C10.0233 5.78193 9.26055 5.46697 8.46538 5.46697C7.67021 5.46697 6.90741 5.78193 6.34388 6.34294C5.78238 6.90621 5.46708 7.6691 5.46708 8.46444C5.46708 9.25977 5.78238 10.0227 6.34388 10.5859L8.46588 12.7069Z"/><path d="M11.9999 19.0713L11.2929 18.3643L12.7069 16.9503L13.4139 17.6573C13.9774 18.2183 14.7402 18.5332 15.5354 18.5332C16.3305 18.5332 17.0933 18.2183 17.6569 17.6573C18.2184 17.094 18.5337 16.3311 18.5337 15.5357C18.5337 14.7404 18.2184 13.9775 17.6569 13.4142L15.5349 11.2933C14.4019 10.1602 12.4259 10.1602 11.2929 11.2933L10.5859 12.0002L9.17188 10.5863L9.87887 9.87925C10.8219 8.93525 12.0779 8.41425 13.4139 8.41425C14.7499 8.41425 16.0059 8.93525 16.9489 9.87925L19.0709 12.0002C20.0066 12.939 20.532 14.2103 20.532 15.5357C20.532 16.8612 20.0066 18.1325 19.0709 19.0713C18.1324 20.0074 16.861 20.5332 15.5354 20.5332C14.2098 20.5332 12.9383 20.0074 11.9999 19.0713Z"/></svg></a></h3> <p>You can set a branch to <strong>Keep when inactive</strong> at the project level from the <strong>Branches</strong> tab at <strong>Project Settings </strong>><strong> Branches and Pull Requests</strong>. Here, you can also turn off protection for a branch so it will be deleted when it's inactive for the number of days that have been specified in the global settings at <strong>Administration </strong>><strong> General Settings </strong>><strong> Housekeeping </strong>><strong> Number of days before deleting inactive branches</strong>.</p> <p><strong>Note:</strong> The main branch is always protected from automatic deletion, even if it's inactive. This can't be changed.</p> <h2 id="branch-history" class="css-18d4ktp ewop7ah2"><a title="Keeping your main branch history when upgrading from Community Edition to a commercial edition" class="css-4ebt6d ewop7ah1" href="/sonarqube/9.8/analyzing-source-code/branches/branch-analysis/#branch-history">Keeping your main branch history when upgrading from Community Edition to a commercial edition<svg type="h2" height="24" viewbox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="css-abpesc ewop7ah0"><path d="M8.46588 12.7069C9.59888 13.8399 11.5749 13.8399 12.7079 12.7069L13.4149 11.9999L14.8289 13.4139L14.1219 14.1209C13.1789 15.0649 11.9229 15.5859 10.5869 15.5859C9.25088 15.5859 7.99488 15.0649 7.05188 14.1209L4.92988 11.9999C3.99417 11.0612 3.46875 9.78985 3.46875 8.46444C3.46875 7.13902 3.99417 5.86765 4.92988 4.92894C5.39375 4.4644 5.94484 4.0961 6.55149 3.8452C7.15814 3.59431 7.80839 3.46575 8.46488 3.46693C9.12154 3.46557 9.77199 3.59403 10.3788 3.84493C10.9857 4.09584 11.5369 4.46424 12.0009 4.92894L12.7079 5.63594L11.2939 7.04994L10.5869 6.34294C10.0233 5.78193 9.26055 5.46697 8.46538 5.46697C7.67021 5.46697 6.90741 5.78193 6.34388 6.34294C5.78238 6.90621 5.46708 7.6691 5.46708 8.46444C5.46708 9.25977 5.78238 10.0227 6.34388 10.5859L8.46588 12.7069Z"/><path d="M11.9999 19.0713L11.2929 18.3643L12.7069 16.9503L13.4139 17.6573C13.9774 18.2183 14.7402 18.5332 15.5354 18.5332C16.3305 18.5332 17.0933 18.2183 17.6569 17.6573C18.2184 17.094 18.5337 16.3311 18.5337 15.5357C18.5337 14.7404 18.2184 13.9775 17.6569 13.4142L15.5349 11.2933C14.4019 10.1602 12.4259 10.1602 11.2929 11.2933L10.5859 12.0002L9.17188 10.5863L9.87887 9.87925C10.8219 8.93525 12.0779 8.41425 13.4139 8.41425C14.7499 8.41425 16.0059 8.93525 16.9489 9.87925L19.0709 12.0002C20.0066 12.939 20.532 14.2103 20.532 15.5357C20.532 16.8612 20.0066 18.1325 19.0709 19.0713C18.1324 20.0074 16.861 20.5332 15.5354 20.5332C14.2098 20.5332 12.9383 20.0074 11.9999 19.0713Z"/></svg></a></h2>
推荐文章
温暖的长颈鹿
·
2. 频率域 — PySDR: A Guide to SDR and DSP using Python
3 月前
深情的登山鞋
·
minio实现视频点播
4 月前
魁梧的羊肉串
·
Laravel 用法之 Database 模块 原生 SQL 及 查询构建器 | Redgo's Blog
6 月前
任性的滑板
·
typedef PACKED struct字节对齐详解 - Minisky - 博客园
1 年前
千年单身的佛珠
·
Hash转magnet magnet:?xt=urn:btih:_如何将哈希转化为bt链接_ddd...e_bug的博客-CSDN博客
1 年前