Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions lib/linguist/heuristics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,11 @@ disambiguations:
pattern: '^\s*(?:%%|main\s*\(.*?\)\s*->)'
- language: JavaScript
pattern: '\/\/|["'']use strict["'']|export\s+default\s|\/\*(?:.|[\r\n])*?\*\/'
- extensions: ['.eslintrc']
rules:
- language: YAML
named_pattern: yaml
- language: JSON with Comments
- extensions: ['.ex']
rules:
- language: Elixir
Expand Down Expand Up @@ -800,6 +805,11 @@ disambiguations:
pattern:
- '^\s*#(?:(?:if|ifdef|define|pragma)\s+\w|\s*include\s+<[^>]+>)'
- '^\s*template\s*<'
- extensions: ['.releaserc']
rules:
- language: YAML
named_pattern: yaml
- language: JSON
- extensions: ['.res']
rules:
- language: ReScript
Expand Down Expand Up @@ -1202,3 +1212,4 @@ named_patterns:
# Excel objects
- '\b(?:(?:This|Active)?Workbooks?|Worksheets?|Active(?:Sheet|Chart|Cell)|WorksheetFunction)\b'
- '\b(?:Range\(".*|Cells\([0-9a-zA-Z_]*, (?:[0-9a-zA-Z_]*|"[a-zA-Z]{1,3}"))\)'
yaml: '^[ \t]*(?:#|(?:[^/"\s:{}\[\]]|\/[^/*:\n])[^:\n]*:)'
12 changes: 12 additions & 0 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1393,6 +1393,7 @@ CoffeeScript:
- "._coffee"
- ".cake"
- ".cjsx"
- ".coffee.erb"
- ".iced"
filenames:
- Cakefile
Expand Down Expand Up @@ -2692,6 +2693,7 @@ Git Commit:
aliases:
- commit
filenames:
- ".gitmessage"
- COMMIT_EDITMSG
ace_mode: text
tm_scope: text.git-commit
Expand Down Expand Up @@ -3374,6 +3376,7 @@ INI:
- ".buckconfig"
- ".coveragerc"
- ".flake8"
- ".gitreview"
- ".pylintrc"
- HOSTS
- buildozer.spec
Expand Down Expand Up @@ -3430,6 +3433,7 @@ Ignore List:
extensions:
- ".gitignore"
filenames:
- ".agignore"
- ".atomignore"
- ".babelignore"
- ".bzrignore"
Expand Down Expand Up @@ -3645,6 +3649,7 @@ JSON:
- ".htmlhintrc"
- ".imgbotconfig"
- ".nycrc"
- ".releaserc"
- ".secrets.baseline"
- ".tern-config"
- ".tern-project"
Expand Down Expand Up @@ -3691,6 +3696,7 @@ JSON with Comments:
filenames:
- ".babelrc"
- ".devcontainer.json"
- ".eslintrc"
- ".eslintrc.json"
- ".jscsrc"
- ".jshintrc"
Expand Down Expand Up @@ -6472,8 +6478,11 @@ R:
extensions:
- ".r"
- ".rd"
- ".rhistory"
- ".rsx"
filenames:
- ".Rapp.history"
- ".Rhistory"
- ".Rprofile"
- expr-dist
interpreters:
Expand Down Expand Up @@ -8950,6 +8959,7 @@ XML:
- ".kml"
- ".launch"
- ".mdpolicy"
- ".meta4"
- ".mjml"
- ".mm"
- ".mod"
Expand Down Expand Up @@ -9166,7 +9176,9 @@ YAML:
- ".clang-format"
- ".clang-tidy"
- ".clangd"
- ".eslintrc"
- ".gemrc"
- ".releaserc"
- CITATION.cff
- glide.lock
- pixi.lock
Expand Down
8 changes: 8 additions & 0 deletions samples/CoffeeScript/config.js.coffee.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@Config =
idleTimeout:
isEnabled: <%= APP_CONFIG['idle_timeout_enabled'] %>
timer: <%= APP_CONFIG['idle_timeout'] %>
# FIXME don't hard-code effective date
effectiveDate: 1356998340
fieldValues: <%= HQMF::DataCriteria::FIELDS.to_json.html_safe %>
ehExclusionType: <%= APP_CONFIG['eh_exclusion_type'].to_json %>
31 changes: 31 additions & 0 deletions samples/Git Commit/filenames/.gitmessage
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<tag>(<module>): <subject> (Max 72 char, lowercase, no period at end)
# Example:
# feat(core): Implement automated commit messages

# (Optional)
# Commit message should describe motivation. Think about your code
# reviewers and what information they need in order to understand what
# you did. If it's a big commit (hopefully not), try to provide some
# good entry points so it will be easier to follow.
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|

# (Optional)
# If not obvious (i.e. from unit tests), describe how you verified that
# your change works.
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|

# (Optional)
# BREAKING CHANGE: <what broke and how to achieve this behavior now>
# * **<module-name>:** <Another breaking change>
# * **<module-name>:** <Yet another breaking change>
#
# If this commit includes breaking changes, they must be listed at the
# end in the following format (markdown format):
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|

# --- COMMIT END ---
# Tag can be
# feat (new feature)
# fix (bug fix)
# refactor (refactoring code)
# chore (updating grunt tasks etc; no production code change)
6 changes: 6 additions & 0 deletions samples/INI/filenames/.gitreview
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[gerrit]
host=gerrit.wikimedia.org
port=29418
project=mediawiki/libs/node-cssjanus.git
track=1
defaultrebase=0
6 changes: 6 additions & 0 deletions samples/Ignore List/filenames/.agignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
plugins/discourse-math/public/mathjax/*
plugins/docker_manager/assets/docker-manager-app.js
plugins/docker_manager/assets/docker-manager-vendor.js
plugins/etherpad-lite/tests/*
plugins/etherpad-lite/src/*
plugins/etherpad-lite/bin/*
66 changes: 66 additions & 0 deletions samples/JSON with Comments/filenames/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"root": true,

"extends": "@ljharb",

"ignorePatterns": [
"*.min.js",
"tests/lib/*",
],

"rules": {
"array-bracket-newline": 0,
"object-curly-newline": 0,
"camelcase": [0],
"complexity": [0],
"eqeqeq": [2, "allow-null"],
"func-name-matching": 0,
"id-length": [2, { "min": 1, "max": 40 }],
"indent": [2, 4],
"max-lines": 0,
"max-lines-per-function": 0,
"max-nested-callbacks": [2, 5],
"max-params": [2, 7],
"max-statements": [1, 30],
"new-cap": [2, { "capIsNewExceptions": ["ToInteger", "ToObject", "ToPrimitive", "ToUint32"] }],
"no-constant-condition": [1],
"no-extend-native": [2, {"exceptions": ["Date", "Error", "RegExp"]}],
"no-extra-parens": [0],
"no-extra-semi": [1],
"no-func-assign": [1],
"no-implicit-coercion": [2, {
"boolean": false,
"number": false,
"string": true,
"disallowTemplateShorthand": false,
"allow": []
}],
"no-invalid-this": [0],
"no-magic-numbers": [0],
"no-native-reassign": [2, {"exceptions": ["Date", "parseInt"]}],
"no-new-func": [1],
"no-plusplus": [1],
"no-restricted-syntax": [2, "ContinueStatement", "DebuggerStatement", "LabeledStatement", "WithStatement"],
"no-shadow": [1],
"no-unused-vars": [1, { "vars": "all", "args": "after-used" }],
"operator-linebreak": [2, "before"],
"sort-keys": [0],
"spaced-comment": [0],
"strict": [0],

"multiline-comment-style": 0,
},

"overrides": [
{
"files": "tests/**",
"rules": {
"max-len": 0,
"max-statements-per-line": [2, { "max": 2 }],
},
"env": {
"jasmine": true
},
},
],
}
35 changes: 35 additions & 0 deletions samples/JSON/filenames/.releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"tagFormat": "${version}",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
"@semantic-release/npm",
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"docs",
"package.json",
"yarn.lock"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"@semantic-release/github"
],
"branches": [
"master",
"next",
{
"name": "alpha",
"prerelease": true
}
]
}
37 changes: 37 additions & 0 deletions samples/R/filenames/.Rapp.history
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
library(ggplot2)
install.packages(ggplot2)
install.packages("ggplot2", dep=T)
install.packages("ggpubfigs")
library(ggplot2)
library(ggpubfigs)
ggplot(mtcars, aes(carb, fill=cyl)) + geom_bar() + scale_fill_manual(values = friendly_pal("ito_seven")) + theme_big_simple()
devtools::install_github("JLSteenwyk/ggpubfigs")
devtools::install_github("JLSteenwyk/ggpubfigs", force=TRUE)
library(ggpubfigs)
ggplot(mtcars, aes(carb, fill=cyl)) + geom_bar() + scale_fill_manual(values = friendly_pal("ito_seven")) + theme_big_simple()
?ggpubfigs
??ggpubfigs
ls("package: ggpubfigs")
ls("package:ggpubfigs")
setwd("Desktop/GITHUB/ggpubfigs/")
devtools::document()
setwd("../../../")
devtools::install_github("JLSteenwyk/ggpubfigs", force=TRUE)
library(ggpubfigs)
ls("package:ggpubfigs")
ggplot(mtcars, aes(carb, fill=cyl)) + geom_bar() + scale_fill_manual(values = friendly_pal("ito_seven")) + theme_big_simple()
ggplot(mtcars, aes(factor(carb), fill=factor(cyl))) + geom_bar() + scale_fill_manual(values = friendly_pal("ito_seven")) + theme_big_simple()
head(mtcars)
ggplot(mtcars, aes(carb, fill=factor(cyl))) + geom_bar() + scale_fill_manual(values = friendly_pal("ito_seven")) + theme_big_simple()
png("Desktop/temp.png")
ggplot(mtcars, aes(carb, fill=factor(cyl))) + geom_bar() + scale_fill_manual(values = friendly_pal("ito_seven")) + theme_big_simple()
dev.off()
png("Desktop/temp.png", width=1024px, height=512px)
jpg("Desktop/temp.jpg", width=1024px, height=512px)
jpg("Desktop/temp.jpg", width=1024, height=512)
jpeg("Desktop/temp.jpg", width=1024, height=512)
ggplot(mtcars, aes(carb, fill=factor(cyl))) + geom_bar() + scale_fill_manual(values = friendly_pal("ito_seven")) + theme_big_simple()
dev.off()
jpeg("Desktop/temp.jpg")
ggplot(mtcars, aes(carb, fill=factor(cyl))) + geom_bar() + scale_fill_manual(values = friendly_pal("ito_seven")) + theme_big_simple()
dev.off()
Loading
Loading