Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3a4a57c

Browse files
committed
🎨 kettle-dev v1.1.26 template
1 parent 31f38f0 commit 3a4a57c

File tree

10 files changed

+320
-76
lines changed

10 files changed

+320
-76
lines changed

‎.github/workflows/codeql-analysis.yml‎

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -37,34 +37,34 @@ jobs:
3737
# Learn more about CodeQL language support at https://git.io/codeql-language-support
3838

3939
steps:
40-
- name: Checkout repository
41-
uses: actions/checkout@v5
40+
- name: Checkout repository
41+
uses: actions/checkout@v5
4242

43-
# Initializes the CodeQL tools for scanning.
44-
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v3
46-
with:
47-
languages: ${{ matrix.language }}
48-
# If you wish to specify custom queries, you can do so here or in a config file.
49-
# By default, queries listed here will override any specified in a config file.
50-
# Prefix the list here with "+" to use these queries and those in the config file.
51-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v3
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
51+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5252

53-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54-
# If this step fails, then you should remove it and run the build manually (see below)
55-
- name: Autobuild
56-
uses: github/codeql-action/autobuild@v3
53+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54+
# If this step fails, then you should remove it and run the build manually (see below)
55+
- name: Autobuild
56+
uses: github/codeql-action/autobuild@v3
5757

58-
# i️ Command-line programs to run using the OS shell.
59-
# 📚 https://git.io/JvXDl
58+
# i️ Command-line programs to run using the OS shell.
59+
# 📚 https://git.io/JvXDl
6060

61-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62-
# and modify them (or add more) to build your code if your project
63-
# uses a compiled language
61+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62+
# and modify them (or add more) to build your code if your project
63+
# uses a compiled language
6464

65-
#- run: |
66-
# make bootstrap
67-
# make release
65+
#- run: |
66+
# make bootstrap
67+
# make release
6868

69-
- name: Perform CodeQL Analysis
70-
uses: github/codeql-action/analyze@v3
69+
- name: Perform CodeQL Analysis
70+
uses: github/codeql-action/analyze@v3

‎.github/workflows/current.yml‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ jobs:
4545
rubygems: latest
4646
bundler: latest
4747

48-
# truffleruby-24.1
49-
# (according to documentation: targets Ruby 3.3 compatibility)
50-
# (according to runtime: targets Ruby 3.2 compatibility)
48+
# truffleruby-24.1 (targets Ruby 3.3 compatibility)
5149
- ruby: "truffleruby"
5250
appraisal: "current"
5351
exec_cmd: "rake test"

‎.github/workflows/license-eye.yml‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Apache SkyWalking Eyes
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
push:
8+
branches:
9+
- 'main'
10+
- '*-stable'
11+
tags:
12+
- '!*' # Do not execute on tags
13+
pull_request:
14+
branches:
15+
- '*'
16+
# Allow manually triggering the workflow.
17+
workflow_dispatch:
18+
19+
# Cancels all previous workflow runs for the same branch that have not yet completed.
20+
concurrency:
21+
# The concurrency group contains the workflow name and the branch name.
22+
group: "${{ github.workflow }}-${{ github.ref }}"
23+
cancel-in-progress: true
24+
25+
jobs:
26+
license-check:
27+
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v5
32+
33+
- name: Check Dependencies' License
34+
uses: apache/skywalking-eyes/dependency@main
35+
with:
36+
config: .licenserc.yaml
37+
# Ruby packages declared as dependencies in gemspecs or Gemfiles are
38+
# typically consumed as binaries; enable weak-compatibility
39+
# so permissive and weak-copyleft combinations are treated as compatible.
40+
flags: --weak-compatible

‎.junie/guidelines.md‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ This document captures project-specific knowledge to streamline setup, testing,
1212
- See .env.local.example for an example of what to put in .env.local.
1313
- See CONTRIBUTING.md for details on how to set up your local environment.
1414
- Ruby and Bundler
15-
- Runtime supports very old Rubies (>= 1.9.2) but development tooling targets >= 2.3 because of CI/setup-ruby and dev dependencies.
15+
- Runtime supports Ruby >= 2.3
16+
- Development tooling targets Ruby >= 2.3 (minimum supported by setup-ruby GHA).
1617
- Use a recent Ruby (>= 3.4 recommended) for fastest setup and to exercise modern coverage behavior.
1718
- Install dependencies via Bundler in project root:
1819
- bundle install
@@ -53,7 +54,7 @@ This document captures project-specific knowledge to streamline setup, testing,
5354
- RSpec.describe usage:
5455
- Use `describe "#<method_name>"` to contain a block of specs that test instance method behavior.
5556
- Use `describe "::<method_name>"` to contain a block of specs that test class method behavior.
56-
- Do not use `describe ".<method_name>"` because the dot is ambiguous w.r.t instance vs. class methods.
57+
- Do not use `describe ".<method_name>"` because the dot is ambiguous w.r.t instance vs. class methods.
5758
- When adding new code or modifying existing code always add tests to cover the updated behavior, including branches, and different types of expected and unexpected inputs.
5859
- Additional test utilities:
5960
- rspec-stubbed_env: Use stub_env to control ENV safely within examples.
@@ -89,11 +90,13 @@ This document captures project-specific knowledge to streamline setup, testing,
8990
- Place new specs under spec/ mirroring lib/ structure where possible. Do not require "spec_helper" at the top of spec files, as it is automatically loaded by .rspec.
9091
- If your code relies on environment variables that drive activation (see "Activation env vars" below), prefer using rspec-stubbed_env:
9192
- it does not support stubbing with blocks, but it does automatically clean up after itself.
92-
- outside the example:
93+
- the below config is included in all spec scenarios by the kettle-test gem, so no need to do it again; it is here for reference:
9394
include_context 'with stubbed env'
9495
- in a before hook, or in an example:
9596
stub_env("FLOSS_FUNDING_MY_NS" => "Free-as-in-beer")
97+
9698
# example code continues
99+
97100
- If your spec needs to assert on console output, tag it with :check_output. By default, STDOUT is silenced.
98101
- Use Timecop for deterministic time-sensitive behavior as needed (require config/timecop is already done by spec_helper).
99102

@@ -133,6 +136,7 @@ Notes
133136
- Coverage reports: NEVER review the HTML report. Use JSON (preferred), XML, LCOV, or RCOV. For this project, always run tests with K_SOUP_COV_FORMATTERS set to "json".
134137
- Do NOT modify .envrc in tasks; when running tests locally or in scripts, manually prefix each run, e.g.: K_SOUP_COV_FORMATTERS="json" bin/rspec
135138
- For all the kettle-soup-cover options, see .envrc and find the K_SOUP_COV_* env vars.
139+
- NEVER modify ENV variables in tests directly. Always use the stub_env macro from the rspec-stubbed_env gem (more details in the testing section above).
136140

137141
Important documentation rules
138142
- Do NOT edit files under docs/ manually; they are generated by `bundle exec rake yard` as part of the default rake task.

‎.licenserc.yaml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
header:
2+
license:
3+
spdx-id: MIT
4+
5+
dependency:
6+
files:
7+
- Gemfile.lock

‎.rubocop_gradual.lock‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
"lib/oauth/tokens/consumer_token.rb:3696415131": [
3535
[9, 5, 155, "Style/ClassMethodsDefinitions: Use `class << self` to define a class method.", 349576019]
3636
],
37-
"oauth.gemspec:1419764957": [
37+
"oauth.gemspec:3830118710": [
3838
[133, 3, 56, "Gemspec/DependencyVersion: Dependency version specification is required.", 644892567],
39-
[153, 3, 40, "Gemspec/DependencyVersion: Dependency version specification is required.", 2300588954],
40-
[155, 3, 44, "Gemspec/DependencyVersion: Dependency version specification is required.", 1905290578],
41-
[156, 3, 46, "Gemspec/DependencyVersion: Dependency version specification is required.", 4289565910]
39+
[152, 3, 40, "Gemspec/DependencyVersion: Dependency version specification is required.", 2300588954],
40+
[154, 3, 44, "Gemspec/DependencyVersion: Dependency version specification is required.", 1905290578],
41+
[155, 3, 46, "Gemspec/DependencyVersion: Dependency version specification is required.", 4289565910]
4242
],
4343
"spec/oauth/backwards_compatibility_spec.rb:4041711732": [
4444
[3, 16, 25, "RSpec/DescribeClass: The first argument to describe should be the class or module being tested.", 3956042931]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /