Skip to content

Commit

Permalink
feat: Add license banner (#1062)
Browse files Browse the repository at this point in the history
* Add license comment to files. Add license checker.

* Fix empty line

* Review suggestions

* Fix licenserc.json and update license checker version

* Add one more folder to ignore

* Add license banner

Co-authored-by: solid-maxim <[email protected]>
  • Loading branch information
solid-tetianamovlian and solid-maxim authored Feb 8, 2021
1 parent a676c0a commit 2ca2651
Show file tree
Hide file tree
Showing 1,098 changed files with 3,316 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/metrics_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,3 +245,16 @@ jobs:

- name: Check links are pointing to master
run: dart scripts/links_checker/bin/main.dart validate --paths='${{ steps.files.outputs.added_modified }} ${{ steps.files.outputs.renamed}}'

check-license-actions:
name: Check License Actions
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
ref: ${{ github.ref }}
- name: Check the license in files
uses: kt3k/[email protected]
15 changes: 15 additions & 0 deletions .licenserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"**/*.{js,dart}": [
"// Use of this source code is governed by the Apache License, Version 2.0",
"// that can be found in the LICENSE file."
],
"ignore": [
"design/",
"docs/",
"metrics/docs/",
"metrics/ci_integrations/docs/",
"metrics/coverage_converter/docs/",
"metrics/deploy/docs/",
"metrics/web/docs/"
]
}
3 changes: 3 additions & 0 deletions api_mock_server/lib/api_mock_server.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

library api_mock_server;

export 'src/api_mock_server.dart';
Expand Down
3 changes: 3 additions & 0 deletions api_mock_server/lib/src/api_mock_server.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'dart:async';
import 'dart:io';

Expand Down
3 changes: 3 additions & 0 deletions api_mock_server/lib/src/auth_credentials.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'dart:io';

import 'package:meta/meta.dart';
Expand Down
3 changes: 3 additions & 0 deletions api_mock_server/lib/src/path_matcher/exact_path_matcher.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:api_mock_server/api_mock_server.dart';

/// A path matcher for exact path patterns.
Expand Down
3 changes: 3 additions & 0 deletions api_mock_server/lib/src/path_matcher/path_matcher.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:api_mock_server/api_mock_server.dart';

/// An abstract class representing a path matcher for the [RequestHandler].
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:api_mock_server/api_mock_server.dart';

/// A path matcher that checks paths using the [RegExp] provided.
Expand Down
3 changes: 3 additions & 0 deletions api_mock_server/lib/src/request_handler.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'dart:io';

import 'package:api_mock_server/api_mock_server.dart';
Expand Down
3 changes: 3 additions & 0 deletions api_mock_server/test/api_mock_server_test.dart
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

void main() {}
3 changes: 3 additions & 0 deletions guardian/bin/main.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'dart:io';

import 'package:args/command_runner.dart';
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/config/command/create_config_command.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:guardian/config/command/manage_config_command.dart';
import 'package:guardian/config/model/config.dart';

Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/config/command/delete_config_command.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:guardian/config/command/manage_config_command.dart';
import 'package:guardian/config/model/config.dart';

Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/config/command/manage_config_command.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:args/command_runner.dart';
import 'package:guardian/config/helper/config_helper.dart';
import 'package:guardian/config/model/config.dart';
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/config/command/print_config_command.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:guardian/config/command/manage_config_command.dart';
import 'package:guardian/config/model/config.dart';

Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/config/command/update_config_command.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:guardian/config/command/manage_config_command.dart';
import 'package:guardian/config/model/config.dart';

Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/config/helper/config_helper.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'dart:io';

import 'package:guardian/config/model/config.dart';
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/config/model/config.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:args/args.dart';
import 'package:meta/meta.dart';

Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/config/runner/config_runner.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:args/command_runner.dart';
import 'package:guardian/config/command/create_config_command.dart';
import 'package:guardian/config/command/delete_config_command.dart';
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/guardian.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

library guardian;

export 'runner/guardian_runner.dart';
3 changes: 3 additions & 0 deletions guardian/lib/jira/client/jira_client.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'dart:convert';

import 'package:guardian/jira/model/jira_config.dart';
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/jira/command/close_ticket_command.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:guardian/jira/command/jira_command.dart';

class CloseTicketCommand extends JiraCommand {
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/jira/command/jia_config_command.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:guardian/config/model/config.dart';
import 'package:guardian/config/runner/config_runner.dart';
import 'package:guardian/jira/model/jira_config.dart';
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/jira/command/jira_command.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:guardian/jira/model/jira_config.dart';
import 'package:guardian/runner/command/guardian_command.dart';

Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/jira/command/open_ticket_command.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:guardian/jira/client/jira_client.dart';
import 'package:guardian/jira/command/jira_command.dart';
import 'package:guardian/jira/model/jira_config.dart';
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/jira/command/update_ticket_command.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:guardian/jira/command/jira_command.dart';

class UpdateTicketCommand extends JiraCommand {
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/jira/model/jira_config.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:args/args.dart';
import 'package:guardian/config/model/config.dart';

Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/jira/model/ticket_manage_request.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:args/args.dart';

class OpenTicketRequest {
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/jira/runner/jira_runner.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:args/command_runner.dart';
import 'package:guardian/jira/command/close_ticket_command.dart';
import 'package:guardian/jira/command/jia_config_command.dart';
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/runner/command/guardian_command.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:args/command_runner.dart';
import 'package:guardian/config/helper/config_helper.dart';
import 'package:guardian/config/model/config.dart';
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/runner/guardian_runner.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:args/command_runner.dart';
import 'package:guardian/jira/runner/jira_runner.dart';
import 'package:guardian/runner/options/global_options.dart';
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/runner/options/global_options.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

class GlobalOptions {
static final _instance = GlobalOptions._();

Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/slack/client/slack_webhook_client.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'dart:convert';
import 'dart:io';

Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/slack/command/message_command.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'dart:io';

import 'package:args/args.dart';
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/slack/command/slack_command.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:guardian/runner/command/guardian_command.dart';
import 'package:guardian/slack/model/slack_config.dart';

Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/slack/command/slack_config_command.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:guardian/config/model/config.dart';
import 'package:guardian/config/runner/config_runner.dart';
import 'package:guardian/slack/model/slack_config.dart';
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/slack/model/slack_config.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:args/args.dart';
import 'package:guardian/config/model/config.dart';

Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/slack/model/slack_markdown_text_object.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:guardian/slack/model/slack_text_object.dart';
import 'package:meta/meta.dart';

Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/slack/model/slack_message.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:equatable/equatable.dart';
import 'package:guardian/slack/model/slack_section_block.dart';
import 'package:guardian/slack/model/validation_result.dart';
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/slack/model/slack_plain_text_object.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:guardian/slack/model/slack_text_object.dart';
import 'package:meta/meta.dart';

Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/slack/model/slack_result.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

/// A class containing a result for Slack API interaction.
class SlackResult {
/// Used to indicate that interaction is failed.
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/slack/model/slack_section_block.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:equatable/equatable.dart';
import 'package:guardian/slack/model/slack_text_object.dart';
import 'package:guardian/slack/model/validation_result.dart';
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/slack/model/slack_text_object.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:equatable/equatable.dart';
import 'package:guardian/slack/model/slack_markdown_text_object.dart';
import 'package:guardian/slack/model/slack_plain_text_object.dart';
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/slack/model/validation_result.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

/// A class containing a result of validation.
class ValidationResult {
/// Used to indicate that validation is failed.
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/slack/runner/slack_runner.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

import 'package:args/command_runner.dart';
import 'package:guardian/slack/command/message_command.dart';
import 'package:guardian/slack/command/slack_config_command.dart';
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/utils/junit_xml/junit_xml.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

library junit_xml;

import 'package:equatable/equatable.dart';
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/utils/junit_xml/model/junit_property.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

part of junit_xml;

/// A class representing <property> element of JUnitXML report.
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/utils/junit_xml/model/junit_system_data.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

part of junit_xml;

/// An abstract class representing system data that was written during
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/utils/junit_xml/model/junit_system_err_data.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

part of junit_xml;

/// A class representing <system-err> element of JUnitXML report.
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/utils/junit_xml/model/junit_system_out_data.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

part of junit_xml;

/// A class representing <system-out> element of JUnitXML report.
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/utils/junit_xml/model/junit_test_case.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

part of junit_xml;

/// A class representing <testcase> element of JUnitXML report.
Expand Down
3 changes: 3 additions & 0 deletions guardian/lib/utils/junit_xml/model/junit_test_case_error.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

part of junit_xml;

/// A class representing <error> element of JUnitXML report.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

part of junit_xml;

/// An abstract class representing test execution result.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.

part of junit_xml;

/// A class representing <failure> element of JUnitXML report.
Expand Down
Loading

0 comments on commit 2ca2651

Please sign in to comment.