Compare commits
5 Commits
rc2026.00
...
d64607c875
| Author | SHA1 | Date | |
|---|---|---|---|
|
d64607c875
|
|||
|
f2f9090d16
|
|||
|
75ba4a2c7b
|
|||
|
3f40853188
|
|||
|
97486f02e1
|
57
.github/workflows/ci-docs.yml
vendored
57
.github/workflows/ci-docs.yml
vendored
@@ -1,57 +0,0 @@
|
||||
name: CI - Docs build check
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- develop
|
||||
- release-candidate
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
env:
|
||||
MKDOCS_STRICT: ${{ vars.MKDOCS_STRICT || 'true' }}
|
||||
MKDOCS_CONFIG: mkdocs/mkdocs.yml
|
||||
MKDOCS_OFFLINE: false
|
||||
CSPELL_CONFIG: tools/spellcheck/cspell.yml
|
||||
CSPELL_TARGETS: docs/**/*.md README.md
|
||||
|
||||
jobs:
|
||||
build-check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
|
||||
- name: Spellcheck
|
||||
run: |
|
||||
set -euo pipefail
|
||||
npx --yes cspell \
|
||||
--config ${CSPELL_CONFIG} \
|
||||
${CSPELL_TARGETS}
|
||||
|
||||
- name: Install build dependencies
|
||||
run: |
|
||||
set -euo pipefail
|
||||
pip install -r mkdocs/requirements.txt
|
||||
|
||||
- name: MkDocs build (strict default)
|
||||
|
||||
run: |
|
||||
set -euo pipefail
|
||||
echo "Strict is set to ${MKDOCS_STRICT}"
|
||||
FLAGS=()
|
||||
|
||||
if [ "${MKDOCS_STRICT}" = "true" ]; then
|
||||
FLAGS+=(--strict)
|
||||
fi
|
||||
MKDOCS_OUTPUT_DIR="${RUNNER_TEMP:-${TMPDIR:-/tmp}}/dist"
|
||||
|
||||
mkdocs build "${FLAGS[@]}" -f "${MKDOCS_CONFIG}" -d "${MKDOCS_OUTPUT_DIR}"
|
||||
114
.github/workflows/release.yml
vendored
114
.github/workflows/release.yml
vendored
@@ -1,114 +0,0 @@
|
||||
name: Build & publish docs (rc + release)
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "rc*"
|
||||
- "v*"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
env:
|
||||
MKDOCS_CONFIG: mkdocs/mkdocs.yml
|
||||
MKDOCS_STRICT: ${{ vars.MKDOCS_STRICT || 'true' }}
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout (tag)
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
|
||||
- name: Install deps
|
||||
run: |
|
||||
set -euo pipefail
|
||||
pip install -r mkdocs/requirements.txt
|
||||
|
||||
- name: Build docs (normal + offline, strict gate)
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
FLAGS=()
|
||||
if [ "${MKDOCS_STRICT}" = "true" ]; then
|
||||
FLAGS+=(--strict)
|
||||
fi
|
||||
|
||||
OUT_BASE="${RUNNER_TEMP}/mkdocs_out"
|
||||
SITE="${OUT_BASE}/site"
|
||||
SITE_OFFLINE="${OUT_BASE}/site_offline/${GITHUB_REF_NAME}"
|
||||
|
||||
rm -rf "${OUT_BASE}"
|
||||
mkdir -p "${SITE}" "${SITE_OFFLINE}"
|
||||
|
||||
mkdocs build "${FLAGS[@]}" -f "${MKDOCS_CONFIG}" -d "${SITE}"
|
||||
OFFLINE=true mkdocs build "${FLAGS[@]}" -f "${MKDOCS_CONFIG}" -d "${SITE_OFFLINE}"
|
||||
|
||||
- name: Zip offline site
|
||||
run: |
|
||||
set -euo pipefail
|
||||
cd "${RUNNER_TEMP}/mkdocs_out/site_offline/"
|
||||
zip -r "${GITHUB_REF_NAME}.zip" ./${GITHUB_REF_NAME}
|
||||
|
||||
- name: Publish prerelease
|
||||
if: startsWith(github.ref_name, 'rc')
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
prerelease: true
|
||||
name: ${{ github.ref_name }}
|
||||
tag_name: ${{ github.ref_name }}
|
||||
body: |
|
||||
Release candidate preview (if deployed): /rc/
|
||||
files: |
|
||||
${{ runner.temp }}/mkdocs_out/${{ github.ref_name }}.zip
|
||||
|
||||
- name: Publish release
|
||||
if: startsWith(github.ref_name, 'v')
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
name: ${{ github.ref_name }}
|
||||
tag_name: ${{ github.ref_name }}
|
||||
files: |
|
||||
${{ runner.temp }}/mkdocs_out/site_offline/${{ github.ref_name }}.zip
|
||||
|
||||
- name: Checkout gh-pages branch
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: gh-pages
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Deploy release to gh-pages root
|
||||
if: startsWith(github.ref_name, 'v')
|
||||
run: |
|
||||
set -euo pipefail
|
||||
rm -rf ./*
|
||||
cp -a ${RUNNER_TEMP}/mkdocs_out/site/. .
|
||||
git add -A
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git commit -m "Deploy release ${GITHUB_REF_NAME}" || echo "No changes to commit"
|
||||
git push origin gh-pages
|
||||
|
||||
- name: Deploy RC preview to /rc/
|
||||
if: startsWith(github.ref_name, 'rc')
|
||||
run: |
|
||||
set -euo pipefail
|
||||
rm -rf rc
|
||||
mkdir -p rc
|
||||
cp -a ${RUNNER_TEMP}/mkdocs_out/site/. rc/
|
||||
printf '{"tag":"%s"}\n' "${GITHUB_REF_NAME}" > rc/rc.json
|
||||
|
||||
git add -A
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git commit -m "Deploy RC preview ${GITHUB_REF_NAME}" || echo "No changes to commit"
|
||||
git push origin gh-pages
|
||||
@@ -1,5 +1,5 @@
|
||||
<p align="center">
|
||||
<img src="docs/assets/cmba-logo.svg" width="200">
|
||||
<img src="assets/cmba-logo.svg" width="200">
|
||||
</p>
|
||||
|
||||
# CMBA Constitution and Bylaws
|
||||
|
||||
@@ -1,87 +0,0 @@
|
||||
# Constitution and Bylaws
|
||||
(the "Bylaws")
|
||||
|
||||
## Name
|
||||
The name of the corporation as incorporated and existing under and by virtue of the Illinois General Not for Profit Corporation Act of 1986, as amended ("the Act") shall be The Chicago Metropolitan Baseball League (League) (the "League"). The League shall have powers as are now or as may hereafter be granted by the Act.
|
||||
|
||||
## Purpose
|
||||
This League is organized exclusively for such social and athletic purposes as will qualify under Illinois statue for a non-profit corporation. It has been formed with the objective of providing the finest amateur baseball league in the State of Illinois and Midwest; a league where an up and coming young prospect for professional baseball may play and develop; where the talented veteran player can enjoy playing among the best competition; and bring friendship and sportsmanship to the League.
|
||||
|
||||
## Directors
|
||||
### General Powers
|
||||
Except as otherwise expressly herein provided or as otherwise provided by law, the property and affairs of the League shall be managed by or under the direction of its Board of Directors (the "Board of Directors"), which shall be the governing body of the League. The Board of Directors may exercise all the powers, rights, and privileges of the League, whether expressed or implied in the Articles of Incorporation or conferred by the Act or otherwise, and may do all acts and things which may be done by the League. Each Director shall be entitled to one full vote on each matter.
|
||||
|
||||
### Number and Qualifications
|
||||
The League's Board of Directors shall be composed of at least three (3) Directors ("Director") or such other greater number of Directors established by the Board of Directors from time to time. An individual need not be a Manager of a Member franchise in order to be a Director.
|
||||
|
||||
### Election and Term of Office
|
||||
Directors shall be elected at the annual meeting of the League. The term of office of each Director shall be until the next annual meeting. Directors shall hold office until the expiration of the term for which he or she is elected and until his or her successor has been elected or until his or her death, resignation, or removal. Directors may serve successive terms.
|
||||
|
||||
### Resignation and Removal
|
||||
Any Director may resign by written notice delivered to the Board of Directors or to the Commissioner or Secretary of the League. Any Director may be removed, with or without cause, by the affirmative vote of a majority of the Directors then in office. Any vacancy may be filled by the Board of Directors.
|
||||
|
||||
### Compensation
|
||||
The Directors shall serve without compensation.
|
||||
|
||||
## Officers
|
||||
|
||||
### Designation
|
||||
The officers of the League shall be a Commissioner, a Treasurer, and a Secretary. All offices shall be filled by an affirmative vote of the Board on an annual basis. Other Officers may be created by the Directors at their discretion. Officers may serve successive terms.
|
||||
|
||||
### Resignation and Removal
|
||||
|
||||
Any Officer may resign by written notice delivered to the Board of Directors or to the Commissioner or Secretary of the League. Any Officer may be removed, with or without cause, by the affirmative vote of a majority of the Directors then in office. Any vacancy may be filled by the Board of Directors.
|
||||
|
||||
## Officer Duties
|
||||
|
||||
### Commissioner
|
||||
The duties and powers of the Commissioner are as follows:
|
||||
|
||||
1. execute contracts, with approval of the board or in accordance with the budget approved by the board
|
||||
1. Shall serve a life term or until voluntary relinquishment of the office.
|
||||
1. Preside over all League meetings.
|
||||
1. Official spokesman to news media and others whenever the League’s point of view is needed.
|
||||
1. Call all regular and Rules and Competition Committee meetings and assign the date and place thereof.
|
||||
1. Appoint persons to positions as he deems necessary or until elections are held.
|
||||
1. Assess fines and punishments as he deems necessary with just cause.
|
||||
1. Prepare and propose the League’s budget for approval by the Board.
|
||||
1. Gather all information regarding protests.
|
||||
1. Maintain a league website to keep Managers and players apprised of the state of the league.
|
||||
1. Judge and take action on all circumstances not covered in the Constitution and By-Laws in good faith and furtherance of the stated goals and principles of the league.
|
||||
1. Interpret the rules and by-laws of this Constitution and make appropriate decisions thereof.
|
||||
1. Decisions of the Commissioner may be appealed to the Rules and Competition Committee. Appeals must be presented in writing and must contain specific grounds for the appeal.
|
||||
|
||||
### Treasurer
|
||||
The Treasurer shall be responsible for the League’s monetary assets and its proper handling and distribution as ordered by the league and its Commissioner.
|
||||
|
||||
tax returns
|
||||
|
||||
### Secretary ?
|
||||
|
||||
|
||||
### Compensation
|
||||
The Officers shall serve without compensation.
|
||||
|
||||
## Meetings of the Board
|
||||
|
||||
### Annual Meeting
|
||||
The Board of Directors shall hold its annual meeting after January 1 at a time and place set by the Commissioner. This meeting must be held in person, except in extenuating circumstances. The Board of Directors may invite a representative from each Member Franchise to attend the annual meeting.
|
||||
|
||||
### Additional Meetings
|
||||
Additional meetings of the Board of Directors may be called by the Commissioner or any Director.
|
||||
|
||||
### Quorum and Voting
|
||||
A majority of the Board of Directors shall constitute a quorum for the transaction of business at any meeting of the Board of Directors. The affirmative votes of a majority of the Directors present at a meeting of the Board of Directors at which a quorum is present shall be the act of the Board of Directors, unless the affirmative vote of a greater number is required by law or these By-Laws.
|
||||
|
||||
## Misc
|
||||
|
||||
### Amendments
|
||||
These By-Laws may be altered, amended, or repealed, and new bylaws may be adopted by resolution of the Board of Directors at any time or from time to time by the vote of two-thirds of the Directors.
|
||||
|
||||
### Drafts, Checks, Deposits
|
||||
|
||||
### dissolution
|
||||
|
||||
### books records and minutes
|
||||
|
||||
### contracts
|
||||
65
docs/01-constitution.md
Normal file
65
docs/01-constitution.md
Normal file
@@ -0,0 +1,65 @@
|
||||
# Constitution
|
||||
|
||||
## Name; Objective
|
||||
|
||||
### Name
|
||||
This baseball league shall be known as the Chicago Metropolitan Baseball Association (CMBA). The CMBA has been formed for the purpose of providing the finest amateur baseball league in the State of Illinois and Midwest; a league where an up and coming young prospect for professional baseball may play and develop; where the talented veteran player can enjoy playing among the best competition; and bring friendship and sportsmanship to the Association.
|
||||
|
||||
### Ethics
|
||||
All Association members, including officers, managers, umpires, and players shall strive to be ethical, honorable, and truthful in all dealings concerning the League thereby promoting the Association as a first class league of impeccable integrity.
|
||||
|
||||
### Sportsmanship
|
||||
All Association members, including officers, managers, umpires, and players are expected to behave in a sportsmanlike manner, promoting fair competitive play in a respectful atmosphere.
|
||||
|
||||
## Membership
|
||||
|
||||
### Eligibility
|
||||
Membership in the CMBA is open to any amateur baseball franchise in the Greater Chicagoland area that qualifies under the rules and requirements for admission as set forth in this Constitution.
|
||||
|
||||
### Classification; Standing
|
||||
Membership shall be divided into the following four (4) classes:
|
||||
|
||||
1. In good standing with active franchises.
|
||||
1. These members shall have full playing and voting privileges.
|
||||
1. In good standing that have been granted a leave of absence.
|
||||
1. These members shall not have voting privileges but may attend League meetings.
|
||||
1. Not in good standing (temporary suspension for League rules violations) with active franchises. These members shall have full voting and game playing privileges.
|
||||
1. These members shall have full voting and game playing privileges. However, any games played by members not in good standing shall be deemed technical forfeit.
|
||||
1. Not in good standing (indefinite suspension).
|
||||
1. These members shall have no game playing or voting privileges.
|
||||
1. May attend league meetings by special invitation of the President.
|
||||
|
||||
### Subjectivity
|
||||
All Association members shall abide by and are subject to all rules and regulations as outlined in this Constitution and By-Laws, and are subject to the authority of the President, other Officers, the umpires and any other ruling officials so authorized. These rules, regulations, articles, and By-Laws may not be suspended, set aside, or added to under any circumstances, regardless of the will of the managers. This section nullifies the “If both managers agree” concept.
|
||||
|
||||
## Officers
|
||||
The following shall be considered Officers of the League: President; Treasurer; and Rules and Competition Committee Members. Other Officers may be created by the President at his discretion or by vote of League members upon the request of a League Member. All offices shall be filled by an affirmative vote of League members.
|
||||
|
||||
### Terms of Office
|
||||
|
||||
1. The President shall serve a life term unless he chooses to voluntarily relinquish the office. The new President shall be chosen by a majority vote of the League membership.
|
||||
1. All Officers other than President are subject to yearly review and reelection by League vote.
|
||||
|
||||
### Umpires
|
||||
Umpires shall have the sole responsibility for the enforcement of all sections in [Team Rosters Players And Eligibility](#team-rosters-players-and-eligibility) of the By-Laws, except where specified.
|
||||
|
||||
## Meetings
|
||||
|
||||
### Annual Meeting
|
||||
The Association shall hold its annual preseason meeting after January 1 at a time and place set by the President. This meeting must be held in person, except in extenuating circumstances.
|
||||
|
||||
### Additional Meetings
|
||||
Additional meetings shall be called by the President for reasons at his discretion.
|
||||
|
||||
### Rules and Competition Committee Meetings
|
||||
The Rules and Competition Committee shall meet at the discretion of the President. These meetings must be held in person, except in extenuating circumstances by agreement between the President and the Committee.
|
||||
|
||||
### Meeting and Voting Validity
|
||||
Only meetings called for and attended by the President will be considered valid and no votes held in the absence of the President will be considered binding.
|
||||
|
||||
### Amending the Constitution
|
||||
This constitution may be amended, removed, or added by an affirmative vote of two-thirds of members with voting privileges.
|
||||
The complete proposed written text of any amendment(s) to this constitution must be submitted to the representatives of the teams before the amendment(s) can be voted on.
|
||||
|
||||
## Finances
|
||||
The President shall determine the franchise and annual entry fees. All other fees will be levied at the discretion of the League President. Fees shall be levied with the understanding that the Association is a not for profit organization.
|
||||
276
docs/02-bylaws.md
Normal file
276
docs/02-bylaws.md
Normal file
@@ -0,0 +1,276 @@
|
||||
# By-Laws
|
||||
|
||||
## Definition; Amendments
|
||||
These By-Laws shall stand as the official rules of the CMBA.
|
||||
All Association members shall abide by and are subject to, without exception, all rules and regulations as outlined in the Constitution and By-Laws as well as the authority of the Association President, in accordance with [Subjectivity](#subjectivity)
|
||||
|
||||
### Amending the By-Laws
|
||||
By-Laws may be amended, removed, or added by an affirmative vote of two-thirds of the Association members present at the time of the vote.
|
||||
|
||||
## League Membership and Fees
|
||||
|
||||
### Standards
|
||||
The following standards shall apply for consideration for membership by franchises in the CMBA.
|
||||
|
||||
1. Quality of leadership within the franchise.
|
||||
1. Good record of past performance in the following:
|
||||
1. Forfeits and punctuality at League games.
|
||||
1. Attitude and conduct of players and management.
|
||||
1. Financial responsibility.
|
||||
1. Ability of its players.
|
||||
|
||||
### New franchises
|
||||
The Association President shall present, upon acceptable review of its qualifications, a new franchise to the members at large for consideration. New franchises are allowed to present a positive case for inclusion.
|
||||
|
||||
1. Acceptance shall be affirmed with a simple majority vote of members in attendance.
|
||||
|
||||
### Acceptance Fee
|
||||
A franchise fee of fifty dollars ($50.00) shall be paid to the Association Treasurer upon acceptance into the Association.
|
||||
|
||||
### Annual Fee
|
||||
All Association members shall pay an annual fee. Per [Finances](#finances), this fee shall be determined by the Association President.
|
||||
|
||||
### Payment of Fees
|
||||
All Association members must have all fees paid by a date set by the President.
|
||||
|
||||
1. Penalty for late payment shall be ten dollars ($10.00) per week for no longer than five (5) weeks.
|
||||
1. Members in violation of the above shall be placed on temporary suspension for a period of two (2) weeks.
|
||||
1. Members who have not paid outstanding fees by the end of the two week suspension shall be placed on indefinite suspension until all fees are paid.
|
||||
|
||||
### List of Fees
|
||||
The annual League fee shall consist of, but are not limited to the following: Forfeit fee; Performance bond; Field fees; Prize Money Fund; Tournament fees; and any other costs incurred by the League.
|
||||
|
||||
### Fines
|
||||
Any Association franchise or player may be susceptible to a fine by the President or Rules Committee as applicable for conduct unbecoming of a representative of the League and for any violation of this Constitution and its By-Laws.
|
||||
|
||||
1. Fines shall be determined by the President or committee as applicable and may not exceed fifty dollars ($50.00).
|
||||
1. Fines must be paid in full by a date specified by the President. Teams with outstanding fines will be considered not in good standing as defined in Subsection.
|
||||
|
||||
### Leave of Absence
|
||||
Members in good standing may be granted a leave of absence and are entitled to all privileges as outlined in [Classification; Standing](#classification-standing) of the Constitution.
|
||||
|
||||
1. Members in good standing on leave for more than two (2) years must reapply for membership.
|
||||
|
||||
### Temporary Suspension
|
||||
An Association franchise may be placed on temporary suspension by the President and are subject to rules set forth in [Classification; Standing](#classification-standing).
|
||||
|
||||
### Indefinite Suspension
|
||||
An Association franchise may be placed on indefinite suspension by the President and subject to rules set forth in [Classification; Standing](#classification-standing). Violations that may result in indefinite suspension are as follows:
|
||||
|
||||
1. Conduct detrimental to the objectives of the Association.
|
||||
1. Two (2) forfeits of a game in one season. A team that is indefinitely suspended two consecutive seasons for violation of this subsection shall not be permitted to reapply for reinstatement unless a change in management is presented to the league. The new management must be approved by the Association President and ratified by a majority of the association members.
|
||||
1. Tampering with players on the roster of another member franchise. Tampering shall be defined as the deliberate solicitation, without consent, by one Association member of a player who has made at least an oral commitment to play for another Association franchise.
|
||||
1. Consumption of alcoholic beverages on or in close proximity to the playing fields as detailed in [League Standings](#league-standings)
|
||||
1. Violation of any written policies set forth by the issuer of any permits for field use by the Association.
|
||||
1. Failure to comply with any of the stated codes of conduct as set forth in this document.
|
||||
|
||||
### Reinstatement
|
||||
An indefinitely suspended franchise may be reinstated by the President upon the resolution of any outstanding violations and the satisfactory guarantee of no further violations.
|
||||
|
||||
### Additional Fees
|
||||
The President may request additional fees to cover any costs that exceed the amounts originally budgeted for by the League.
|
||||
|
||||
### Fees to the President
|
||||
In the event the President is a franchise holder, the Rules and Competition Committee may levy any and all appropriate fines for infractions of this Constitution and By-Laws by his franchise.
|
||||
|
||||
### Outside Leagues
|
||||
Teams may not play in leagues outside of the CMBA, unless that league has a formal agreement with the CMBA that its playing schedule does not conflict with regularly scheduled CMBA games or playoffs.
|
||||
|
||||
## Officer Duties
|
||||
As defined in [Officers](#officers), the officers of the Association are the President, Treasurer, Rules and Competition Committee member.
|
||||
|
||||
### President
|
||||
The duties and powers of the President are as follows:
|
||||
|
||||
1. Shall serve a life term or until voluntary relinquishment of the office.
|
||||
1. Preside over all League meetings.
|
||||
1. Official spokesman to news media and others whenever the Association’s point of view is needed.
|
||||
1. Call all regular and Rules and Competition Committee meetings and assign the date and place thereof.
|
||||
1. Appoint persons to positions as he deems necessary or until elections are held.
|
||||
1. Assess fines and punishments as he deems necessary with just cause.
|
||||
1. Calculate the Association’s budget.
|
||||
1. Gather all information regarding protests.
|
||||
1. Maintain a league website to keep managers and players apprised of the state of the league.
|
||||
1. Judge and take action on all circumstances not covered in the Constitution and By-Laws in good faith and furtherance of the stated goals and principles of the league.
|
||||
1. Interpret the rules and by-laws of this Constitution and make appropriate decisions thereof.
|
||||
1. Decisions of the President may be appealed to the Rules and Competition Committee. Appeals must be presented in writing and must contain specific grounds for the appeal.
|
||||
|
||||
### Treasurer
|
||||
The Treasurer shall be responsible for the League’s monetary assets and its proper handling and distribution as ordered by the league and its President.
|
||||
|
||||
### Rules and Competition Committee
|
||||
The Rules and Competition Committee, to be made up of the President and two (2) appointed franchise holders. An alternate member shall be appointed by the president if a committee member is unavailable or conflicted (i.e. the matter under consideration involves a player of the committee member’s team or the committee member), shall meet and take action concerning:
|
||||
|
||||
1. Official protests
|
||||
1. Disciplinary matters referred to the committee pursuant to [Standings And Postseason](#standings-and-postseason)
|
||||
1. Any decision of the President that has been officially appealed.
|
||||
|
||||
### Compensation
|
||||
All officers other than the Rules Committee members, shall be granted compensation for time and expenses.
|
||||
|
||||
## Meetings and Voting
|
||||
Per [Annual Meeting](#annual-meeting), the Association shall hold an annual meeting. In addition, per 4.2, the President may call additional meetings.
|
||||
|
||||
### Voting Privileges
|
||||
Each franchise with voting privileges as specified in [Classification; Standing](#classification-standing) shall have one (1) vote at league meetings, regardless of the number of representatives the franchise has sent to the meeting.
|
||||
|
||||
### President’s Role
|
||||
The President shall chair the meeting. If the President is also a franchise holder, he must designate another person from his franchise to represent the team at league meetings. The President can only vote in the event of a tie vote among the members present at the meeting.
|
||||
|
||||
### Voting Decisions
|
||||
A 2/3 vote is necessary to:
|
||||
|
||||
1. Amend the Constitution, per [Amending the Constitution](#amending-the-constitution)
|
||||
1. Amend the Bylaws, per [Amending The By Laws](#amending-the-by-laws)
|
||||
1. Remove an Officer.
|
||||
1. Expel a team or player for violations of rules set forth in the Constitution or By-laws.
|
||||
|
||||
Any decision not listed above shall be decided by simple majority vote.
|
||||
|
||||
### Attendance
|
||||
All franchise members are expected to attend all league meetings. Failure of a franchise to send a representative to a meeting may result in a ten dollar ($10.00) fine. Those members present at any meeting shall constitute a quorum and all votes by this quorum are binding.
|
||||
|
||||
## Teams and Managers
|
||||
|
||||
### Recognition
|
||||
Teams shall be formally recognized as existing as an entity from April 1 through August 31 of the current season. These dates shall serve as time periods as they pertain to all rules regarding rosters and team management.
|
||||
|
||||
### Team Name
|
||||
Teams new to the Association, regardless of the makeup of the roster, shall not be allowed to use the name of any existing Association team. Teams from other recognized Associations or Leagues entering the CMBA shall be allowed to use any team name provided it was the recognized existing name of the team prior to its membership in the Association. Changes in team names shall not affect a team’s status in the Association in any way provided the original recognized Manager is the entrant of the team.
|
||||
|
||||
### Uniform
|
||||
All players must be in uniform (bearing the team’s name as represented to the league) by the team’s first regular season game in order to be eligible to participate in games. Players may not obtain the jersey of another team member in order to obtain eligibility.
|
||||
|
||||
1. This deadline may be extended by the President at his discretion following a written petition by the team that shows a just and reasonable cause for extension, and evidence of a good faith effort to meet the deadline.
|
||||
1. This rule applies to any players legally added to the roster after the stated deadline.
|
||||
1. Uniforms shall consist of, but are not limited to, matching team caps and jerseys with assigned team uniform numbers.
|
||||
1. Players must be dressed in proper baseball pants. These pants need not match the team’s uniform, however, the Association encourages all players to wear matching pants. Sweatpants, shorts, jeans, or any other type of pants other than baseball pants are prohibited.
|
||||
|
||||
### Manager
|
||||
The Manager is that person who has been officially recognized as the entrant of a team into the Association. The Manager has the ultimate responsibility for the team’s compliance with all by-laws as set forth in this Constitution. The manager of a franchise is responsible for all actions of his players and coaches and may be fined up to fifty dollars ($50.00) for any violations of codes of conduct and league rules as set forth in this document, or any other actions deemed detrimental to the objectives and standards of the Association.
|
||||
|
||||
1. Severe violations of league rules and codes of conduct may result in the suspension of the offending player or manager for the balance of the season or possible permanent banishment from the league, if so ruled by the President.
|
||||
|
||||
### Manager Changes
|
||||
Management of the team may officially change from one person to another during the dates that team is formally recognized as an entity as specified in [Recognition](#recognition) only with the written consent of the outgoing manager, or rostered members of the team can show that the Manager has not been faithfully and/or competently fulfilling his requirements as outlined in this Constitution.
|
||||
|
||||
1. Management changes under this Section may only take place pending the outcome of a hearing, which shall take place at the earliest possible date between the Association President, the Manager in question, and the parties seeking a change in management.
|
||||
1. The President may ask other managers to attend this hearing to serve in an advisory role.
|
||||
1. Failure to appear at this hearing by either party involved shall automatically result in an outcome favorable to the party in attendance.
|
||||
1. Teams with management conflicts of this nature may not play league games until the completion of this hearing and resolution of the conflict.
|
||||
Management changes outside of the dates that a team is formally recognized as an entity as specified in [Recognition](#recognition) are beyond the control of the Association and President and are not subject to any formal mechanisms of change as outlined in this Constitution. Resolution of any outstanding conflicts associated with such management changes are the sole responsibility of the parties involved.
|
||||
|
||||
## Team Rosters; Players and Eligibility
|
||||
|
||||
### Roster Deadline; Roster Size
|
||||
Prior to June 1, each team has an “open roster.” Association teams must submit a roster of their players to the President no later than June 1 of each year. Any team that does not submit its roster to the President by June 1 as required by this [Roster Deadline; Roster Size](#roster-deadline-roster-size) and in accordance with the information requirements in [Roster Information Requirements](#roster-information-requirements) shall be deemed not in good standing. Consequences of not being in good standing are defined in [Classification; Standing](#classification-standing) of the Constitution. This submitted roster plus any and all legal roster transactions per [Roster Transactions](#roster-transactions), shall be considered official. Players not on a team’s official roster are ineligible for play, except where specifically noted in this [Teams And Managers](#teams-and-managers).
|
||||
Each team’s roster must contain a minimum of sixteen (16) players and shall not exceed twenty-six (26) players, in each case, excluding non-playing managers and coaches.
|
||||
|
||||
### Roster Information Requirements
|
||||
A team’s rosters as submitted to the President on or before June 1 shall contain the following information for each rostered player: name, age, bats/throws, position(s),uniform number, and face photo. Rosters shall be submitted in Excel or via Google sheets (or similar editable spreadsheet.)
|
||||
|
||||
### Roster Transactions
|
||||
Teams may add a total of five (5) players to the roster after the June 1 roster submission deadline. The total number of players on a team still may not exceed twenty-six (26). In order to add players between June 1 and July 1 but not exceed the 26 player limit, a team may drop players who were rostered on June 1. No players may be added after July 1, except as set forth below.
|
||||
After July 1, upon request to the Rules and Competition Committee, a team may add a player if (i) the team’s roster has fallen (or, upon the removal of players “missing in action” as described below, will fall) below the 16 player minimum and (ii) doing so will, in the good faith determination of the Rules and Competition Committee, prevent the team from forfeiting games.
|
||||
In order for a team to declare a player “missing in action” after July 1, (i) the player shall have (a) failed to appear at all of the team’s games occurring prior to such request or (b) suffered a season-ending injury after June 1 and (ii) the team must drop the player from its roster.
|
||||
A team may drop players at any time as long as the team’s roster does not fall below the 16 player minimum.
|
||||
Any and all roster changes shall be submitted to the President and satisfy the information requirements in [Roster Information Requirements](#roster-information-requirements). Roster changes shall be effective as of the first pitch of the team’s first regularly scheduled game after the updated roster is submitted.
|
||||
|
||||
### Alumni
|
||||
If a team would otherwise be required to forfeit or technically forfeit a game after June 1 due to a lack of eligible players in attendance, the team can use one (but not more than one) of its former players (“alumni”) in that game. The team’s manager shall inform the opposing team’s manager and the President as soon as possible (and in no event later than the first pitch) of his team’s use of an alumni player and will provide to the opposing team’s manager and the President with the alumni player’s name, age, bats/throws, position and uniform number. Alumni players are not eligible to play in the playoffs.
|
||||
|
||||
### Eligible Players
|
||||
Eligible players must be of at least eighteen (18) years of age by the date of the teams first +game. No player may play for more than one team in a season (either before or after June 1).
|
||||
A team that uses an ineligible player, per the rules in this [Team Rosters Players And Eligibility](#team-rosters-players-and-eligibility), will be deemed to have forfeited any and all games in which the illegal player(s) participated.
|
||||
|
||||
### Postseason Player Eligibility
|
||||
Players must appear in at least five (5) games during the regular season in order to be eligible for postseason play. Upon request to the Rules and Competition Committee, exceptions may be made for players with long term injuries.
|
||||
|
||||
### Player Responsibility for Team Fees
|
||||
All players in the CMBA are expected to pay their team fees. Players will not be allowed to switch teams within the association unless or until any and all debts are paid in full.
|
||||
|
||||
### Free Agents
|
||||
A player must inform the League President and his manager no later than February 15 of the upcoming season if he wishes to leave his team and become a free agent. After this he is free to play for another team in the CMBA. A manager may waive this deadline for an individual player at the manager’s discretion. If the player fails to notify as specified, that player shall be disqualified from playing on another CMBA team for that season.
|
||||
|
||||
## Protest and Forfeits
|
||||
|
||||
### Timeframe and Reporting
|
||||
All protests must be filed with the President within 48 hours of the alleged infraction and on the League supplied form. All requested information must be accurately reported. Any manager who knowingly falsifies information on the protest form will be fined and suspended as determined by the President, and that manager’s team will forfeit the game.
|
||||
|
||||
### Ground for Protest
|
||||
Protests may only be made on the grounds of a violation of a rule stated in this Constitution and its By-Laws or in violation of a stated Major League Baseball rule. Protests may not, under any circumstances, be based on the judgment of an umpire’s call. The protesting team’s manager must notify the umpire of the protest at the time the violation occurred. Managers shall notify the league president at the earliest possible time after the game and provide umpire signature as proof of notification.
|
||||
|
||||
### Ruling
|
||||
Upon the filing of a protest with the President, the President shall call a meeting of the Rules and Competition Committee at the earliest possible date. Judgment regarding the merit of the protest shall be made after deliberation.
|
||||
|
||||
### Notification
|
||||
Teams that win games by forfeit must notify the President that very day.
|
||||
|
||||
### Umpire Payment
|
||||
Forfeiting teams must pay, at the time of the forfeit, the full cost of the umpire(s), and shall be considered not in good standing as defined in [Classification; Standing](#classification-standing). Teams will be considered not in good standing until payment is made. In the event a team is unable to pay the umpire at the proper time, the team’s forfeit fee will be used to cover initial forfeits. The cost of additional forfeits will be paid by the team.
|
||||
|
||||
### Forfeits
|
||||
Should a team forfeit a game shall lose 2 points in the standings.
|
||||
Forfeiting teams must pay, at the time of the forfeit, the full cost of the umpire(s). Until payment is made, a forfeiting team shall be considered not in good standing as defined in Subsection.
|
||||
Should a team forfeit 2 games in a season they will be banned from playing games for the remainder of the season and playoffs and placed on indefinite suspension, not in good standing, as defined in Subsection of the constitution. Games that included or would have included this team shall be subject to the following:
|
||||
|
||||
1. All previous games played by the indefinitely suspended team shall count in the official standings.
|
||||
1. All subsequent games shall be recorded as a loss for the suspended team and a win for the scheduled opponent.
|
||||
|
||||
### Technical forfeit
|
||||
A team subject to technical forfeit shall be awarded only one point for a victory. A team may receive 2 technical forfeits per season. After reaching this limit, subsequent technical forfeits shall be converted to forfeits, as defined in [Equipment](#equipment).
|
||||
|
||||
## Standings and Postseason
|
||||
|
||||
### Website
|
||||
The President shall maintain a league website that includes all official scores and league standings. Additional pertinent information will be provided.
|
||||
|
||||
### League Standings
|
||||
The Association shall use a point system to determine the standings. A team is awarded:
|
||||
|
||||
1. Two (2) points for a win (including a win against a team in technical forfeit)
|
||||
1. One (1) point for a win while in technical forfeit (see [Forfeits](#forfeits))
|
||||
1. One (1) point for a tie game
|
||||
1. Zero (0) points for a loss
|
||||
1. Minus two (-2) points for a loss by forfeit (see [Forfeits](#forfeits)).
|
||||
|
||||
### Standings Tie-breakers
|
||||
In the event two teams finish the regular season in a tie for a position, the following tie-breaking procedure will take effect:
|
||||
|
||||
1. Record in head-to-head competition.
|
||||
1. Record within the division (if applicable).
|
||||
1. Least runs allowed for the season.
|
||||
1. Coin toss, performed by the president with a witness.
|
||||
|
||||
### Postseason Format
|
||||
The postseason format shall be determined by annual vote.
|
||||
|
||||
### Prizes and Awards
|
||||
Playoff prizes and awards, if any, shall be determined by the membership of the league.
|
||||
|
||||
### Playoff Umpire Selection
|
||||
For the playoffs, each team will be granted the ability to exclude one (1) particular umpire from participating in said teams series. The name of this umpire shall be submitted to the chief umpire as soon as possible prior to the series. This umpire “veto” will be binding UNLESS the chief umpire cannot find any other umpire who can work any game in this series.
|
||||
|
||||
### Completion of Playoff Games
|
||||
All playoff games must be played to completion. If a playoff game is suspended for any reason, the game must be finished at a later date declared by the president. This game is declared suspended, and regardless of what inning or circumstance, the game will be continued from the point in the game when it was suspended. The “Slaughter Rule” is applicable for the playoffs (see [Regulation Games](#regulation-games)).
|
||||
|
||||
## Sportsmanship and Prohibited Conduct
|
||||
All association members are expected to engage in a sportsmanlike and mutually respectful behavior. Any manager or the chief umpire may request that the rules and competition committee review the specific actions of another player, coach, manager or team. The rules and competition committee shall review, and in its discretion, determine the appropriate disciplinary action to be taken, if any. Disciplinary actions include a written warning, fines, temporary suspension, and banishment from the association. The committee should take under consideration repeat offenses. The president shall enforce any discipline determined by the committee.
|
||||
|
||||
### Fighting
|
||||
Fighting or any physical altercation shall not be tolerated in the CMBA. Players cannot leave the bench or their positions during a fight for any reason; the managers, the on-the-field coaches and umpire(s) shall be responsible for restoring order. Specific penalties for violations are listed below.
|
||||
|
||||
1. Any player who instigates or initiates an on-field fight shall be fined and suspended from league play for no less than one season
|
||||
1. Any player or coach who participates in a fight shall be suspended for three games and fined $50.00.
|
||||
|
||||
### Assault of an Umpire
|
||||
Any player or coach who physically assaults an umpire will be permanently banished from the league. He may also be arrested if the umpire chooses to press charges.
|
||||
|
||||
### Substances
|
||||
|
||||
1. Smoking: Smoking shall be prohibited in the dugout and on the playing field during the game.
|
||||
1. Alcohol: Alcoholic beverages are prohibited on or in the close proximity of a team’s bench. Teams in violation of this rule will forfeit the game and be automatically fined and temporarily suspended. Offending players will be fined and suspended for two (2) weeks from the date of the infraction. A second violation of this rule shall result in the automatic expulsion of the team from the Association. Managers are responsible for the enforcement of this rule and are accountable for any violations.
|
||||
1. Additionally, all teams and players are subject to any and all additional laws, rules, or regulations regarding substances as stated by locality or the issuer of the field permit
|
||||
|
||||
### Flagrant Collisions
|
||||
A flagrant collision is defined as an intentional act to forcibly collide with a fielder. A player who is ejected for a flagrant collision will be suspended for three (3) games and fined $30. A second offense (not necessarily in the same season) will result in the player being suspended for the remainder of that season (including playoffs). A third offense will result in permanent banishment from the league.
|
||||
@@ -1,268 +0,0 @@
|
||||
# League Rules and Policy
|
||||
|
||||
## Subjectivity
|
||||
These rules, regulations, articles, and By-Laws may not be suspended, set aside, or added to under any circumstances, regardless of the will of the Managers. This provision nullifies the “If both managers agree” concept.
|
||||
|
||||
## Budget
|
||||
A budget for the next fiscal year shall be prepared by the Commissioner for presentation and approval of the Board. The budget shall conssit the annual Member dues, other income, and expected expenditures for the operating year. The board shall present the approved budget for information to league Members.
|
||||
|
||||
### Rules and Competition Committee Meetings
|
||||
The Rules and Competition Committee shall meet at the discretion of the Commissioner. These meetings must be held in person, except in extenuating circumstances by agreement between the Commissioner and the Committee.
|
||||
|
||||
### Rules and Competition Committee
|
||||
The Rules and Competition Committee, to be made up of the Commissioner and two (2) appointed franchise holders. An alternate member shall be appointed by the Commissioner if a committee member is unavailable or conflicted (i.e. the matter under consideration involves a player of the committee member’s team or the committee member), shall meet and take action concerning:
|
||||
|
||||
1. Official protests
|
||||
1. Disciplinary matters referred to the committee pursuant to [Standings And Postseason](#standings-and-postseason)
|
||||
1. Any decision of the Commissioner that has been officially appealed.
|
||||
|
||||
### Additional roles supporting the league.
|
||||
Webmaster, Umpire Assigner
|
||||
|
||||
### Umpires
|
||||
Umpires shall have the sole responsibility for the enforcement of all sections in [Team Rosters Players And Eligibility](#team-rosters-players-and-eligibility) of the By-Laws, except where specified.
|
||||
|
||||
## Code of Conduct
|
||||
### Ethics
|
||||
All League members, including officers, Managers, umpires, and players shall strive to be ethical, honorable, and truthful in all dealings concerning the League thereby promoting the League as a first class league of impeccable integrity.
|
||||
|
||||
### Sportsmanship
|
||||
All League members, including officers, Managers, umpires, and players are expected to behave in a sportsmanlike manner, promoting fair competitive play in a respectful atmosphere.
|
||||
|
||||
## Definition; Amendments
|
||||
These By-Laws shall stand as the official rules of the League.
|
||||
All League members shall abide by and are subject to, without exception, all rules and regulations as outlined in the Constitution and By-Laws as well as the authority of the League Commissioner, in accordance with [Subjectivity](#subjectivity)
|
||||
|
||||
### Amending the By-Laws
|
||||
By-Laws may be amended, removed, or added by an affirmative vote of two-thirds of the League members present at the time of the vote.
|
||||
|
||||
## Membership
|
||||
|
||||
### Standards
|
||||
The following standards shall apply for consideration for membership by franchises in the League.
|
||||
|
||||
1. Quality of leadership within the franchise.
|
||||
1. Good record of past performance in the following:
|
||||
1. Forfeits and punctuality at League games.
|
||||
1. Attitude and conduct of players and management.
|
||||
1. Financial responsibility.
|
||||
1. Ability of its players.
|
||||
|
||||
### New franchises
|
||||
The League Commissioner shall present, upon acceptable review of its qualifications, a new franchise to the members at large for consideration. New franchises are allowed to present a positive case for inclusion.
|
||||
|
||||
1. Acceptance shall be affirmed with a simple majority vote of members in attendance.
|
||||
|
||||
### Annual Membership Dues
|
||||
All League members shall pay annual membership dues, as determined by League [budget](#budget). All League members must have all membership dues paid by a schedule set by the Commissioner and approved by the Board.
|
||||
|
||||
1. Penalty for late payment shall be ten dollars ($10.00) per week for no longer than five (5) weeks.
|
||||
1. Members in violation of the above shall be placed on temporary suspension for a period of two (2) weeks.
|
||||
1. Members who have not paid outstanding dues by the end of the two week suspension shall be placed on indefinite suspension until all dues are paid.
|
||||
|
||||
### Fees and Fines
|
||||
|
||||
### Fees
|
||||
League fees may consist of, but are not limited to the following: Forfeit fee; Performance bond; Field fees; Prize Money Fund; Tournament fees; and any other costs incurred by the League.
|
||||
|
||||
### Fines
|
||||
The Commissioner may levy fines to any League Member franchise or player subject to Board oversight. Fines may be levied for violation of this Constitution and its By-Laws or conduct unbecoming of a representative of the League. Fines may not exceed fifty dollars ($50.00) for a single incident Fines must be paid in full by a date specified by the Commissioner. Member franchises or Member franchises consisting of rostered players with outstanding fines will be considered not in good standing as defined in [classification](#classification).
|
||||
|
||||
### Leave of Absence
|
||||
Members in good standing may be granted a leave of absence and are entitled to all privileges as outlined in [Classification](#classification) of the Constitution.
|
||||
|
||||
1. Members in good standing on leave for more than two (2) years must reapply for membership.
|
||||
|
||||
### Temporary Suspension
|
||||
An League franchise may be placed on temporary suspension by the Commissioner and are subject to rules set forth in [Classification; Standing](#classification-standing).
|
||||
|
||||
### Indefinite Suspension
|
||||
An League franchise may be placed on indefinite suspension by the Commissioner and subject to rules set forth in [Classification; Standing](#classification-standing). Violations that may result in indefinite suspension are as follows:
|
||||
|
||||
1. Conduct detrimental to the objectives of the League.
|
||||
1. Two (2) forfeits of a game in one season. A team that is indefinitely suspended two consecutive seasons for violation of this subsection shall not be permitted to reapply for reinstatement unless a change in management is presented to the league. The new management must be approved by the League Commissioner and ratified by a majority of the League members.
|
||||
1. Tampering with players on the roster of another member franchise. Tampering shall be defined as the deliberate solicitation, without consent, by one League member of a player who has made at least an oral commitment to play for another League franchise.
|
||||
1. Consumption of alcoholic beverages on or in close proximity to the playing fields as detailed in [League Standings](#league-standings)
|
||||
1. Violation of any written policies set forth by the issuer of any permits for field use by the League.
|
||||
1. Failure to comply with any of the stated codes of conduct as set forth in this document.
|
||||
|
||||
### Reinstatement
|
||||
An indefinitely suspended franchise may be reinstated by the Commissioner upon the resolution of any outstanding violations and the satisfactory guarantee of no further violations.
|
||||
|
||||
### Additional Fees
|
||||
The Commissioner may request additional fees to cover any costs that exceed the amounts originally budgeted for by the League.
|
||||
|
||||
### Fees to the Commissioner
|
||||
In the event the Commissioner is a franchise holder, the Rules and Competition Committee may levy any and all appropriate fines for infractions of this Constitution and By-Laws by his franchise.
|
||||
|
||||
### Outside Leagues
|
||||
Teams may not play in leagues outside of the League, unless that league has a formal agreement with the League that its playing schedule does not conflict with regularly scheduled League games or playoffs.
|
||||
|
||||
|
||||
|
||||
## Meetings and Voting
|
||||
Per [Annual Meeting](#annual-meeting), the League shall hold an annual meeting. In addition, per 4.2, the Commissioner may call additional meetings.
|
||||
|
||||
### Voting Privileges
|
||||
Each franchise with voting privileges as specified in [Classification; Standing](#classification-standing) shall have one (1) vote at league meetings, regardless of the number of representatives the franchise has sent to the meeting.
|
||||
|
||||
### Commissioner’s Role
|
||||
The Commissioner shall chair the meeting. If the Commissioner is also a franchise holder, he must designate another person from his franchise to represent the team at league meetings. The Commissioner can only vote in the event of a tie vote among the members present at the meeting.
|
||||
|
||||
### Voting Decisions
|
||||
A 2/3 vote is necessary to:
|
||||
|
||||
1. Amend the Constitution, per [Amending the Constitution](#amending-the-constitution)
|
||||
1. Amend the Bylaws, per [Amending The By Laws](#amending-the-by-laws)
|
||||
1. Remove an Officer.
|
||||
1. Expel a team or player for violations of rules set forth in the Constitution or By-laws.
|
||||
|
||||
Any decision not listed above shall be decided by simple majority vote.
|
||||
|
||||
### Attendance
|
||||
All franchise members are expected to attend all league meetings. Failure of a franchise to send a representative to a meeting may result in a ten dollar ($10.00) fine. Those members present at any meeting shall constitute a quorum and all votes by this quorum are binding.
|
||||
|
||||
## Teams and Managers
|
||||
|
||||
### Recognition
|
||||
Teams shall be formally recognized as existing as an entity from April 1 through August 31 of the current season. These dates shall serve as time periods as they pertain to all rules regarding rosters and team management.
|
||||
|
||||
### Team Name
|
||||
Teams new to the League, regardless of the makeup of the roster, shall not be allowed to use the name of any existing League team. Teams from other recognized leagues or leagues entering the League shall be allowed to use any team name provided it was the recognized existing name of the team prior to its membership in the League. Changes in team names shall not affect a team’s status in the League in any way provided the original recognized Manager is the entrant of the team.
|
||||
|
||||
### Uniform
|
||||
All players must be in uniform (bearing the team’s name as represented to the league) by the team’s first regular season game in order to be eligible to participate in games. Players may not obtain the jersey of another team member in order to obtain eligibility.
|
||||
|
||||
1. This deadline may be extended by the Commissioner at his discretion following a written petition by the team that shows a just and reasonable cause for extension, and evidence of a good faith effort to meet the deadline.
|
||||
1. This rule applies to any players legally added to the roster after the stated deadline.
|
||||
1. Uniforms shall consist of, but are not limited to, matching team caps and jerseys with assigned team uniform numbers.
|
||||
1. Players must be dressed in proper baseball pants. These pants need not match the team’s uniform, however, the League encourages all players to wear matching pants. Sweatpants, shorts, jeans, or any other type of pants other than baseball pants are prohibited.
|
||||
|
||||
### Manager
|
||||
The Manager is that person who has been officially recognized as the entrant of a team into the League. The Manager has the ultimate responsibility for the team’s compliance with all by-laws as set forth in this Constitution. The Manager of a franchise is responsible for all actions of his players and coaches and may be fined up to fifty dollars ($50.00) for any violations of codes of conduct and league rules as set forth in this document, or any other actions deemed detrimental to the objectives and standards of the League.
|
||||
|
||||
1. Severe violations of league rules and codes of conduct may result in the suspension of the offending player or Manager for the balance of the season or possible permanent banishment from the league, if so ruled by the Commissioner.
|
||||
|
||||
### Manager Changes
|
||||
Management of the team may officially change from one person to another during the dates that team is formally recognized as an entity as specified in [Recognition](#recognition) only with the written consent of the outgoing Manager, or rostered members of the team can show that the Manager has not been faithfully and/or competently fulfilling his requirements as outlined in this Constitution.
|
||||
|
||||
1. Management changes under this Section may only take place pending the outcome of a hearing, which shall take place at the earliest possible date between the League Commissioner, the Manager in question, and the parties seeking a change in management.
|
||||
1. The Commissioner may ask other Managers to attend this hearing to serve in an advisory role.
|
||||
1. Failure to appear at this hearing by either party involved shall automatically result in an outcome favorable to the party in attendance.
|
||||
1. Teams with management conflicts of this nature may not play league games until the completion of this hearing and resolution of the conflict.
|
||||
Management changes outside of the dates that a team is formally recognized as an entity as specified in [Recognition](#recognition) are beyond the control of the League and Commissioner and are not subject to any formal mechanisms of change as outlined in this Constitution. Resolution of any outstanding conflicts associated with such management changes are the sole responsibility of the parties involved.
|
||||
|
||||
## Team Rosters; Players and Eligibility
|
||||
|
||||
### Roster Deadline; Roster Size
|
||||
Prior to June 1, each team has an “open roster.” League teams must submit a roster of their players to the Commissioner no later than June 1 of each year. Any team that does not submit its roster to the Commissioner by June 1 as required by this [Roster Deadline; Roster Size](#roster-deadline-roster-size) and in accordance with the information requirements in [Roster Information Requirements](#roster-information-requirements) shall be deemed not in good standing. Consequences of not being in good standing are defined in [Classification; Standing](#classification-standing) of the Constitution. This submitted roster plus any and all legal roster transactions per [Roster Transactions](#roster-transactions), shall be considered official. Players not on a team’s official roster are ineligible for play, except where specifically noted in this [Teams And Managers](#teams-and-Managers).
|
||||
Each team’s roster must contain a minimum of sixteen (16) players and shall not exceed twenty-six (26) players, in each case, excluding non-playing Managers and coaches.
|
||||
|
||||
### Roster Information Requirements
|
||||
A team’s rosters as submitted to the Commissioner on or before June 1 shall contain the following information for each rostered player: name, age, bats/throws, position(s),uniform number, and face photo. Rosters shall be submitted in Excel or via Google sheets (or similar editable spreadsheet.)
|
||||
|
||||
### Roster Transactions
|
||||
Teams may add a total of five (5) players to the roster after the June 1 roster submission deadline. The total number of players on a team still may not exceed twenty-six (26). In order to add players between June 1 and July 1 but not exceed the 26 player limit, a team may drop players who were rostered on June 1. No players may be added after July 1, except as set forth below.
|
||||
After July 1, upon request to the Rules and Competition Committee, a team may add a player if (i) the team’s roster has fallen (or, upon the removal of players “missing in action” as described below, will fall) below the 16 player minimum and (ii) doing so will, in the good faith determination of the Rules and Competition Committee, prevent the team from forfeiting games.
|
||||
In order for a team to declare a player “missing in action” after July 1, (i) the player shall have (a) failed to appear at all of the team’s games occurring prior to such request or (b) suffered a season-ending injury after June 1 and (ii) the team must drop the player from its roster.
|
||||
A team may drop players at any time as long as the team’s roster does not fall below the 16 player minimum.
|
||||
Any and all roster changes shall be submitted to the Commissioner and satisfy the information requirements in [Roster Information Requirements](#roster-information-requirements). Roster changes shall be effective as of the first pitch of the team’s first regularly scheduled game after the updated roster is submitted.
|
||||
|
||||
### Alumni
|
||||
If a team would otherwise be required to forfeit or technically forfeit a game after June 1 due to a lack of eligible players in attendance, the team can use one (but not more than one) of its former players (“alumni”) in that game. The team’s Manager shall inform the opposing team’s Manager and the Commissioner as soon as possible (and in no event later than the first pitch) of his team’s use of an alumni player and will provide to the opposing team’s Manager and the Commissioner with the alumni player’s name, age, bats/throws, position and uniform number. Alumni players are not eligible to play in the playoffs.
|
||||
|
||||
### Eligible Players
|
||||
Eligible players must be of at least eighteen (18) years of age by the date of the teams first +game. No player may play for more than one team in a season (either before or after June 1).
|
||||
A team that uses an ineligible player, per the rules in this [Team Rosters Players And Eligibility](#team-rosters-players-and-eligibility), will be deemed to have forfeited any and all games in which the illegal player(s) participated.
|
||||
|
||||
### Postseason Player Eligibility
|
||||
Players must appear in at least five (5) games during the regular season in order to be eligible for postseason play. Upon request to the Rules and Competition Committee, exceptions may be made for players with long term injuries.
|
||||
|
||||
### Player Responsibility for Team Fees
|
||||
All players in the League are expected to pay their team fees. Players will not be allowed to switch teams within the League unless or until any and all debts are paid in full.
|
||||
|
||||
### Free Agents
|
||||
A player must inform the League Commissioner and his Manager no later than February 15 of the upcoming season if he wishes to leave his team and become a free agent. After this he is free to play for another team in the League. A Manager may waive this deadline for an individual player at the Manager’s discretion. If the player fails to notify as specified, that player shall be disqualified from playing on another League team for that season.
|
||||
|
||||
## Protest and Forfeits
|
||||
|
||||
### Timeframe and Reporting
|
||||
All protests must be filed with the Commissioner within 48 hours of the alleged infraction and on the League supplied form. All requested information must be accurately reported. Any Manager who knowingly falsifies information on the protest form will be fined and suspended as determined by the Commissioner, and that Manager’s team will forfeit the game.
|
||||
|
||||
### Ground for Protest
|
||||
Protests may only be made on the grounds of a violation of a rule stated in this Constitution and its By-Laws or in violation of a stated Major League Baseball rule. Protests may not, under any circumstances, be based on the judgment of an umpire’s call. The protesting team’s Manager must notify the umpire of the protest at the time the violation occurred. Managers shall notify the league Commissioner at the earliest possible time after the game and provide umpire signature as proof of notification.
|
||||
|
||||
### Ruling
|
||||
Upon the filing of a protest with the Commissioner, the Commissioner shall call a meeting of the Rules and Competition Committee at the earliest possible date. Judgment regarding the merit of the protest shall be made after deliberation.
|
||||
|
||||
### Notification
|
||||
Teams that win games by forfeit must notify the Commissioner that very day.
|
||||
|
||||
### Umpire Payment
|
||||
Forfeiting teams must pay, at the time of the forfeit, the full cost of the umpire(s), and shall be considered not in good standing as defined in [Classification; Standing](#classification-standing). Teams will be considered not in good standing until payment is made. In the event a team is unable to pay the umpire at the proper time, the team’s forfeit fee will be used to cover initial forfeits. The cost of additional forfeits will be paid by the team.
|
||||
|
||||
### Forfeits
|
||||
Should a team forfeit a game shall lose 2 points in the standings.
|
||||
Forfeiting teams must pay, at the time of the forfeit, the full cost of the umpire(s). Until payment is made, a forfeiting team shall be considered not in good standing as defined in Subsection.
|
||||
Should a team forfeit 2 games in a season they will be banned from playing games for the remainder of the season and playoffs and placed on indefinite suspension, not in good standing, as defined in Subsection of the constitution. Games that included or would have included this team shall be subject to the following:
|
||||
|
||||
1. All previous games played by the indefinitely suspended team shall count in the official standings.
|
||||
1. All subsequent games shall be recorded as a loss for the suspended team and a win for the scheduled opponent.
|
||||
|
||||
### Technical forfeit
|
||||
A team subject to technical forfeit shall be awarded only one point for a victory. A team may receive 2 technical forfeits per season. After reaching this limit, subsequent technical forfeits shall be converted to forfeits, as defined in [Equipment](#equipment).
|
||||
|
||||
## Standings and Postseason
|
||||
|
||||
### Website
|
||||
The Commissioner shall maintain a league website that includes all official scores and league standings. Additional pertinent information will be provided.
|
||||
|
||||
### League Standings
|
||||
The League shall use a point system to determine the standings. A team is awarded:
|
||||
|
||||
1. Two (2) points for a win (including a win against a team in technical forfeit)
|
||||
1. One (1) point for a win while in technical forfeit (see [Forfeits](#forfeits))
|
||||
1. One (1) point for a tie game
|
||||
1. Zero (0) points for a loss
|
||||
1. Minus two (-2) points for a loss by forfeit (see [Forfeits](#forfeits)).
|
||||
|
||||
### Standings Tie-breakers
|
||||
In the event two teams finish the regular season in a tie for a position, the following tie-breaking procedure will take effect:
|
||||
|
||||
1. Record in head-to-head competition.
|
||||
1. Record within the division (if applicable).
|
||||
1. Least runs allowed for the season.
|
||||
1. Coin toss, performed by the Commissioner with a witness.
|
||||
|
||||
### Postseason Format
|
||||
The postseason format shall be determined by annual vote.
|
||||
|
||||
### Prizes and Awards
|
||||
Playoff prizes and awards, if any, shall be determined by the membership of the league.
|
||||
|
||||
### Playoff Umpire Selection
|
||||
For the playoffs, each team will be granted the ability to exclude one (1) particular umpire from participating in said teams series. The name of this umpire shall be submitted to the chief umpire as soon as possible prior to the series. This umpire “veto” will be binding UNLESS the chief umpire cannot find any other umpire who can work any game in this series.
|
||||
|
||||
### Completion of Playoff Games
|
||||
All playoff games must be played to completion. If a playoff game is suspended for any reason, the game must be finished at a later date declared by the Commissioner. This game is declared suspended, and regardless of what inning or circumstance, the game will be continued from the point in the game when it was suspended. The “Slaughter Rule” is applicable for the playoffs (see [Regulation Games](#regulation-games)).
|
||||
|
||||
## Sportsmanship and Prohibited Conduct
|
||||
All League members are expected to engage in a sportsmanlike and mutually respectful behavior. Any Manager or the chief umpire may request that the rules and competition committee review the specific actions of another player, coach, Manager or team. The rules and competition committee shall review, and in its discretion, determine the appropriate disciplinary action to be taken, if any. Disciplinary actions include a written warning, fines, temporary suspension, and banishment from the League. The committee should take under consideration repeat offenses. The Commissioner shall enforce any discipline determined by the committee.
|
||||
|
||||
### Fighting
|
||||
Fighting or any physical altercation shall not be tolerated in the League. Players cannot leave the bench or their positions during a fight for any reason; the Managers, the on-the-field coaches and umpire(s) shall be responsible for restoring order. Specific penalties for violations are listed below.
|
||||
|
||||
1. Any player who instigates or initiates an on-field fight shall be fined and suspended from league play for no less than one season
|
||||
1. Any player or coach who participates in a fight shall be suspended for three games and fined $50.00.
|
||||
|
||||
### Assault of an Umpire
|
||||
Any player or coach who physically assaults an umpire will be permanently banished from the league. He may also be arrested if the umpire chooses to press charges.
|
||||
|
||||
### Substances
|
||||
|
||||
1. Smoking: Smoking shall be prohibited in the dugout and on the playing field during the game.
|
||||
1. Alcohol: Alcoholic beverages are prohibited on or in the close proximity of a team’s bench. Teams in violation of this rule will forfeit the game and be automatically fined and temporarily suspended. Offending players will be fined and suspended for two (2) weeks from the date of the infraction. A second violation of this rule shall result in the automatic expulsion of the team from the League. Managers are responsible for the enforcement of this rule and are accountable for any violations.
|
||||
1. Additionally, all teams and players are subject to any and all additional laws, rules, or regulations regarding substances as stated by locality or the issuer of the field permit
|
||||
|
||||
### Flagrant Collisions
|
||||
A flagrant collision is defined as an intentional act to forcibly collide with a fielder. A player who is ejected for a flagrant collision will be suspended for three (3) games and fined $30. A second offense (not necessarily in the same season) will result in the player being suspended for the remainder of that season (including playoffs). A third offense will result in permanent banishment from the league.
|
||||
@@ -1,9 +1,9 @@
|
||||
# Playing Rules
|
||||
|
||||
## Playing Rules
|
||||
Except where specified in this document, games shall follow the Official Baseball Rules of Major League Baseball.
|
||||
Except where specified in this document, the CMBA shall follow the Official Baseball Rules of Major League Baseball.
|
||||
|
||||
These rules shall not incorporate the following rules of Major League Baseball:
|
||||
The CMBA shall not incorporate the following rules of Major League Baseball:
|
||||
|
||||
- Rule 4.03(c)(4) specifying limitations on when a position player can pitch.
|
||||
- Rule 5.02(c) specifying limitations on infielder placement.
|
||||
@@ -83,10 +83,10 @@ All teams are responsible for the maintenance and cleanup of the field and dugou
|
||||
Umpires are to be paid on the field promptly upon request.
|
||||
|
||||
## Designated Hitter
|
||||
The League shall follow the Major League designated hitter rule at all times, with the exception that a team may designate a D.H. for any position on the field.
|
||||
The Association shall follow the Major League designated hitter rule at all times, with the exception that a team may designate a D.H. for any position on the field.
|
||||
|
||||
## Designated Runner
|
||||
The League shall elect to use a designated runner rule, similar to the designated hitter rule.
|
||||
The Association shall elect to use a designated runner rule, similar to the designated hitter rule.
|
||||
|
||||
1. A runner may be designated to run for a specified player in any game without otherwise affecting the status of the player(s) in the game.
|
||||
1. The designated runner must take the place of the specified player whenever that player reaches base or the designated runner.
|
||||
@@ -124,31 +124,31 @@ In regular season play, the defensive line-up is independent of the batting line
|
||||
|
||||
1. Any player may be freely substituted in the defensive line-up at any time, without affecting the players’ in the batting line-up. Players may enter, exit, and re-enter the game in the defensive line-up without limitation.
|
||||
|
||||
In postseason play, the free defensive substitution rule defined above shall not be applicable and substitutions shall be made in accordance to applicable League and MLB rules.
|
||||
In postseason play, the free defensive substitution rule defined above shall not be applicable and substitutions shall be made in accordance to applicable CMBA and MLB rules.
|
||||
|
||||
## Field Status
|
||||
The home team shall be responsible for checking the status of the field in the event of rain. The home team must report the status of the field to the Commissioner and the assigned umpire no later than 2:00 pm for a weeknight game, and at least 2 hrs. before a weekend game. As a courtesy, the home team should also notify the visiting Manager, but the visiting Manager may also contact the Commissioner for information regarding the status of the field.
|
||||
The home team shall be responsible for checking the status of the field in the event of rain. The home team must report the status of the field to the President and the assigned umpire no later than 2:00 pm for a weeknight game, and at least 2 hrs. before a weekend game. As a courtesy, the home team should also notify the visiting manager, but the visiting manager may also contact the President for information regarding the status of the field.
|
||||
|
||||
1. Any Manager who knowingly falsifies information regarding the status of the field to avoid playing the game will be fined and the team will forfeit the game.
|
||||
1. Any manager who knowingly falsifies information regarding the status of the field to avoid playing the game will be fined and the team will forfeit the game.
|
||||
|
||||
## Rescheduling
|
||||
In the discretion of the Commissioner, a game may be postponed due to extraordinary circumstances. In the event a game is to be postponed, the Commissioner shall alert the Managers in an expedient manner.
|
||||
Managers from both teams must contact the Commissioner to confirm any changes that they wish to make to the official schedule. Teams may not change times, places, or dates of games without the consent of the Commissioner. Any such games played shall be considered unofficial.
|
||||
Any postponed or suspended games must be rescheduled in a timely fashion by the Managers of that game for the next possible date. If Managers cannot come to an agreement in a timely fashion, the Commissioner may reschedule the game.
|
||||
In the discretion of the president, a game may be postponed due to extraordinary circumstances. In the event a game is to be postponed, the president shall alert the managers in an expedient manner.
|
||||
Managers from both teams must contact the President to confirm any changes that they wish to make to the official schedule. Teams may not change times, places, or dates of games without the consent of the President. Any such games played shall be considered unofficial.
|
||||
Any postponed or suspended games must be rescheduled in a timely fashion by the managers of that game for the next possible date. If managers cannot come to an agreement in a timely fashion, the President may reschedule the game.
|
||||
|
||||
## Notification of Results
|
||||
The winning team shall be responsible for notifying the Commissioner of the score of the game no later than 10:00 AM the day after the game was played via text message, email, or telephone call.
|
||||
The winning team shall be responsible for notifying the President of the score of the game no later than 10:00 AM the day after the game was played via text message, email, or telephone call.
|
||||
|
||||
## Uncompleted Games
|
||||
All games not completed by the end of the regular season shall count as losses for both teams unless a team deliberately attempts to avoid playing a sanctioned game. The team that was willing to play the game will be judged the forfeit winner if so ruled by the Commissioner.
|
||||
All games not completed by the end of the regular season shall count as losses for both teams unless a team deliberately attempts to avoid playing a sanctioned game. The team that was willing to play the game will be judged the forfeit winner if so ruled by the President.
|
||||
|
||||
## Substitution of an Umpire
|
||||
Should a league sanctioned umpire fail to appear at game time, the teams can choose to play the game with an umpire(s) of mutual choosing. The Commissioner needs to be informed by both teams prior to the start of the game to make it official.
|
||||
Should a league sanctioned umpire fail to appear at game time, the teams can choose to play the game with an umpire(s) of mutual choosing. The President needs to be informed by both teams prior to the start of the game to make it official.
|
||||
|
||||
## Collisions
|
||||
NO COLLISIONS ARE ALLOWED, UNLESS THE CONTACT RESULTS FROM A SLIDE. It is the base runners responsibility to slide or avoid contact. Fielders and runners must abide by Official Baseball Rules regarding Interference, Obstruction, and Catcher Collisions..
|
||||
Unless the umpire rules that the contact was incidental or the result of Obstruction by the fielder, the runner shall be called out, the ball declared dead and the runner automatically ejected from the game. Per [Flagrant Collisions](#flagrant-collisions). if the collision is determined by the umpire to be flagrant the player may be subject to the further penalty as defined in that section.
|
||||
|
||||
## Umpire Disputes
|
||||
Discussion of a disputed umpires call shall be limited to the Managers, base coaches and the “aggrieved player. No player or other coach (third party) shall be allowed to leave the dugout or his defensive position to join in. The penalty for violating this rule shall be the immediate ejection from the game.
|
||||
Discussion of a disputed umpires call shall be limited to the managers, base coaches and the “aggrieved player. No player or other coach (third party) shall be allowed to leave the dugout or his defensive position to join in. The penalty for violating this rule shall be the immediate ejection from the game.
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# CMBA Constitution and By-Laws
|
||||
# CMBA Rulebooks
|
||||
|
||||
2024-06-06
|
||||
Use the navigation to view the documents.
|
||||
|
||||
5
metadata.yml
Normal file
5
metadata.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
title: Chicago Metropolitan Baseball Association
|
||||
subtitle: Constitution and By-Laws
|
||||
date: 2024-06-06
|
||||
---
|
||||
@@ -1,4 +1,4 @@
|
||||
site_name: CMBA Constitution and By-Laws
|
||||
site_name: CMBA Rulebook
|
||||
docs_dir: ../docs
|
||||
|
||||
# Prevent accidental publishing of repo/CI/dev clutter
|
||||
@@ -18,7 +18,7 @@ theme:
|
||||
logo: assets/cmba-logo.svg
|
||||
favicon: assets/cmba-favicon.png
|
||||
extra_css:
|
||||
- styles/extra.css
|
||||
- mkdocs/styles/extra.css
|
||||
markdown_extensions:
|
||||
- toc:
|
||||
permalink: true
|
||||
@@ -26,8 +26,8 @@ markdown_extensions:
|
||||
# - tables
|
||||
nav:
|
||||
- Home: index.md
|
||||
- 01-constitution-and-bylaws.md
|
||||
- 02-league-rules-and-policy.md
|
||||
- 01-constitution.md
|
||||
- 02-bylaws.md
|
||||
- 03-playing-rules.md
|
||||
|
||||
plugins:
|
||||
@@ -36,8 +36,4 @@ plugins:
|
||||
- enumerate-headings:
|
||||
toc_depth: 2
|
||||
exclude:
|
||||
- index.md
|
||||
|
||||
validation:
|
||||
links:
|
||||
anchors: warn #this defaults to info, but it will cause broken links in anchor headers
|
||||
- index.md
|
||||
1
tools/spell-check/.aspell.en.prepl
Normal file
1
tools/spell-check/.aspell.en.prepl
Normal file
@@ -0,0 +1 @@
|
||||
personal_repl-1.1 en 0
|
||||
22
tools/spell-check/.aspell.en.pws
Normal file
22
tools/spell-check/.aspell.en.pws
Normal file
@@ -0,0 +1,22 @@
|
||||
personal_ws-1.1 en 19
|
||||
BBCOR
|
||||
MLB
|
||||
RO
|
||||
Rawlings
|
||||
chicagoland
|
||||
cmba
|
||||
cp
|
||||
ePUB
|
||||
epub
|
||||
gh
|
||||
gitdriver
|
||||
github
|
||||
html
|
||||
jgm
|
||||
lua
|
||||
md
|
||||
pandoc
|
||||
repo
|
||||
rostered
|
||||
src
|
||||
timeframe
|
||||
189
tools/spell-check/git-spell-check
Executable file
189
tools/spell-check/git-spell-check
Executable file
@@ -0,0 +1,189 @@
|
||||
#!/bin/bash
|
||||
# mprpic/git-spell-check
|
||||
# https://github.com/mprpic/git-spell-check/
|
||||
set -e
|
||||
|
||||
#adding this for use on a Mac
|
||||
if command -v gsed &> /dev/null
|
||||
then
|
||||
sed=gsed
|
||||
else
|
||||
sed=sed
|
||||
fi
|
||||
|
||||
# Instructions:
|
||||
#
|
||||
# This script is a Git pre-commit hook that spell checks any content you are about to commit.
|
||||
#
|
||||
# Place this script into the ".git/hooks/" directory in your repository. It must be called "pre-commit" and be
|
||||
# executable. A Git hook only works in a single repository. You need to copy this hook into every repository you wish to
|
||||
# use it in manually. Optionally, you can set up a symlink in the ".git/hooks/" directory pointing to the script.
|
||||
#
|
||||
# Each time you try to commit something, this script is run and spell checks the content you are committing.
|
||||
#
|
||||
# Should you want to bypass the pre-commit hook (though not recommended), you can commit with "git commit --no-verify".
|
||||
|
||||
|
||||
# The following is a text file that represents your custom dictionary; edit as necessary. Add words to it that you wish
|
||||
# to ignore for the spell check.
|
||||
dict=~/.git-spell-check
|
||||
if [ ! -f $dict ]; then
|
||||
touch ~/.git-spell-check
|
||||
dict=~/.git-spell-check
|
||||
printf "%s\n" "Custom dictionary not found. Created ~/.git-spell-check..."
|
||||
fi
|
||||
|
||||
|
||||
# The following is a temporary dictionary (a binary file) created from the dict text file. It is deleted after the
|
||||
# script finishes.
|
||||
temp_dict=$(mktemp docs-dictionary-XXXXXX)
|
||||
|
||||
# Language of your doc. When using a non-English language, make sure you have the appropriate aspell libraries
|
||||
# installed: "yum search aspell". For example, to spell check in Slovak, you must have the aspell-sk package installed.
|
||||
lang=en
|
||||
|
||||
# Define an extension for any additional dictionaries (containing words that are ignored during the spell check) that
|
||||
# are kept locally in your repository. These dictionaries will be loaded on top of the existing global dictionary (by
|
||||
# default ~/.git-spell-check).
|
||||
extension=pws
|
||||
|
||||
# Clean up if script is interrupted or terminated.
|
||||
trap "cleanup" SIGINT SIGTERM
|
||||
|
||||
# Prepares the dictionary from scratch in case new words were added since last time.
|
||||
function prepare_dictionary() {
|
||||
|
||||
local_dict=$(find . -name *.$extension -exec ls {} \;)
|
||||
if [ -z "$local_dict" ]; then
|
||||
sort -u $temp_dict -o $temp_dict
|
||||
aspell --lang="$lang" create master "$temp_dict" < "$dict"
|
||||
else
|
||||
temp_file=$(mktemp temp_file-XXXXXX)
|
||||
for file in $local_dict; do
|
||||
cat $file >> $temp_file
|
||||
done
|
||||
cat $dict >> $temp_file
|
||||
## Remove header line
|
||||
$sed -i '/personal_ws-/d' "${temp_file}"
|
||||
sort -u $temp_file -o $temp_file
|
||||
aspell --lang="$lang" create master "$temp_dict" < "$temp_file"
|
||||
/bin/rm -f "$temp_file"
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
# Removes the temporary dictionary.
|
||||
function cleanup() {
|
||||
|
||||
/bin/rm -f "$temp_dict"
|
||||
|
||||
}
|
||||
|
||||
# Spell checks content you're about to commit. Writes out words that are misspelled or exits with 0 (i.e. continues with
|
||||
# commit).
|
||||
function spell_check() {
|
||||
|
||||
words=$(git diff --cached | grep -e "^+[^+]" | aspell --mode=sgml list --add-sgml-skip={ulink,code,literal,firstname,parameter,option,package,replaceable,programlisting,userinput,screen,filename,command,computeroutput,abbrev,accel,orgname,surname,foreignphrase,acronym,hardware,keycap,systemitem,application} --lang="$lang" --extra-dicts="$temp_dict" | sort -u)
|
||||
if [ ! "$words" ]; then
|
||||
printf "%s\n" "No typos found. Proceeding with commit..."
|
||||
cleanup; exit 0
|
||||
fi
|
||||
printf "%s\n" "Spell check failed on the following words:
|
||||
-------------------------------------------------"
|
||||
echo $words
|
||||
for word in $words; do
|
||||
grep --color=always --exclude-dir={.git,tmp} -HIrone "\<$word\>" $(git diff --cached --name-only --diff-filter=ACMRTUXB) | awk -F ":" '{print "File: " $1 "\ton line: " $2 "\tTypo: " $3}'
|
||||
printf "%s\n" "-------------------"
|
||||
done
|
||||
|
||||
}
|
||||
|
||||
# Adds all, some, or none of the misspelled words to the custom dictionary.
|
||||
function add_words_to_dict() {
|
||||
|
||||
printf "%s\n" "
|
||||
Add any of the misspelled words into your custom dictionary?
|
||||
* a[ll] (add all words into dict, continue with commit)
|
||||
* s[ome] (add some words into dict, fix others, no commit)
|
||||
* i[gnore] (add some words into dict, ignore rest, continue with commit)
|
||||
* n[one] (no commit)
|
||||
"
|
||||
|
||||
while true; do
|
||||
exec < /dev/tty # Simply reading user input does not work because Git hooks have stdin detached.
|
||||
read answer
|
||||
shopt -s nocasematch
|
||||
case "$answer" in
|
||||
a|all)
|
||||
add_all
|
||||
cleanup; exit 0
|
||||
;;
|
||||
s|some)
|
||||
add_some
|
||||
printf "%s\n" "Please fix remaining typos, use \"git add\" to add fixed files, and commit."
|
||||
cleanup; exit 1
|
||||
;;
|
||||
i|ignore)
|
||||
add_some
|
||||
cleanup; exit 0
|
||||
;;
|
||||
n|none)
|
||||
add_none
|
||||
cleanup; exit 1
|
||||
;;
|
||||
*)
|
||||
printf "%s\n" "Incorrect answer. Try again."
|
||||
continue
|
||||
esac
|
||||
shopt -u nocasematch
|
||||
done
|
||||
|
||||
}
|
||||
|
||||
# Adds all words to the custom dictionary and continues with the commit.
|
||||
function add_all() {
|
||||
|
||||
for word in $words; do
|
||||
echo $word >> "$dict"
|
||||
done
|
||||
|
||||
}
|
||||
|
||||
# Adds some (selected by user) of the words to the dictionary and exits with 1.
|
||||
function add_some() {
|
||||
|
||||
for word in $words; do
|
||||
printf "%s\n" "Do you want to add the following word to your custom dictionary: $word (y[es] or n[o])"
|
||||
while true; do
|
||||
exec < /dev/tty
|
||||
read answer
|
||||
shopt -s nocasematch
|
||||
case "$answer" in
|
||||
y|yes)
|
||||
echo $word >> "$dict"
|
||||
printf "%s\n" "\"$word\" added to your custom dictionary."
|
||||
break ;;
|
||||
n|no)
|
||||
break ;;
|
||||
*)
|
||||
printf "%s\n" "Incorrect answer. Try again."
|
||||
continue
|
||||
esac
|
||||
shopt -u nocasematch
|
||||
done
|
||||
done
|
||||
|
||||
}
|
||||
|
||||
# Adds none of the words and exits with 1.
|
||||
function add_none() {
|
||||
|
||||
printf "%s\n" "No words were added to your custom dictionary."
|
||||
printf "%s\n" "Please fix remaining typos, use \"git add\" to add fixed files, and commit."
|
||||
|
||||
}
|
||||
|
||||
|
||||
prepare_dictionary
|
||||
spell_check
|
||||
add_words_to_dict
|
||||
10
tools/spell-check/spell-check
Executable file
10
tools/spell-check/spell-check
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
extension_files_to_check=md
|
||||
|
||||
function spell_check(){
|
||||
find . -type f -name "*.${extension_files_to_check}" -exec aspell check {} --mode=markdown --home-dir=./.spell-check \;
|
||||
}
|
||||
|
||||
spell_check
|
||||
@@ -1,5 +0,0 @@
|
||||
BBCOR
|
||||
MLB
|
||||
RO
|
||||
Rawlings
|
||||
rostered
|
||||
@@ -1,25 +0,0 @@
|
||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json
|
||||
|
||||
# The version of the configuration file format.
|
||||
version: "0.2"
|
||||
# The locale to use when spell checking. (e.g., en, en-GB, de-DE
|
||||
language: en-US
|
||||
useGitignore: true
|
||||
globRoot: "../.."
|
||||
allowCompoundWords: true
|
||||
|
||||
files:
|
||||
- "**/*.md"
|
||||
- ./README.md
|
||||
|
||||
dictionaryDefinitions:
|
||||
- name: baseball-words
|
||||
path: ./baseball-words.txt
|
||||
|
||||
dictionaries:
|
||||
- baseball-words
|
||||
|
||||
words:
|
||||
- cmba
|
||||
- chicagoland
|
||||
- gitdriver
|
||||
Reference in New Issue
Block a user