Browse Source

[NO-JIRA] Fix license headers

tags/9.4.0.54424
Philippe Perrin 2 years ago
parent
commit
e357e5dc3d

+ 1
- 1
NOTICE.txt View File

SonarQube SonarQube
Copyright (C) 2009-2021 SonarSource SA
Copyright (C) 2009-2022 SonarSource SA
mailto:info AT sonarsource DOT com mailto:info AT sonarsource DOT com


This product includes software developed at This product includes software developed at

+ 0
- 19
server/sonar-web/src/main/js/apps/component-measures/config/complementary.ts View File

*/ */
import { Dict } from '../../../types/types'; import { Dict } from '../../../types/types';


/*
* SonarQube
* Copyright (C) 2009-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
export const complementary: Dict<string[]> = { export const complementary: Dict<string[]> = {
coverage: ['uncovered_lines', 'uncovered_conditions'], coverage: ['uncovered_lines', 'uncovered_conditions'],
line_coverage: ['uncovered_lines'], line_coverage: ['uncovered_lines'],

+ 0
- 19
server/sonar-web/src/main/js/apps/projectBaseline/utils.ts View File

*/ */
import { NewCodePeriodSettingType } from '../../types/types'; import { NewCodePeriodSettingType } from '../../types/types';


/*
* SonarQube
* Copyright (C) 2009-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
export function validateDays(days: string) { export function validateDays(days: string) {
const parsed = parseInt(days, 10); const parsed = parseInt(days, 10);



+ 0
- 19
server/sonar-web/src/main/js/components/SourceViewer/helpers/getCoverageStatus.ts View File

*/ */
import { SourceLine, SourceLineCoverageStatus } from '../../../types/types'; import { SourceLine, SourceLineCoverageStatus } from '../../../types/types';


/*
* SonarQube
* Copyright (C) 2009-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
export default function getCoverageStatus(s: SourceLine): SourceLineCoverageStatus | undefined { export default function getCoverageStatus(s: SourceLine): SourceLineCoverageStatus | undefined {
let status: SourceLineCoverageStatus | undefined; let status: SourceLineCoverageStatus | undefined;
if (s.lineHits != null && s.lineHits > 0) { if (s.lineHits != null && s.lineHits > 0) {

+ 0
- 19
server/sonar-web/src/main/js/components/SourceViewer/helpers/issueLocations.ts View File

*/ */
import { FlowLocation, LinearIssueLocation, SourceLine, TextRange } from '../../../types/types'; import { FlowLocation, LinearIssueLocation, SourceLine, TextRange } from '../../../types/types';


/*
* SonarQube
* Copyright (C) 2009-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
export function getLinearLocations(textRange: TextRange | undefined): LinearIssueLocation[] { export function getLinearLocations(textRange: TextRange | undefined): LinearIssueLocation[] {
if (!textRange) { if (!textRange) {
return []; return [];

+ 0
- 19
server/sonar-web/src/main/js/helpers/users.ts View File

*/ */
import { CurrentUser, LoggedInUser, UserActive, UserBase } from '../types/types'; import { CurrentUser, LoggedInUser, UserActive, UserBase } from '../types/types';


/*
* SonarQube
* Copyright (C) 2009-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
export function hasGlobalPermission(user: CurrentUser, permission: string): boolean { export function hasGlobalPermission(user: CurrentUser, permission: string): boolean {
if (!user.permissions) { if (!user.permissions) {
return false; return false;

+ 0
- 19
server/sonar-web/src/main/js/types/alm-integration.ts View File

*/ */
import { Dict } from './types'; import { Dict } from './types';


/*
* SonarQube
* Copyright (C) 2009-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
export interface AzureProject { export interface AzureProject {
name: string; name: string;
description: string; description: string;

+ 0
- 19
server/sonar-web/src/main/js/types/branch-like.ts View File

*/ */
import { NewCodePeriod, Status } from './types'; import { NewCodePeriod, Status } from './types';


/*
* SonarQube
* Copyright (C) 2009-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
export interface Branch { export interface Branch {
analysisDate?: string; analysisDate?: string;
excludedFromPurge: boolean; excludedFromPurge: boolean;

+ 0
- 19
server/sonar-web/src/main/js/types/coding-rules.ts View File

*/ */
import { Dict, Rule, RuleActivation } from './types'; import { Dict, Rule, RuleActivation } from './types';


/*
* SonarQube
* Copyright (C) 2009-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
export interface GetRulesAppResponse { export interface GetRulesAppResponse {
canWrite?: boolean; canWrite?: boolean;
repositories: { key: string; language: string; name: string }[]; repositories: { key: string; language: string; name: string }[];

+ 0
- 19
server/sonar-web/src/main/js/types/component.ts View File

*/ */
import { LightComponent } from './types'; import { LightComponent } from './types';


/*
* SonarQube
* Copyright (C) 2009-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
export enum Visibility { export enum Visibility {
Public = 'public', Public = 'public',
Private = 'private' Private = 'private'

+ 0
- 19
server/sonar-web/src/main/js/types/issues.ts View File

*/ */
import { FlowLocation, Issue, Paging, TextRange, UserBase } from './types'; import { FlowLocation, Issue, Paging, TextRange, UserBase } from './types';


/*
* SonarQube
* Copyright (C) 2009-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
export enum IssueType { export enum IssueType {
CodeSmell = 'CODE_SMELL', CodeSmell = 'CODE_SMELL',
Vulnerability = 'VULNERABILITY', Vulnerability = 'VULNERABILITY',

+ 0
- 19
server/sonar-web/src/main/js/types/l10n.ts View File

*/ */
import { Dict } from './types'; import { Dict } from './types';


/*
* SonarQube
* Copyright (C) 2009-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
export interface L10nBundleRequestParams { export interface L10nBundleRequestParams {
locale?: string; locale?: string;
ts?: string; ts?: string;

+ 0
- 19
server/sonar-web/src/main/js/types/measures.ts View File

*/ */
import { ComponentMeasure, Metric, Period, PeriodMeasure } from './types'; import { ComponentMeasure, Metric, Period, PeriodMeasure } from './types';


/*
* SonarQube
* Copyright (C) 2009-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
export interface MeasuresForProjects { export interface MeasuresForProjects {
component: string; component: string;
metric: string; metric: string;

+ 0
- 19
server/sonar-web/src/main/js/types/project-dump.ts View File

*/ */
import { TaskStatuses } from './tasks'; import { TaskStatuses } from './tasks';


/*
* SonarQube
* Copyright (C) 2009-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
export interface DumpStatus { export interface DumpStatus {
canBeExported: boolean; canBeExported: boolean;
canBeImported: boolean; canBeImported: boolean;

+ 0
- 19
server/sonar-web/src/main/js/types/security.ts View File

*/ */
import { Dict } from './types'; import { Dict } from './types';


/*
* SonarQube
* Copyright (C) 2009-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
export enum SecurityStandard { export enum SecurityStandard {
OWASP_TOP10 = 'owaspTop10', OWASP_TOP10 = 'owaspTop10',
SANS_TOP25 = 'sansTop25', SANS_TOP25 = 'sansTop25',

+ 0
- 19
server/sonar-web/src/main/js/types/settings.ts View File

*/ */
import { Dict } from './types'; import { Dict } from './types';


/*
* SonarQube
* Copyright (C) 2009-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
export const enum SettingsKey { export const enum SettingsKey {
DaysBeforeDeletingInactiveBranchesAndPRs = 'sonar.dbcleaner.daysBeforeDeletingInactiveBranchesAndPRs', DaysBeforeDeletingInactiveBranchesAndPRs = 'sonar.dbcleaner.daysBeforeDeletingInactiveBranchesAndPRs',
DefaultProjectVisibility = 'projects.default.visibility', DefaultProjectVisibility = 'projects.default.visibility',

Loading…
Cancel
Save